Hi~ i need an urgent reply for this simple question, if anyone of you out there could help me, that would be appreciated. thanks!
i wish to use DAQ-STC Counter/Timer to measure the period of a pulse from a digital pulse train. Following are the setings in the counter's properties page.
1)General:
measurement type: PERIOD,RISING EDGE
Counter: 1
2)Clock:
Source: PFI
Signal: 4
Edge: Count Rising Edge
Count Direction: Up
3)Gate:
Gate Source: Counter's gate
I/O connection I use is PFI4/GPCTR1_GATE
Following are 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. Will the value return in the CWNum
Edit named PeriodPerPulse in the unit second?
------------------------------------------------------
Private Sub CWCounter1_AcquiredData(Measurement As Variant, ByVal Overflow As Boolean)
PeriodPerPulse.Value = Measurement
End Sub
------------------------------------------------------