Dear community,
I have a cDAQ 9132 (RealTime Linux) with an NI 9223 module.
I want to run a simple voltage measurement:
>>> import nidaqmx
>>> with nidaqmx.Task() as task:
... task.ai_channels.add_ai_voltage_chan("cDAQ1Mod1/ai0")
... task.read()
but get the error:
nidaqmx.errors.DaqErrot: Device identifier is invalid.
Task Name: _unnamedTask<0>
Status Code: -200220
I suspect this is because my modules are part of the remote system and not the host system, as can be seen in the NI MAX.
Under this assumption i generated the virtual voltage channel MyVoltageChannel from the cDAQ1Mod1/ai0 in the hope that i can connect this channel to my system as a virtual channel. However i can not see this virtual channel as a virtual channel on my system.
Self test of chassis and the module run successfully and the test panel in NI MAX show the expected voltage measurement.
Is there a way to control the chassis and connected modules via the python nidaqmx api?
Many thanks.
Felix