Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

detect installed card with C++ and DAQmx

I am trying to get a list of installed DAQ card using c++ and DAQmx. The function I am currently using is 

DAQmxGetSysDevNames(char *data, uInt32 bufferSize),

but the problem is the format of the returned data buffer changes with different DAQmx version. In the older versions, the returned data contains

"Dev1,(space)Dev2,etc",

but the newer one would have a format of 

",(space)Dev1,(space)Dev2".

So would anyone please suggest if there is a better way to detect all installed cards using c/c++? Thanks. 

0 Kudos
Message 1 of 3
(2,972 Views)

Would anyone please share some ideas on this?

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

I think that all you need is a search and replace function to remove the spaces. That would be a c++ function and not related to DAQmx.

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