background image

©

 National Instruments Corporation

15

NI 6601/6602 Calibration Procedure

11. Calculate the frequency of the device.

a.

Retrieve the count from counter 0. The count represents the 
number of cycles of the 20 MHz timebase in 50 ms. 

b.

Multiply the count returned above by 20 to calculate the number 
of pulses that should occur in one second, (50 ms × 20 = 1 s), 
which is the 

measured frequency

 of the 20 MHz timebase.

Example Code for GPCTR Watch

u32 ulCount = 0;

iStatu

s

 = GPCTR_WATCH (deviceNumber, ND_COUNTER_0, ND_COUNT, &ulCount);

ulCount = ulCount * 20;

Traditional NI-DAQ Function Call

LabVIEW Block Diagram

Call 

GPCTR_Watch

 with the following 

parameters:

deviceNumber

: The value set by MAX

gpctrNum

ND_COUNTER_0

entityID

ND_COUNT

entityValue

: A user-declared variable

See example code in the next paragraph.

“TASK ID” in connects to “TASK ID” out of step 4. 

Summary of Contents for NI 6601

Page 1: ...ation 3 Test Equipment 3 Test Conditions 4 Calibration Process 4 Setting Up the Stable Clock 5 Setting Up a PXI 6608 Clock Source 5 Setting Up an Alternative Clock Source 8 Connecting the Clock Source...

Page 2: ...echnical Support Information document Why Should You Verify The accuracy of timing components drifts with time and temperature which can affect measurement accuracy Verification determines whether the...

Page 3: ...selecting Start All Programs National Instruments NI DAQ The Traditional NI DAQ User Manual document provides instructions on installing Traditional NI DAQ This manual also includes detailed informati...

Page 4: ...ructions for verifying the operation of the crystal oscillator on the NI 6601 6602 devices using a stable clock source Verifying the performance of the oscillator on an NI 6601 6602 device requires tw...

Page 5: ...n or both The calculations presented at the end of this document allow for a 2 ppm measurement uncertainty Both Traditional NI DAQ and LabVIEW programming instructions are presented in the following s...

Page 6: ...onal NI DAQ Function Call LabVIEW Block Diagram Call GPCTR_Set_Application with the following parameters deviceNumber The value set by Measurement Automation Explorer MAX gpctrNum ND_COUNTER_1 applica...

Page 7: ...raditional NI DAQ Function Call LabVIEW Block Diagram Call Select_Signal with the following parameters deviceNumber The value set by MAX signal ND_RTSI_0 source ND_STABLE_10_MHZ sourceSpec ND_DONT_CAR...

Page 8: ...I 6601 6602 Device This section describes how to connect the clock source to the NI 6601 6602 device whether you are using a PXI 6608 or another clock source Connecting a PXI 6608 to the NI 6601 6602...

Page 9: ...nnect the ground of the clock to pin 41 which is digital ground Measuring the Frequency of the NI 6601 6602 Device Note If you are verifying the PXI 6602 on a PXI chassis the measured frequency is tha...

Page 10: ...bVIEW Block Diagram Call GPCTR_Change_Parameter with the following parameters deviceNumber The value set by MAX gpctrNum ND_COUNTER_0 paramID ND_SOURCE paramValue ND_INTERNAL_20_MHZ Traditional NI DAQ...

Page 11: ...tion Call LabVIEW Block Diagram Call GPCTR_Control with the following parameters deviceNumber The value set by MAX gpctrNum ND_COUNTER_0 action ND_PROGRAM TASK ID out connects to TASK ID in of step 11...

Page 12: ...ll LabVIEW Block Diagram Call GPCTR_Change_Parameter with the following parameters deviceNumber The value set by MAX gpctrNum ND_COUNTER_1 paramID ND_SOURCE paramValue ND_PFI_35 Traditional NI DAQ Fun...

Page 13: ...er accordingly For a frequency F 1 F ND_COUNT_2 should equal 50 ms 9 Program counter 1 to perform single pulse generation Traditional NI DAQ Function Call LabVIEW Block Diagram Call GPCTR_Change_Param...

Page 14: ..._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...

Page 15: ...occur in one second 50 ms 20 1 s which is the measured frequency of the 20 MHz timebase Example Code for GPCTR Watch u32 ulCount 0 iStatus GPCTR_WATCH deviceNumber ND_COUNTER_0 ND_COUNT ulCount ulCou...

Page 16: ...bVIEW Block Diagram Call GPCTR_Control with the following parameters deviceNumber The value set by MAX gpctrNum ND_COUNTER_0 action ND_RESET Traditional NI DAQ Function Call LabVIEW Block Diagram Call...

Page 17: ...necessary You have now completed measuring the frequency of the crystal oscillator on the NI 6601 6602 device Comparing the Measured Frequency to the NI 6601 6602 Device Specifications Compare the cal...

Reviews: