06-28-2022 08:44 AM
Hello to all
I have created a VI to acquire data from multiple thermocouples and voltages. You can find my vi attached in this message.
At this moment the write to file section is saving the data on a file only if I click on the Stop button. This is not optimal as I had many times my software crushed during the test period I am trying to find a way for the file to save at a specific interval I will be indicating (e.g. each 10 minutes).
Would it be possible for someone to guide me on how to implement such requirement?
Thank you for your help and consideration.
Alex
06-28-2022 09:13 AM
Not many people have LV2021. You will get more help if you save your vi for an older version.
06-28-2022 09:21 AM
Thank you Frozen for your input
Please find below a version for 2020 and one for 2019.
06-28-2022 09:29 AM - edited 06-28-2022 09:31 AM
Hi Nikolian,
@Nikolian07 wrote:
I am trying to find a way for the file to save at a specific interval I will be indicating (e.g. each 10 minutes).
Ideas:
06-28-2022 02:42 PM
@Nikolian07 wrote:
At this moment the write to file section is saving the data on a file only if I click on the Stop button. This is not optimal as I had many times my software crushed during the test period I am trying to find a way for the file to save at a specific interval I will be indicating (e.g. each 10 minutes).
And you will continue to have your program crash during the test period
I believe this is because you have what 15(?) Arrays that are continuously growing until you stop.
It's only a matter of time before your program will crash due to running out of memory.
The shorter your measurement interval is the sooner it will crash.
One Big Loop is not a proper program architecture, a simple State Machine would be magnitudes better...