Hi~ i need an urgent reply for this simple question, if anyone of you out there could help me, that would be appreciated. thanks!
im using PCI-6014, i wish to use DAQ-STC Counter/Timer to measure the period of a pulse from the digital pulse train. Other than set the measurement type in the properties page of the counter control to PERIOD,RISING EDGE, what should i set the CLOCK page and GATE page? what I/O connection i need to use? can I use PFI3 and DIO7 as im using counter1? Following is the code that i have to show the value of the period of one pulse.im not sure whether if it works. Please correct me if there is mistake/error.
------------------------------------------------------
Private Sub Timer1_Timer(
)
Dim Measurement As Long
Dim Overflow As Boolean
CWCounter1.ReadMeasurement Measurement, Overflow
PeriodPerPulse.Value = Measurement
End Sub
------------------------------------------------------