Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read detailed device information in DAQmx?

Hi,
 
I'm developing an application using the DAQmx C API and the 6602 Counter/Timer.  I would like to know how to read more detailed device information using the C API, i.e. more than just the type, serial number, and whether it's simulated.  I have seen several posts about this topic, but none appeared to give a satisfactory solution.  It has been mentioned that the DAQmxGetSystemInfoAttribute() serves this purpose, but it's not documented in the DAQmx C Reference Help files, so I don't know what attribute values ( DAQmxGetSystemInfoAttribute (int32 attribute, void *value, ...) ) are valid, and therefore am unsure as to what information can be obtained by this function.  To be more specific, I would like to read device information such as pin names and function, number of counters, number and name of digital I/O ports, etc, so that the application could automatically identify and list the available resources (similar to the way MAX does as you go through the task creation procedure).  Is this possible with DAQmxGetSystemInfoAttribute() or any other function?
 
Thanks,
 
Jeff 
0 Kudos
Message 1 of 4
(3,752 Views)
Hello Axiom,

You could use the following function:

Get/Set/Reset Sys_DevNames

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

Purpose

DAQmxGetSysDevNames gets the Device Names property.

This function will return the list of devices on your system. If you know the devices you will be using, having a list of device names tells you what resources are available.
Hope this helps..
0 Kudos
Message 2 of 4
(3,740 Views)

Hi Serges,

Thanks for your reply.  I'm OK with retrieving the device names, the question is whether there is a way to obtain detailed information once I have the name.  For instance, if I find (via DAQmxGetSysDevNames() and DAQmxGetDevProductType( )) that there is a PCI-6602 board installed, can I then call a function to retrieve details about the PCI-6602 (e.g. physical channel names, DIO port capabilities, etc.) rather than hard coding (yuck!) this stuff into the program.  It seems plausible that there might be a set of files somewhere within DAQmx which provide this sort of device information - if so, how can they be accessed?

Jeff 

0 Kudos
Message 3 of 4
(3,734 Views)
Hello Axiom,

Contact National Instruments' phone or email support with this question.
0 Kudos
Message 4 of 4
(3,715 Views)