Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetDevAIPhysicalChans function and PXI devices

Hi

I have problems with DAQmxGetDevAIPhysicalChans function and PXI device. When I want to indicate available analog inputs of the device which is not a PXI device everything works fine, but when it is PXI device the DAQmxGetDevAIPhysicalChans function doesn't give any result.
Changing the name of the PXI device from default given by MAX "PXI1Slot2" to for example "PXI" or "Dev1" solve the problem, but as far as I am concerned this function should indicate available AI regardless of the device name in MAX( of course taking into account some restrictions about device name - no space, or other signs).

I must add that I'm using simulated PXI devices and NI-DAQmx 8.0.1 with Visual C++ 6.0 without Measurement Studio

Have anyone the same problem and solve it?

Best Regards

Lukasz Czuchaj
0 Kudos
Message 1 of 3
(3,471 Views)
Hello Lukasz,

I've tried this within LabVIEW using the analogous property node with the latest version of the NI-DAQmx driver (8.3) and seen no issues.  I'd be happy to try it in Visual C++ if you can attach some sample code that you are using to test this.

Regards,
Travis G.
Applications Engineering
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 3
(3,459 Views)
Hi Travis

Thank You for replay.

You are right there is no issue, it was my mistake. I have made the data and bufferSize to small in DAQmxGetDevAIPhysicalChans function.

"The darkest place is under the light" 😉
0 Kudos
Message 3 of 3
(3,451 Views)