SympatheticHardwareControl.Controller.CreateAnalogOutputTask C# (CSharp) Method

CreateAnalogOutputTask() private method

private CreateAnalogOutputTask ( string channel ) : void
channel string
return void
        private void CreateAnalogOutputTask(string channel)
        {
            stateRecord.analogs[channel] = (double)0.0;
            analogTasks[channel] = new Task(channel);
            AnalogOutputChannel c = ((AnalogOutputChannel)Environs.Hardware.AnalogOutputChannels[channel]);
            c.AddToTask(
                analogTasks[channel],
                c.RangeLow,
                c.RangeHigh
                );
            analogTasks[channel].Control(TaskAction.Verify);
        }