Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetDeviceAttribute documentation/help missing

No help, user documentation or example files for DAQmxGetDeviceAttribute are included in the Sep05 C reference help (C:\Program Files\National Instruments\NI-DAQ\Docs\*.chm.) Where I can find documentation for DAQmxGetDeviceAttribute?
0 Kudos
Message 1 of 3
(4,061 Views)

Hello northcove,

The function DAQmxGetDeviceAttribute is specific to CVI, which is why it is not listed in the DAQmx C Reference Help.  As stated by Sal in this post, in CVI you choose the device property to get, such as "Device Serial Number" and in ANSI C, the corresponding function would be DAQmxGetDevSerialNum.

Please let us know if you have further questions.

Thanks,

Laura

0 Kudos
Message 2 of 3
(4,052 Views)
HI!

  In CVI.....
   
   DAQmxGetDeviceAttribute prototype:

            int32 DAQmxGetDeviceAttribute (const char Device_Name[], int32 Attribute, void *Value, ...);

   as attribute, you can get the following:

                  - Product type
                  - Device Serial number
                  - Device is simulated

and in NIDAQmx.h:

#define DAQmx_Dev_ProductType            0x0631 // Indicates the product name of the device.
#define DAQmx_Dev_SerialNum                0x0632 // Indicates the serial number of the device. This value is zero if the device does not have a serial number.
#define DAQmx_Dev_IsSimulated              0x22CA // Indicates if the device is a simulated device.

I don't know if this works......

graziano






0 Kudos
Message 3 of 3
(4,035 Views)