public void Start() { _function?.RefreshConfigForm(); this.InitialDataBufferCache(); _cancellation = new CancellationTokenSource(); this._functionTask = new Task(FunctionExecutionTask, this._cancellation.Token); this._functionTask.Start(); _channelRangeHigh = new double[8]; _channelRangeLow = new double[8]; }
public void Start() { _funcThread?.Abort(); // _function = FunctionBase.CreateFunction(FunctionType); _function?.RefreshConfigForm(); _funcThread = new Thread(TaskWork); _funcThread.IsBackground = true; _funcThread.Start(); _globalInfo.EnableChannelCount = _globalInfo.Channels.Count(item => item.Enabled); _channelRangeHigh = new double[8]; _channelRangeLow = new double[8]; }