05-25-2011 09:54 AM
Hello All,
I was wondering how can i save for example x seconds of data every y seconds? At the moment i can save x seconds of data every x seconds but i cannot control the saving time and i need more flexibility.
Thank you in advance,
Frederic.
Solved! Go to Solution.
05-25-2011 10:55 AM
Show the VI you've created so far. It would be much easier for us to then suggest how you can modify it.
05-26-2011 05:54 AM
Sorry about that. Please find attached my vi.
Fred
05-26-2011 07:44 AM
I changed the way you were doing your time and made it a little more simple. You now have a wait time and an acquisition time. I have an indicatior that shows when you are saving and when you are not. Let me know what you think.
05-26-2011 08:05 AM
Thank you Tim. I'm annoyed with myself as i was so nearly there but couldn't figure it out on my own. Anyway.. Thanks again.
Fred
05-26-2011 08:08 AM
That is what we are here for to help each other out and to be able to get a fresh pair of eyes on the problem.
05-26-2011 08:32 AM
Hi,
It may be intentional, however it looks like there is a scenario where by when "Saving" boolean is false the data is thrown away. This is a particular problem as it may also be racey alongside the timestamp interval. The easy fix is to concatonate the data in the false case and store it in a shift reg / feedback node so as the data is not lost untill the true case is read. At which point it re-sets the concatonated data array to 0 and off we go again!
Craig