Справочник Пользователя для National Instruments Welding System 321645c-01
Chapter 2
Function Reference — CTR_State
©
National Instruments Corporation
2-113
NI-DAQ FRM for PC Compatibles
CTR_State
Format
status = CTR_State (deviceNumber, ctr, outState)
Purpose
Returns the OUT logic level of the specified counter.
Parameters
Input
Output
Parameter Discussion
ctr is the counter number.
Range:
1, 2, or 5 for an MIO device except the E Series devices.
1 through 10 for a PC-TIO-10.
1 through 10 for a PC-TIO-10.
outState returns the logic level of the counter OUT signal. outState is either 0 or 1.
0:
Indicates that OUT is at a low-logic state.
1:
Indicates that OUT is at a high-logic state.
Note
C Programmers—outState is a pass-by-reference parameter.
Using This Function
CTR_State
reads the logic state of the OUT signal of the specified counter and returns the
state in outState. If the counter OUT driver is set to the high-impedance state, outState is
indeterminate and can be either 0 or 1.
indeterminate and can be either 0 or 1.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
ctr
i16
counter number
Name
Type
Description
outState
i16
returns the logic level of the counter OUT signal