National Instruments 321645c-01 Manual De Usuario
Chapter 2
Function Reference — GPCTR_Watch
©
National Instruments Corporation
2-245
NI-DAQ FRM for PC Compatibles
GPCTR_Watch
Format
status = GPCTR_Watch (deviceNumber, gpctrNum, entityID, entityValue)
Purpose
Monitors state of the general-purpose counter and its operation.
Parameters
Input
Output
Parameter Discussion
Legal ranges for the gpctrNum, entityID, and entityValue are in terms of constants defined
in a header file. The header file you should use depends on which of the following languages
you are using:
in a header file. The header file you should use depends on which of the following languages
you are using:
•
C programmers—
NIDAQCNS.H
(
DATAACQ.H
for LabWindows/CVI)
•
BASIC programmers—
NIDAQCNS.INC.
Visual Basic for Windows programmers
should refer to the
section in Chapter 1,
, for more information.
•
Pascal programmers—
NIDAQCNS.PAS
gpctrNum indicates which counter to program. The legal values for this parameter shown in
Table 2-20.
Table 2-20.
entityID indicates which feature you are interested in. Legal values are listed in the following
paragraphs, along with the corresponding values you can expect for entityValue.
entityValue will be given either in terms of constants from the header file, or as numbers, as
appropriate.
paragraphs, along with the corresponding values you can expect for entityValue.
entityValue will be given either in terms of constants from the header file, or as numbers, as
appropriate.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
gpctrNum
u32
number of the counter to use
entityID
u32
identification of the feature to monitor
Name
Type
Description
entityValue
u32
the value of the feature specified by entityID