Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66684

Controller different Input in the same time in a real Scenario...(SIMULATION IN 2 TANKS CONTROLLER BY PCB BOARD)

$
0
0

Hi! I really need help....

 

I´m doing a simulation where I can controller the input and output with one external PCB, all is working properly (the communication) but my problem is, I can´t open where ever I want the different valves...I mean, I must wait until the process is finish...

 

The program is working with diferents process like this:

 

§Process 0:
    Programinitialization. Tanks and pipes in zero state. Control for this state with  “pump on” button.
§Process 1:
    §State:
         “ Pump on” button istrue: Pump 1 isrunning, andTank 1 starts to be filled with water.
         “ Pump on” button is false: nothing happen, go to the next process
§Process 2:
     This process is controlled from the “Control 1”button with is who control “Valve 1” for the discharge of water from tank 1 to tank 2.
§Process 3:
      This processiscontrolledfromthe “Control 2button with is who control “Valve 2” for the discharge of water from tank 1 to tank 2 if “Control 3 button is close or if “Control 3button is open the water go out from the loop.
§Process 4:
      This processgiveyoutheoptiontocome back totheprocess 1 ortotheprocess 2 dependingofthestate in process 3.
 

 

 

 

simulation

 

 

So my problem is I want  run different processes in the same time, without having to wait out the current process is running....

 

this look like this:

 

 

diagram

diagram2

 

and with the differents states...so I was trying to use a Statechart for try to improve the simulation....

 

like this:

statecharts

But when I was tried to implement in labview with the statechart module i can't find the way to interconexión with this new module...

 

StatechartLV

Because i need two differents regions...but i can't use the connexion between them....

 

Some new idea, help....all is welcome!!!

 

Thanks in advance.

 

 

Elena


Viewing all articles
Browse latest Browse all 66684

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>