10-13-2009 06:41 PM
Hi,
Thanks Scott-M for answering my previous question.
Now, I have another question.
Over an ethernet connection, using libvisa on linux, the PXI-8176
running a NI-VISA server responds to the function viFindRsrc() with
these resources in the 'findlist':
r_vi = 5
r_desc = visa://206.23.240.89/PXI0::1::BACKPLANE
r_desc = visa://206.23.240.89/ASRL1::INSTR
r_desc = visa://206.23.240.89/ASRL2::INSTR
r_desc = visa://206.23.240.89/ASRL10::INSTR
r_desc = visa://206.23.240.89/GPIB0::INTFC
However, I was expecting the names of devices that are plugged into the
chasis, as in PXI-6602, PXI-6704, PXI-6251, etc. Instead, these are serial
ports, parallel ports, GPIB ports and busses, it appears.
How do I open the A/D and D/A devices?
Thanks,
-Mike
10-14-2009 10:21 AM
Mike,
You might want to try using the DAQmxGetSysDevNames function in combination with:
Product Type: This will return the product type of the device, such as PXI-6259
DAQmxGetDevProductType(const char device[], char *data, uInt32 bufferSize);
Serial Number: This returns the serial number of the device.
DAQmxGetDevSerialNum(const char device[], uInt32 *data);
Device Names: This property will return a comma-delimited list of all of the devices installed in the system.
DAQmxGetSysDevNames(char *data, uInt32 bufferSize);
Chassis Number: This property returns the number of the chassis the device is in.
DAQmxGetDevPXIChassisNum(const char device[], uInt32 *data);
Hope this helps!
Slot Number: This property returns the slot number the device is in.
DAQmxGetDevPXISlotNum(const char device[], uInt32 *data);