User's Manual
Chapter 2 Function Reference — GPCTR_Change_Parameter
NI-DAQ FRM for PC Compatibles 2-198
©
 National Instruments Corporation
GPCTR_Change_Parameter
Format
status = GPCTR_Change_Parameter (deviceNumber, gpctrNum, paramID, paramValue)
Purpose
Selects a specific parameter setting for the general-purpose counter (E Series, 6602, and DSA 
devices only). 
Parameters
Input 
Parameter Discussion
Legal ranges for gpctrNum, paramID, and paramValue are given in terms of constants 
defined in a header file. The header file you should use depends on the language 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
paramID u32 identification of the parameter to change.
paramValue u32 new value for the parameter specified by 
paramID










