National Instruments PC-OPDIO-16 Telescope User Manual


 
Chapter 6 NI-DAQ Function Reference
© National Instruments Corporation 6-11 PC-OPDIO-16 User Manual
Init_DA_Brds
Format
status = Init_DA_Brds (deviceNumber, deviceNumberCode)
Purpose
Initializes the hardware and software states of a National Instruments DAQ board to its default
state, and then returns a numeric board code that corresponds to the type of board initialized.
Any operation that the board is performing is halted. This function is called automatically and
does not have to be explicitly called by your application. This function is useful for reinitializing
the board hardware, for reinitializing the NI-DAQ software, and for determining which board has
been assigned to a particular slot number. Init_DA_Brds will clear all configured messages
for the board just as if you called Config_DAQ_Event_Message with a mode of 0.
Parameters
Direction Name Type Description
Input deviceNumber I16 assigned by configuration utility
Output deviceNumberCode I16 type of board
Parameter Discussion
deviceNumberCode indicates the type of board initialized.
Range: -1 : Not a National Instruments DAQ board
0–39: National Instruments DAQ board
45: PC-OPDIO-16
Note to C Programmers: deviceNumberCode is a pass-by-reference parameter.
Using This Function
Init_DA_Brds initializes the board in the specified slot to the default conditions. These
conditions for the PC-OPDIO-16 are:
Digital Input and Output default:
Direction = Input.