ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple state machine

Hi everyone,

 

i have written a very small and simple state machine. (used project template).

Unfortunately i can onnly start one time. But if i´m testing with highline i have no trouble. Perhaps someone can give me some advice.

And how can i block push/activate button during sequence?

 

Thank you in advance

 

Message 1 of 4
(2,595 Views)

Hallo Hulk,

 


@Hulk1978 wrote:

Unfortunately i can onnly start one time. But if i´m testing with highline i have no trouble. Perhaps someone can give me some advice.

And how can i block push/activate button during sequence?

I can run your main VI several times without any problem: why can you "start only one time"?

To disable (and gray out) buttons you can use a property node for that button…

 

Suggestion:

Don't close the VISA reference in the VI when you want to start your "Sequenz" again…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,558 Views)

I think you have to 'Reset' the Express VI 'Verstrichene Zeit' if you press 'SEQUENZ' for the second time after starting the VI.

0 Kudos
Message 3 of 4
(2,554 Views)

Hi everyone,

 

in highlightmode  it works fine...really no trouble.

But in live mode i start sequence, first ACW, delay, IR...

Then i pushed again sequence and the device is like "overload/to much input".

 

The timer is set to reset automaticly with true bool and i moved the close visa reference to exit case.

Perhaps it helps.. i put an indicator to "time has elapsed" after one sequence..he is always true...

 

0 Kudos
Message 4 of 4
(2,495 Views)