06-05-2014 07:31 AM
Hello,
I have developed a VI that will read data from sensor usind DAQ and writes the data contineously to a text file. My problem is the file is getting very big. I want to to read data contineously and show it on front panel (i.e. Graph) But I want to write this data to a text file after specific time and for specific time (e.g. Every 10 minutes - write for 1 minute). Can anyone help me with this ?
Thanks in advance.
06-05-2014 07:43 AM
This should not be too difficult using timers. Open the file, save some data, wait, save again, repeat, then close the file. It's kind of hard to be more specific if we can't see what you've already done. Show us what you have.
06-05-2014 07:53 AM
Hi,
please have a look on the example VI. It reads and writes data contineously to a text file.
06-05-2014 08:30 AM - edited 06-05-2014 08:50 AM
elapsed timers will do the trick...but then again, you could use the CPU clock if you wanted on the ten count by using the 'seconds to date/time' and 'quotient and remainder'
06-05-2014 08:42 AM
Hi Apok,
thanks for the reply. can you please send me this VI.
regards,
Swap
06-06-2014 08:28 AM
Hi swap15
I quickly rebuilt the code Apok was suggesting. Check out its functionality i.e. with the highlight mode.
Best,
Raffael Gross
06-06-2014 08:41 AM
Hi Raff,
thanks for the reply.......but I have already implemented it and its working fine...........anyways thanks again for the help...
regards,
Swap
06-06-2014 11:15 AM
@swap15 wrote:
Hi Raff,
thanks for the reply.......but I have already implemented it and its working fine...........anyways thanks again for the help...
Say thank you by giving kudos and marking the solution to the topic. Looks like several people work hard at helping and I'm sure they would appreciate the kudos for taking the time to help you.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord