NI 6601/6602 Calibration Procedure 14 ni.com
10. Loop until counter 1 has completed pulse generation.
Example Code for GPCTR Watch
i16 iStatus = 0;
u32 ulArmed = ND_YES;
do
{
iStatus = GPCTR_Watch (deviceNumber, ND_COUNTER_1, ND_Armed, &ulArmed);}
while ((ulArmed==ND_YES) && (iStatus==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.