05-22-2017 09:27 AM
Good afternoon everyone.
I'm working with an Ocean Optics spectrophotometer and I can make it acquisition from Labview with the driver provided by the manufacturer. For the acquisition, you must enter an integration time, so, for example, if the integration time is 100ms, I can only obtain the measurements in 100 ms intervals.
The problem I'm having here is that I need to monitor this acquired signal over time. The idea I had was: use a timer and the "quotient and remainder" function. The idea is to divide the time elapsed by the integration time (both in ms) and to make the measurement every time the quotient value changes. So the idea is that when the quotient changes, for example, from 4 to 5, the measure is made. I tried several ways to make it work this way, using shift register, using feedback nodes, doing array storage comparing last value with a penultimate value, but none of these ways I was able to make it work.
Can anyone give me an idea of how I could proceed with this problem?
Attached, I sent the subVI responsible for picking up the elapsed time and divide by the integration time.
Thanks for listening.
Solved! Go to Solution.
05-22-2017 10:20 AM - edited 05-22-2017 10:21 AM
05-22-2017 10:37 AM
Just use the Elapsed Time function in the Timing palette. It has a simple boolean output to tell you if X seconds has passed.
05-22-2017 11:42 PM
Hello. Thanks for the answer, but I can't use the "wait until next ms multiple" function because I use other digital outputs which requires a triggering time smaller than the integration time.
05-22-2017 11:44 PM
Hello.
Thanks for the answer.
Your sugestion have worked very well. I feel bad for not thinking in this solution hahaha
I am sending the VI with the expected behavior.