02-04-2009 05:21 AM
Hi,
I am trying to get channel names, like PXI1Slot2/ai0, for a PXI-6229 card. I could not find any APIs for it in nidaqmx.h.
But, NI MAX correctly picks up the number of channels and the channel names in each type..for any MIO card in the Test Panel. Can anyone help me find out how to get the channel names in PXI-6229?
Thanks,
Priya.
02-05-2009 12:11 AM
Hi,
I believe you should be able to get the channel names in the same manner as in LabVIEW.
Maybe using DAQ Assistant would be of more help. Have a look at the link below:
http://zone.ni.com/devzone/cda/tut/p/id/4650
Regards,
Vaibhav
02-05-2009 03:26 AM - edited 02-05-2009 03:32 AM
You can use the "DAQmxGetDeviceAttribute" function to get the list of physical channels in the device.
In CVI you can browse to this fucntion from the library tree like this "NI-DAQmx Library > Advanced>DeviceControl"
Eg:- DAQmxGetDeviceAttribute ("PXI1Slot2", DAQmx_Dev_AI_PhysicalChans, physicalChannels);