![background image](http://html2.mh-extra.com/html/national-instruments/ni-6601/ni-6601_manual_3500637014.webp)
NI 6601/6602 Calibration Procedure
14
ni.com
10. Loop until counter 1 has completed pulse generation.
Example Code for GPCTR Watch
i16 iStatu
s
= 0;
u32 ulArmed = ND_YES;
do
{
iStatu
s
= GPCTR_Watch (deviceNumber, ND_COUNTER_1, ND_Armed, &ulArmed);}
while ((ulArmed==ND_YES) && (iStatu
s
==0));
Traditional NI-DAQ Function Call
LabVIEW Block Diagram
Call
GPCTR_WATCH
with the following
parameters:
deviceNumber
: The value set by MAX
gpctrNum
:
ND_COUNTER_1
entityID
:
ND_ARMED
entityValue
: A user-declared variable
See example code in the next paragraph.
“TASK ID” out connects to “TASK ID” in of step 13.