04-20-2017 05:14 PM
Dear all,
I'm trying to make a VI that sequentially opens and closes 4 separate solenoid valves; each one triggered by a separate case structure. Attached is the VI I have created so far. What I'm missing is the section of "code" that starts case "2" after case "1" (default). I am relatively new to LabView, so a short explanation or direction to the correct tutorial will be sufficient. Thanks in advance.
04-20-2017 05:29 PM
I recommend you go learn the State Machine. You are actually half way there.
04-20-2017 09:04 PM
Hey! You've attached a screenshot and not the actual VI
But are you trying to get to case 2 when the timer is reached?
04-20-2017 10:12 PM
Looks inside-out. Try with the case structure on the inside and the while loop on the outside. 😄
04-24-2017 01:02 PM
Yes, Case 1 will timeout, starting Case 2, which will have a timer, than on to Case 3 and so forth.
04-24-2017 01:06 PM
So have you flipped it so it is no longer inside out like Altenbach suggested?
While loop belongs on outside, case structure inside.
04-24-2017 01:35 PM
This is what I tried, but both counters run concurrently, not consecutively.
04-24-2017 01:39 PM - edited 04-24-2017 01:40 PM
now all you need to do is add a select to determine if you want to eithe Keep Waiting in this state or move to the next state after the timer expires.
I have no idea what the build array is there for
04-24-2017 01:40 PM
You missed the decision pint. if the time has elapsed, then move on to 3, if it has not elapsed then return to the current state.
I don't understand the purpose of building the array of booleans.
04-24-2017 01:41 PM
@RavensFan wrote:
You missed the decision pint. if the time has elapsed, then move on to 3, if it has not elapsed then return to the current state.
I don't understand the purpose of building the array of booleans.
great Idea!