04-16-2015 02:30 PM
Hello,
I'm fairly new to labVIEW and need help with this particulare VI. It is setup to collect vibration data at noon and at midnight. What I need to be able to do it alter it so I would be able to collect data every 1hr. And eventaully I want to collect data every 4 hrs. Any help would be appreciated.
Solved! Go to Solution.
04-16-2015 05:48 PM - edited 04-16-2015 05:49 PM
I would set something up like this:
Use the Seconds To Date/Time to get a cluster of the time. We are just needing the Hours, Minutes, and Seconds from the cluster. For the hours, use the Quotient & Remainder to divide by whatever increment you want. Add the remainder with the seconds and minutes. If the sum is 0, then you can start your record.
04-17-2015 06:37 AM
Thanks! I will give that a try.
04-17-2015 09:17 AM
If you don't need to take samples at a particular time, but instead at a particular rate (e.g. every hour, every 4 hours, twice a day), consider putting a Timed Wait inside the sampling loop. A loop with such a Wait doesn't take any CPU time while it is waiting, so you could (in principle) be doing other things (or, if running on batteries, you will probably lengthen the Recording Time ...).
Bob Schor
04-17-2015 09:51 AM
Thanks Bob
05-23-2015 11:00 AM
Sorry my response is so late. I implemented the change, and set the increment to 1 to try and collect data every hr, but it doesn't seem to be working. Did I implement it incorrectly? Unfortunately I'm just not that experienced with Labview yet.
05-23-2015 12:01 PM
Sorry, It does work. I just had my data file being saved to the wrong location. I was mistakenly thinking it was not recording.
Thanks!