LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequential Case Structures

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. 

0 Kudos
Message 1 of 11
(3,708 Views)

I recommend you go learn the State Machine.  You are actually half way there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 11
(3,697 Views)

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?

0 Kudos
Message 3 of 11
(3,653 Views)

Looks inside-out. Try with the case structure on the inside and the while loop on the outside. 😄

0 Kudos
Message 4 of 11
(3,647 Views)

Yes, Case 1 will timeout, starting Case 2, which will have a timer, than on to Case 3 and so forth. 

0 Kudos
Message 5 of 11
(3,558 Views)

So have you flipped it so it is no longer inside out like Altenbach suggested?

 

While loop belongs on outside, case structure inside.

0 Kudos
Message 6 of 11
(3,556 Views)

This is what I tried, but both counters run concurrently, not consecutively. 

Screen Shot VI.png

0 Kudos
Message 7 of 11
(3,546 Views)

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


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 11
(3,543 Views)

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.

0 Kudos
Message 9 of 11
(3,541 Views)

@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!


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 11
(3,536 Views)