LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to a text file after specific time and for specific time

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.

 

 

 

0 Kudos
Message 1 of 8
(3,387 Views)

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.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 2 of 8
(3,382 Views)

Hi,

 

 

please have a look on the example VI. It reads and writes data contineously to a text file.

0 Kudos
Message 3 of 8
(3,374 Views)

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'

Example_VI_BD.png

0 Kudos
Message 4 of 8
(3,358 Views)

Hi Apok,

 

 

thanks for the reply. can you please send me this VI.

 

 

 

regards,

Swap

0 Kudos
Message 5 of 8
(3,348 Views)

Hi swap15

 

I quickly rebuilt the code Apok was suggesting. Check out its functionality i.e. with the highlight mode.

Best,

Raffael Gross

0 Kudos
Message 6 of 8
(3,308 Views)

Hi Raff,

 

 

thanks for the reply.......but I have already implemented it and its working fine...........anyways thanks again for the help...

 

 

 

 

regards,

Swap

0 Kudos
Message 7 of 8
(3,304 Views)

@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.

Message 8 of 8
(3,296 Views)