National Instruments PC-OPDIO-16 Telescope User Manual


 
Chapter 6 NI-DAQ Function Reference
© National Instruments Corporation 6-9 PC-OPDIO-16 User Manual
Get_DAQ_Device_Info
Format
status = Get_DAQ_Device_Info (deviceNumber, infoType, infoValue)
Purpose
Allows you to retrieve parameters pertaining to the device operation.
Parameters
Direction Name Type Description
Input deviceNumber I16 assigned by configuration utility
infoType U32 type of information you want to retrieve
Output infoValue U32 retrieved information
Parameter Discussion
The legal range for the infoType is given in terms of constants that are defined in a header file.
The header file you should use depends on the language you are using:
C programmers—NIDAQCNS.H (DATAACQ.H for LabWindows/CVI)
BASIC programmers—NIDAQCNS.INC
Pascal programmers—NIDAQCNS.PAS
Use infoType to let NI-DAQ know which parameter you want to retrieve. infoValue will reflect
the value of the parameter. infoValue will be given either in terms of constants from the header
file or as numbers, as appropriate.
infoType can be one of the following:
infoType Description
ND_BASE_ADDRESS Base address, in hexadecimal, of the device specified
by deviceNumber.
ND_DEVICE_TYPE_CODE Type of the device specified by deviceNumber. See
Init_DA_Brds for a list of device type codes.
Note to C Programmers: infoValue is a pass-by-reference parameter.