02-25-2020 11:42 AM - edited 02-25-2020 11:44 AM
Hi all,
I'm attempting to use the Python nidaqmx library to make current measurements from one of my NI devices. I keep running into an issue where I'm told that I'm using the wrong I/O type for my virtual channel.
Physical Channel Name: ao0
Virtual Channel Name: Dev1/ao0
I/O Type Required for Virtual Channel: DAQmx_Val_AI
I understand that this is saying I need to use an analog input channel, but that is what I'm using.
with nidaqmx.Task() as task:
current_channel = task.ai_channels.add_ai_current_chan("Dev1/ao0")
current_channel.ai_max = 10.0
current_channel.ai_min = -10.0
Not sure what the issue is.
Solved! Go to Solution.
02-25-2020 11:54 AM
You're specifying an ao channel, you should be specifying ai0.
-Kevin P
05-30-2021 08:36 AM
Not, useful. How can we apply voltage in device "NI USB-9264" through python code could you please guide me?