11-04-2014 07:59 AM
LV2013, LVRT2013, PXI-8196 (, NI-DAQ mX 9.8.0
I'm trying to move code that deals with cDAQ chassis, from Windows (where it works fine) to LVRT (where it doesn't).
According to NI, NI-DAQmx 9.6 and above support cDAQ on RT.
Here's the code that works on the host. The name of the device is "TCM01", as named in MAX.
The task here is empty for the first channel, and successive channels get added to that task.
Here is what MAX says. The HOST shows TCM02 as a 9172 chassis with five modules installed.
TCM01 is another 9172 chassis that I have temporarily (for testing) now attached to the PXI box.
The REMOTE SYSTEMS list just shows the chassis (I renamed it in MAX) - no modules are shown, and I see no way to add them:
When I run some test code to just set up a channel, it fails with error -200220: Device Identifier Not Valid.
I've never used VISA, I don't know how it is, or if it should be, involved with this, but MAX insists on telling me this long resource name, so I thought it might relate.
The VISA TEST panel shows a single error, which means nothing to me:
So, am I wrong to try to talk to cDAQ on PXI the same as I do on the host?
How to I get it to recognize modules?
What am I missing?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-04-2014 12:16 PM
OK. Tech Support referred me to this:
http://digital.ni.com/public.nsf/allkb/BE80D012BB933B54862572D6004FE5F9
Question 5:
Can I use my USB DAQ device with LabVIEW Real-Time?
NI-DAQmx for LabVIEW Real-Time is only supported on PharLap Real-Time systems with LabVIEW Real-Time installed. USB CompactDAQ devices (except the cDAQ-9172) are supported on PharLap Real-Time systems with DAQmx 9.6 or later and LabVIEW Real-Time 2012 or later.
They saw me coming, and decided to make it work for everybody except me, I just know it ...
😉
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-04-2014 02:00 PM
Just a heads up, if you do get one of the PharLabs devices, you still won't see the modules in RT. You'll see the modules in the FPGA portion of your code.