Справочник Пользователя для National Instruments Welding System 321645c-01

Скачать
Страница из 554
Chapter 2
Function Reference — Init_DA_Brds
©
 National Instruments Corporation
2-255
NI-DAQ FRM for PC Compatibles
Init_DA_Brds
Format
status = Init_DA_Brds (deviceNumber, deviceNumberCode)
Purpose
Initializes the hardware and software states of a National Instruments DAQ device to its 
default state, and then returns a numeric device code that corresponds to the type of device 
initialized. Any operation that the device 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 device hardware, for reinitializing the NI-DAQ software, and for 
determining which device has been assigned to a particular slot number. 
Init_DA_Brds
 will 
clear all configured messages for the device just as if you called 
Config_DAQ_Event_Message
 with a mode of 0.
Parameters
Input 
Output 
Parameter Discussion
deviceNumberCode indicates the type of device initialized.
–1:
Not a National Instruments DAQ device.
0:
AT-MIO-16L-9.
1:
AT-MIO-16L-15.
2:
AT-MIO-16L-25.
4:
AT-MIO-16H-9.
5:
AT-MIO-16H-15.
6:
AT-MIO-16H-25.
7:
PC-DIO-24.
8:
AT-DIO-32F.
11:
AT-MIO-16F-5.
12:
PC-DIO-96.
13:
PC-LPM-16.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
Name
Type
Description
deviceNumberCode
i16
type of device