01-25-2021 04:44 AM
Hello, everyone!
I am a new user of the LabVIEW and not so familiar with the coding program on LabVIEW.
Recently, I want a sequencing valve control program from LabVIEW 2019.
I want to realize a periodic control of three valves and one single valve.
Program 1:
1: Valve 1 and valve 2 open. Valve 3 closed.
2: Valve 1 and valve 2 closed. Valve 3 open.
3: all valve open
from 1 to 3 cycle operation, the frequency could be changed.
Program 2:
Only one valve 1, close- and open-cycle operation, the frequency could be changed.
Now, we are using the compactRIO to control the solenoid valve
Could you give me some examples and suggestions?
Thank you very much!
Best regards,
01-25-2021 05:06 AM
Hi nitori,
@nitori wrote:
I am a new user of the LabVIEW and not so familiar with the coding program on LabVIEW.
…
Now, we are using the compactRIO to control the solenoid valve
Could you give me some examples and suggestions?
As a new user with little experience in LabVIEW you really should take all those "Training resources" as offered in the header of the LabVIEW board. Especially as you want to use a cRIO instead of a plain (Windows) computer with some USB/PCI(e) DAQ devices!
@nitori wrote:
I want to realize a periodic control of three valves and one single valve.
Program 1:
1: Valve 1 and valve 2 open. Valve 3 closed.
2: Valve 1 and valve 2 closed. Valve 3 open.
3: all valve open
from 1 to 3 cycle operation, the frequency could be changed.
Program 2:
Only one valve 1, close- and open-cycle operation, the frequency could be changed.
What about state machines to execute your steps/states? Or even simple loops to repeat your code?
01-25-2021 08:09 AM
Is this really all the program will ever do?
A simple loop, a few arrays and a wait elapsed time will do.
That won't be the basis of a well structured program though. If you plan on adding bells and whistles, you'd need to create some sort of scaleable architecture.