01-17-2012 03:28 PM
No problem!
This is in 2010 format. Let me know if you still can't open it.
01-17-2012 04:10 PM
I was able to open the VI. I modified it slightly because my end goal is actually to make buffered frequency measurements (attached). To generate my sample clock I am running another VI (Gen Dig Pulse Train-Continuous.vi). The signal is generated on CTR0 of cDAQ1Mod2 (NI 9402). The output from CTR0 (PFI 0 / DIO 0) is connected via BNC to the cDAQ chassis PFI0 (Trig 0). The generation VI is started running first and does output the 100Hz sample rate that I am looking for.
The measurement VI is measuring on CTR3 of cDAQ1Mod2. The source of CTR3 (PFI 2 / DIO 2) is connected via BNC to an encoder with 1800 ticks/rev resolution. I set the encoder spinning before running the measurement VI and continue to spin it until I get an error message (I don't have to spin it long). The measurement VI set to CI Freq using cDAQ1/PFI0 as the sample clock source and Trigger (Arm) source.
With this setup when I run the measurement VI I instantly get:
Error -89126: Trigger line requested could not be reserved because it is already in use.
Property: CI.Freq.Term
Property: CI.Freq.StartingEdge
Source Device: cDAQ1Mod2
I have tried to use other Sample Clock Source and Triger Source signals, but with no success. I remember getting "Error -201314: Multiple Sample Clock pulses were detected within one period of the input signal." when trying a few.