Dear Mike,
I appologize for probebly mixing up timestamp and milisecond timer value...
I´ll try to describe the problem better.
In the main program I start a milisecond counter. Following this I have a while loop, which runs untill the difference between another milisecond counter running in the loop and the first counter becomes larger than a set value. The set value in our case is the length of the measurement window.
The above while loop contains a sub vi, which reads (samples) the analog voltage from an acquisition card, and returns the sampled values in an array. (The sampling is triggered, when the voltage at the acquisition card exceeds a certain value.)
The inreresting information except the height of the signal is the time when the signal arrives, with respect to the start of the while loop in the main program. So I thought I just read a value in the sub vi, when the signal arrives. Then, by comparing the time values, it can be decided, if the signal came inside the measurement window (and it schould be written to a file), or it should be neglected.
ofcourse, I am open to any other suggestions, regarding how to solve the problem...
thanks
oistvan
Message Edited by oistvan on 06-09-2007 11:44 AM