05-03-2011 02:22 AM
I take one part/stage of my design the FCV.
FCV is a knob:
1, when the number is 0 the knob is at 0, closed
2. When the numeric is at 250 it should automatically take semi open position
3. When the numeric is at 500 it should automatically take the fully open position.
I designed the VI but it doesnt work accordig to the logic.
05-03-2011 03:36 AM
I think I am so confused lookng at different examples on the forums. Recently I found the new VI which matches my concept partly, filling one tank through a slider and then filling the next tank by altenbach.
In this flow I need to add some conditions of RCV and FCV as discussed above.
Should I use array? or in range or coerce or for-loop iteration wth +1 or -1 ? or i should use state machines? or use time stamp? or use in-place element structure? How to cotrol FCV?
Actually the pattern is similar to this VI but in between I need to add some conditions in the flow through FCV or knob?
Please see the VIs i have made and let me know my mistakes. I am posting the VIs with different concepts and also the FCV.vi in last reply.
Final goal is to achieve the flow with all stages.
05-03-2011 07:49 PM
Hello again,
I think that Altenbach's example is a great place to start. I am a little confused on how exactly you want the RCV and FCV to behave (maybe I just don't know what they stand for :). Do you want the RCV to start the tank emptying process? For the FCV, does that control the flow in the middle slide, or is it controlled by the flow out of the first tank. Maybe if I understand what you want these to do, I will be able to help.
05-03-2011 08:10 PM
Thanks for replying!
my process flow is:
Tank1(500ml)-> RCV(remote control valve) just on/off, starts emptying the tank and filling the verticle slider/pipe1, just below the tank1->goes to horizontal slider/pipe2->FCV, Flow control valve, has conditions, if the pipe2 is filled 250ml the knob/FCV semi-opens->if the pipe2 is 500ml filled then knob/FCV fully opens and passes the flow to the next pipe 3 horizontal->goes to pipe4 attached to tank2 it is filled 500ml
Please see the VI below I tried making it but my VI unable to fullfill the conditions.
05-04-2011 12:47 AM
Your state engine will forever be stuck in Closed state since you feed a constant to the case-structure.
/Y
05-04-2011 01:43 AM
How can I add the change in state?
05-04-2011 01:46 AM
I tried the VI according to the logic but still not meeting the conditions.
05-05-2011 07:43 AM
Hello KRAZE4LV
On your block diagram, your state machine is always in the closed state for two reasons. First, you have to use a shift register to pass states between each iteration of your loop. Please look at this example to see how a shift register should be used in a state machine. Second, you seem to have tied both the next state and your iteration count to what looks to me should be your next state logic. This is confusing, and I'm not quite sure why you are doing it (inside your case structure, wired to your selector, you have a state, and you have a number).
05-05-2011 06:40 PM
Thanks for sharing the example with state machine but still I am unable to understand.
Actually as mentioned my process flow is:
Tank1(500ml)-> RCV(remote control valve) just on/off, starts emptying the tank and filling the verticle slider/pipe1, just below the tank1->goes to horizontal slider/pipe2->FCV, Flow control valve, has conditions, if the pipe2 is filled 250ml the knob/FCV semi-opens->if the pipe2 is 500ml filled then knob/FCV fully opens and passes the flow to the next pipe 3 horizontal->goes to pipe4 attached to tank2 it is filled 500ml
In this case in my VI, test:
I am unable to empty the first tank also
Unable to change the states as per my flow information
Can you help me achieve the process flow logic in my VI?
05-05-2011 09:50 PM
Here is my VI...which needs modfication