From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to set a variable for a specific time and be able to read from it all the time.

Hi

 

I want to set a variable to be true for a specific time. I've tried to use a While-loop together with "elapsed time" but my program is waiting for the loop to be finish before reading from the variable. Anyone who have a clue how to solve this?

 

Regards

Viktor

0 Kudos
Message 1 of 3
(2,194 Views)

Post the sample code please

0 Kudos
Message 2 of 3
(2,193 Views)

Here it is. Right now, when i press te "Go" it runs for the specific time i've set and when its done the variable "Run" is set true. When i call this VI from another VI it waits for the loop to be finished before it will read the variable.

 

Regards

Viktor

0 Kudos
Message 3 of 3
(2,183 Views)