10-07-2020 11:29 AM
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?
10-07-2020 11:45 AM
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…
10-07-2020 12:31 PM - edited 10-07-2020 12:33 PM
@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.