LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help with creating a Loop

I have a program which claculates the Temperature from the Data from a sensor...I want the program to calculate the temperature every 45 mins and save it as well...
Can someone help me on How to do it...Please
0 Kudos
Message 1 of 4
(2,742 Views)

Place your current program in a while-loop and add a "wait" with 2700000 as input.

(wait is in timing panel)

 

Add a "Write measurement file" (file i/o-panel) which connects to your measurements or calculation.

 

That should be all i think.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(2,735 Views)

Using a Wait function with that long of a duration would be a really bad idea. Assuming that you would also have stop button, the while loop might not terminate until 45 minutes after you pressed stop.

 

Instead, you could simply use the Elapsed Time function with the Time Has Elapsed output wired to a case statement.

Message 3 of 4
(2,731 Views)
Good point. I assumed Wait was abit more flexible. 🙂
G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,724 Views)