LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffered Period Measurement using Traditional API in LabWindows

Does anyone have sample code for buffered period measurement using the NI-DAQ traditional API in LabWindows CVI?  I am using a PCI-6024e card.  I can set up the process with:
 

GPCTR_Set_Application (deviceNumber, ND_COUNTER_0, ND_BUFFERED_PERIOD_MSR);

but I'm not sure where to go from here. Thanks in advance,

 

andgate

0 Kudos
Message 1 of 3
(2,983 Views)

You may find useful this example that performs this operation on a 660x card. Hardware is different from your card (NI-TIO instead of DAQ-STC) but the code could be a good framework for developing your application.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,973 Views)
Hi andgate,

There are also examples included with the Traditional NI-DAQ drivers for Visual C.  They can be found in the following directory:  ...\National Instruments\NI-DAQ\Examples\VisualC\Ctr

Within this directory there is a C source file titled "STCsingleBufPeriodMeasure.C".  This particular example should give you a good start in setting up your application.

Regards,
Andrew W
National Instruments
0 Kudos
Message 3 of 3
(2,954 Views)