f



synchronizing analog input and counter input

Hi,  I have a VI where I am acquiring samples from multiple sensors every one second. For these I am using analog input terminals. I have another sensor that  is a voltage transducer that outputs a PWM, and I want to get the average duty cylce of that signal. I use a CI semi period measurement to do this. Is there a way to synchronize this so that when I acquire the AI samples, I also get the average duty cycle over that one second of sampling?When the fianl VI is done, I want to be sampling continuously for a long time, but I can't figure out this part. Thanks for the help.


AI Master test.vi:
http://forums.ni.com/attachments/ni/170/334641/1/AI Master test.vi
0
x9561 (148438)
6/24/2008 10:10:07 PM
comp.lang.labview 35210 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

3 Replies
8281 Views

Similar Articles

[PageSpeed] 9

1. You could try to use the same trigger as a acquisition start for both measurements.2. At this moment there is no data flow dependency between the two acquisitions. (You could use the error cluster to split from the upper acquisition and enter both acquisition start VIs, this would add a dependency that the acquisition start is sort of synchronised at start.I have made some changes to point it out more clearly.Message Edited by andre.buurman@carya on 06-25-2008  08:47 AM


AI Master test.vi:
http://forums.ni.com/attachments/ni/170/334700/1/AI Master test.vi
0
x9561 (148438)
6/25/2008 7:10:05 AM
Hey andre Thanks for the help. Could you save the file to version 8.2?
0
x9561 (148438)
6/25/2008 7:40:08 PM
I don't have the time to do this, but here's a screenshot of the modification. Main modifications are in the square decorations (not to be added :smileywink:).<img src="http://forums.ni.com/attachments/ni/170/335075/1/AI%20and%20counter.png"> Message Edited by andre.buurman@carya on 06-26-2008  08:42 AM


AI and counter.png:
http://forums.ni.com/attachments/ni/170/335075/1/AI and counter.png
0
x9561 (148438)
6/26/2008 7:10:06 AM
Reply: