03-05-2018 10:46 PM - edited 03-05-2018 10:48 PM
I am very new to Labview and would appreciate your assistance with a few questions.
First how do you get the program to keep running after triggering my set point of 25?
I think it's ok that my coke or sprite selection stays on but could use help there too.
Then I am trying to keep count of these triggerings and display a sold out message (like after 3).
Thank you for your time.
03-06-2018 01:06 PM
Execution highlighting (the lightbulb icon) will be a good tool to help understand what is going on.
Also, there are several tutorials online like this one to help better understand state machines
In this case, the reason your execution stops is because in your dispense state you have a true constant wired to the stop of the main loop. If you want to do this action multiple times, then in the dispense state you should:
1. reset the value of the 'money deposited'
2. not stop the main loop
3. decide what is the next state you want it to go to (as it is, you leave the state unchanged, so it will continue to run the dispense state indefinitely)
AE | NI
03-06-2018 07:13 PM
If l didn't have the wire go straight through wouldn't l have to recreate each state to simulate the loop?
Also l don't know how to reset the money deposited beyond entering 0.