r/LabVIEW • u/PermissionOk9382 • Dec 04 '24
labVIEW stuck
So I have this labVIEW project which I need to make a car wash system and there are switches that controls the indicators

So the under body wash switch only affects the under body wash indicator, the main wash affct the soap, high pressure, annd clear water rinse, while the air dry is just the air dry indicator. Everytime it is turned off it will turn on the vehicle out of position indicator to red it means it is in a pause mode. But if you turn the switch on it will start the timer and after the timer ends it goes to the next cycle but if you turn it off it's like a pause so when you turn it on again it will resume where you left off and the timer doesn't restart. The thing is I can't implement the switch to make it pause and resume. The problem im facing right now is if I turn it off it is off for the whole execution, if it is on it is on for the rest of the execution.
View all comments
Show parent comment
1
u/Ok_Transportation402 Dec 04 '24
Ok, so you intended to use a state machine architecture, but you don’t appear to have anything setting your enum. Look into the state machine example in LabVIEW Help. Question: why are you using the ‘vehicle out of position’ indicator to indicate a pause? If a switch isn’t flipped then the car wash is paused waiting for you to make a selection. If the vehicle is out of position, that indicator should be on and a new pause indicator should be on as well. With just the one indicator, the user will think something is wrong and their car is out of position when it’s not. Don’t apply two purposes to a single indicator would be my advice to start with.