10-09-2023 08:22 AM
Dear all,
I am trying to communicate PXIe-5160 module which is installed in PXIe-1078 chassis using nidaqmx python library.
I have replaced the names in the python code as per the MAX software
PXIe 5160 is named as PXI1Slot8
However when i am executing the below code I am getting an error (also pasted below)
code:
import nidaqmx
with nidaqmx.Task() as task:
task.ai_channels.add_ai_voltage_chan("PXI1Slot8/ai0")
data=task.read()
Error:
DaqError: Physical channel specified does not exist on this device.
Refer to the documentation for channels available on this device.
Device: PXI1Slot8
Physical Channel Name: ai0
Task Name: _unnamedTask<0>
Status Code: -200170
could anyone please help me with this issue ?
Regards
JTabjula
Solved! Go to Solution.
10-09-2023 08:56 AM
Sure, you're using the wrong driver.
5160 is an oscilloscope and hence you need to use NI-Scope driver and NOT DAQmx.
10-09-2023 09:09 AM
niscope module — NI-SCOPE Python API 1.4.7.dev0 documentation
Examples — NI-SCOPE Python API 1.4.7.dev0 documentation (niscope.readthedocs.io)
10-09-2023 09:21 AM
Thanks, Santosh.
if you have any example code Could you please share it ?