LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetSysDevNames

Hello!
 
I am using LabWindows CVI 7.1 and I've recently bought a PCI-6541 Digital IO module (digital pattern generator).
I am trying to use the function DAQmxGetSysDevNames to find out what is the name of the device, like I did with my DAQ 6254. In Measurement and Automation, I can clearly see Dev1 and Dev2 for both modules. But when I am calling DAQmxGetSysDevNames or DAQmxGetSystemInfoAttribute(DAQmx_Sys_DevNames,...), the function only "sees" the DAQ 6254 and nothing else.
If I only plug the DIO 6541, the function returns an empty string.
 
I have installed niHSDIO driver v1.4 and that did not change anything, then after I got some tips from the local NI helpdesk, I upgraded my DAQmx driver to version 8.0.1, my IVI compliance package driver to version package 2.5 and when I tried to install version 3.1 of VISA driver, it says it didn't have to install anything (assumes all files were latest and greatest).
So I would guess that the requirements of the following page: [link removed], are fullfiled.
 
After all this, I still cannot "see" my PCI-6541 module when calling DAQmxGetSysDevNames.
 
Would you have any idea of what I am missing?
 
Thanks for  your help.
Best regards,
0 Kudos
Message 1 of 3
(3,987 Views)
 

Fabrice,

Reason is your 6254 is a DAQmx device, but your PCI-6541 is not.  6541 is a dig. waveform generator and NI-DAQmx is not needed for this device.  All devices supported by NI-DAQ and NI-DAQmx are listed here:

http://www.ni.com/support/daq/versions.htm#dp 

The functions you can use are the ones for NI-HSDIO; however, I browsed quickly though the list of functions and could not find an similar function to the DAQmxGetSysDevNames.

Regards,

Frode

 

0 Kudos
Message 2 of 3
(3,965 Views)

Hi Frode!

Thanks for your answer.

I just thought it is weird that both devices appear in the same category in the Measurement and Automation. Both are listed under DAQmx. In addition, if you check in the link you sent, plenty of digital IO devices are listed, but not the one I am using (unless you make a difference between a digital pattern generator and a digital input/output device). Could that be that this device is new and has not yet been added in the list of supported devices for DAQmx driver?

 

In any case, if I cannot use this function to find out the device name of the PCI-6541, is there another solution for me (you're right, I had also checked th NI-HSDIO library and there are no functions retrieving the device name)? Would you know any other commands that can help me find out this information? This device name is assigned by Measurment and Automation and it's possible to change it in the software, so I guess there must be a call that retrieves this information.

 

The whole point is that I do not want to hardcode any device name when I am initializing the device using niHSDIO_InitGenerationSession() or niHSDIO_InitAcquisitionSession().

 

Thanks for your feedback.

Fabrice

0 Kudos
Message 3 of 3
(3,960 Views)