Hi Ambroz,
- why are there 2 event structures in just one loop in your only VI?
- why do you use a sequence structure?
- why don't you use a state machine?
- your first frame can be simplified to:
- why do you use a WaitForMultiple function, when the event structure next to it already has a timeout event for the very same wait time?
- why do you have this very "interesting" construct twice in your VI?
- Do you know how event structures work? Do you know what happens when you configure the very same event for two event structures in the very same VI?
When something doesn't work you should create a simple VI for testing purposes and try to understand this very feature you want to implement!
As an inspiration this is the main loop of my Snake version:
The whole game stuff is hidden in those 4 subVIs… 😄
Best regards,
GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019