PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Communicate PXI1Slot8 (PXIe-5160) in chassis PXIe-1078 using Python.

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(1,111 Views)
Solution
Accepted by topic author JTabjula

Sure, you're using the wrong driver.

 

5160 is an oscilloscope and hence you need to use NI-Scope driver and NOT DAQmx.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(1,100 Views)
Solution
Accepted by topic author JTabjula

niscope module — NI-SCOPE Python API 1.4.7.dev0 documentation

Examples — NI-SCOPE Python API 1.4.7.dev0 documentation (niscope.readthedocs.io)

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 3 of 4
(1,083 Views)

Thanks, Santosh. 

if you have any example code Could you please share it ?

0 Kudos
Message 4 of 4
(1,077 Views)