LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event based structure

Greetings,

I have created a vi that requires user interaction and button presses for a lengthy chain of tests. I used an event based structure (that has around 30 states).
I was wondering if there was a way to automatically transition from one event to the next, rather than requiring the button pushes.

I'm not looking for efficiency and I understand that it is not the best approach, however I would like to be able to quickly transition to autonomy rather than redeveloping the vi using a state machine or other.

 

Can I transition from 1 event based state by changing a value or mimicking a button press at the end of one state?

Or is there a easy (low time consuming) way to transition from an event based structure to another structure that will do what I need?

0 Kudos
Message 1 of 3
(1,300 Views)

Hi Rentschler,

 


@Rentschler12 wrote:

Can I transition from 1 event based state by changing a value or mimicking a button press at the end of one state?


Yes.

Use a "Value (signalling)" property node…

Best regards,
GerdW


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

@GerdW wrote:

Hi Rentschler,

 


@Rentschler12 wrote:

Can I transition from 1 event based state by changing a value or mimicking a button press at the end of one state?


Yes.

Use a "Value (signalling)" property node…


Sometimes we don't have the luxury of doing it the "right" way.  Real life sucks, sometimes.  😉

 

Anyway, to add a bit to @GerdW's post, Value (Signaling) won't work if your buttons are all "Latch When Released", which is the default mechanical action for a button.  You will have to change each of them to "Switch When Released" and set the value back to FALSE in the event case that contains it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 3 of 3
(1,276 Views)