LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solenoid subVI

Solved!
Go to solution

Well, again, I can't view it because I don't have LV11.  But your previous post does not show a state machine.  With this, you can get rid of your sequence structure.  I don't use them accept to force data flow, but you don't need it for that.  Use your error clusters.  Use this always, bare minimum to give you some error handling.  This will also give you the data flow that you need.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 11 of 16
(829 Views)

Here you go, the 8.2 version.

 

At least this one does what it should, but since i'm quite new with this i guess i has a few bad solutions and missouts.

How would you use error clusters in this one? I havent used them before.

 

 

Download All
0 Kudos
Message 12 of 16
(815 Views)
Solution
Accepted by Elling87

I took the liberty of making some changes to your code.

 

Do you want the process to repeat with either state of the boolean?  Your code is duplicated in both cases (true and false).  Besides that, your false case will never execute past the Wait state with this design.  In order for any of the false case functions to execute, boolean must be true, in which case it is going to execute the true case instead.  I don't think you need anything in the false case.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 13 of 16
(810 Views)

This one looks wery good! I'm glad you took the libery of making some changes!:)

 

The boolean swich desides about running the opening sequens or the closing sequense.

The the wait case wil run until a change in the boolean is made, and the change vil be detected and jump to "close_prev".

 

Thanks alot for the help!:)

 

 

 

0 Kudos
Message 14 of 16
(796 Views)

Your welcome.  I'm glad you can make use of it.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 15 of 16
(789 Views)

Hi,

 

I know this is a bit off-topic, but i was wondering what is your relay for the soleniod valve...

 

Thanks,

 

M

0 Kudos
Message 16 of 16
(777 Views)