05-12-2025 10:25 AM
Hi guys,
I was developing the Simon Game for integrating with NI myDAQ for my student project assignment. I am have some queries here that I would like to clarify and seek advice on it.
I am using a QSM Template for it (attached in LV19 version).
Simon Game Explaination Links:
Queries:
1)Is there a better way to turn on and turn off the controls rather than using the Wait (ms) in the flat sequence structure as shown below (notice the for the simon game control, it uses both the control and indicator (for the buttons - together not separted)
2) I notice my VI, if I click many buttons on the simon game(ie there is 4 presses anticipated- but I pressed at 8 times very fast), the front panel control such as the main menu and exit game boolean control no longer works and it not responding when it returns to the main menu state, any advice or workaround to it?
I attached my VI in LV19 version together with the state transition diagram. Any advice or criticism to my VI is appreciated!
Many thanks!
05-12-2025 11:16 AM
Just a quick glance for now...
Instead of doing all the juggling with tab page visibilities, all you need to do is turn the tab into an indicator and change the value (the currently visible page) according to state. You can hide the tabs (visible items...).
Your color buttons are set to switch until released I would recommend latch action and value changed events. I would not put an event structures deep inside other structure, that's just asking for trouble.
05-12-2025 07:00 PM - edited 05-12-2025 07:02 PM
Hi Alten,
Thank you for responding. Ah the tab control one that is a good point raise up 😁 taken note of it and will modify!🙏
The event structure I do agree that latch would be a better option, but if I use latch for this case then I would not be able to use the property nodes the property to manipulate the control is a bit of a dilemma here.
The second one which the event structure you mentioned, how would you go about it? Putting the event structure separately by decoupling them in a separate loop?
Also for the timing wait(ms) in the first point of my post how would you tweak the VI if you were me?
Would love to hear your views! Cheers!