Changing from high-resolution mode to high-speed mode (NI-9216 and others) #850
alecote
started this conversation in
Show and tell
Replies: 1 comment
-
Some other ways to do it: # Set the property for all channels in the task.
task.ai_channels.all.ai_adc_timing_mode = ADCTimingMode.HIGH_SPEED
# Set the property for specific channels by name.
task.ai_channels["Dev1/ai0:3"].ai_adc_timing_mode = ADCTimingMode.HIGH_SPEED
# Set the property for a specific channel or range of channels by index.
task.ai_channels[0].ai_adc_timing_mode = ADCTimingMode.HIGH_SPEED
task.ai_channels[0:4].ai_adc_timing_mode = ADCTimingMode.HIGH_SPEED |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
You may be reading this because you have an acquisition module that has more than one conversion time modes, and you wonder how to change from the default. It was the case with my NI-9216 RTD modules having high resolution (200ms) and high speed (2.5ms) modes. It took me some time reading the nidaqmx-python doc and the NI DAQmx doc to figure it out, so I thought I would share an example here to help others.
If there is a cleaner way to do this, please let me know!
Note that the code below is specific to an RTD module. The important details are nidaqmx.constants.ADCTimingMode and ai_adc_timing_mode.
Beta Was this translation helpful? Give feedback.
All reactions