Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetSysDevNames

Can any one tell me more about "DAQmxGetSysDevNames" function call? Such as the meaning of return type and how the device name string are organized in the returning buffer, and the marks to parse them out? Thanks.
0 Kudos
Message 1 of 2
(4,630 Views)
Phoenix T,

int32 __CFUNC DAQmxGetSysDevNames(char *data, uInt32 bufferSize);

The return type is the error code returned by the function in the event of an error or warning.  A value of 0 means no error, a positive value indicates a warning and a negative value indicates an error.

I ran a C program that uses the function and "data" came back with the string:

Dev1, Dev2, Dev4, SC1Mod1

So you can parse out the devices by looking for commas.  I hope this helps but let me know if I can do anything else for you.

Regards,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,600 Views)