LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed or button controlled while loop

Solved!
Go to solution

Hi everyone,

 

I have developed a program using statemachine method to controlled the while Loop two ways i.e, Buttons or Time.The start and stop logic wíth time and Buttons are working fine.

 

The Problem is the button or time selection depends on the Switch Position before running the program. I want to select them while running the program.

 

Here, in the program I have set Buttons as Default selection. So, I am unable to select the time while running the Programm. As i want to create a executable file. It will start running asa I open the vi. User will be unable to select time Option.

 

Please help me to solve the Problem

 

Thanks a lot in advance

0 Kudos
Message 1 of 3
(2,285 Views)
Solution
Accepted by topic author Avalanche_27

Hi Avalanche,

 

create a new state to give the user a chance to select the mode like wait for an OK button before the "Time/Button" control is read.

(Or change that "Initialize" state to automatically present a dialog to select the mode. This Dialog expressVI can be customized to do that!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,268 Views)

Hi GerdW,

 

Thanks a lot for the solution I customized the dialog box. Its working.

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