Chapter 2 Function Reference — GPCTR_Set_Application
©
National Instruments Corporation 2-215 NI-DAQ FRM for PC Compatibles
GPCTR_Set_Application
Format
status = GPCTR_Set_Application (deviceNumber, gpctrNum, application)
Purpose
Selects the application for which you use the general-purpose counter.
Parameters
Input
Parameter Discussion
Legal ranges for gpctrNum and application are given in terms of constants that are defined
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 Programming Language Considerations section in Chapter 1, Using the
NI-DAQ Functions, for more information.)
• Pascal programmers—
NIDAQCNS.PAS
gpctrNum indicates which counter to program. Legal values for this parameter are shown in
Table 2-20.
Name Type Description
deviceNumber i16 assigned by configuration utility
gpctrNum u32 number of the counter to use
application u32 application for which to use the counter