10-31-2023 08:30 PM
Hi everyone,
I was following the instructions for state machine construction in a tutorial and the code doesn't seem to work. It looks like the buttons placed inside the event structure are not being executed like they were in the video. I am confused as to where I went wrong since everything I did looks the same as the tutorial. I have attached the code and the type def created.
Thanks in advance!
Tutorial link: https://www.youtube.com/watch?v=RuIN31rSO2k&ab_channel=NationalInstrumentsEasternEurope
Solved! Go to Solution.
11-01-2023 02:19 AM
Hi ruth,
@mako_ruth wrote:
I was following the instructions for state machine construction in a tutorial and the code doesn't seem to work. It looks like the buttons placed inside the event structure are not being executed like they were in the video.
For me the VI works as expected (from code review) - but I didn't watch the video…
What is your expectation and where does the VI don't follow your expectation?
11-01-2023 02:14 PM
Hi GerdW,
Turns out the embedded UI needs to be enabled on my CRIO 9038 before using the event structures! Did not know that beforehand so I was quite confused and thanks for the code review.
https://www.ni.com/docs/en-US/bundle/labview-real-time-module/page/lvrthowto/deskenv_enable.html
Cheers,
Ruth
11-01-2023 02:45 PM
Hi Ruth,
@mako_ruth wrote:
enabled on my CRIO 9038
I was quite confused …
Yes, you even forgot to mention any cRIO in your first message…