TsctlAIOChannelEnableDesc

From embeddedTS Manuals

This function enables (flag == true) or disables (flag == false) sampling for the specified channel ch.

If ChannelSamplePeriod has not been called for this channel since the last call to Reset, the default sample period will be used.

If ChannelPrecision has not been called for this channel since the last call to Reset, the default precision will be used.

If ChannelVoltageRange has not been called for this channel since the last call to Reset, the default voltage range will be used

If ChannelTrigger has not been called for this channel since the last call to Reset, the default trigger will be used.

Upon failure, a negative error code is returned to indicate that the request would result in an unsupported configuration. On success a positive value is returned.

Note that when configuring multiple channels, each interim configuration must be valid. If you have a lot of channels to configure you may wish to use the Configure function instead to configure all channels simultaneously.