Over the next few weeks I am going to start to build a new vi, and I am looking for suggestions on what programming technique should be used for what I am trying to accomplish. A broad view is 6 solenoids open/close (via analog out), an air tank is filled, a water tank is filled. Once everything is initialized, solenoids open/close and a motor is turned on (analog out), and analog in data is written to file. Once complete everything is restart automatically.
Now for a little more detail. The first thing the vi will be doing is the vi will open a solenoid (via analog out) which manual fills a water reservoir then after say 5 mins later the solenoid closes. Concurrently the vi will be continuously monitoring bottle pressure via analog in, closing a solenoid via analog out (discharge line), and opening a solenoid via analog out (to fill pump). When the bottle pressure reaches a certain level, the solenoid that is hooked to the pump will close (analog out), and wait a certain amount of time. After that time has elapsed, the vi will check bottle pressure and see if it need to be refilled due to temperature change. If a refill needs to take place it will close and reopen the respective solenoids, fill, and enter the wait period again. Once the bottle pressure is within a set limit, some solenoids will close, and some will open via analog out. The test will automatically start, which a profile via analog out will be sent to a motor controller, and saving analog in data to file at the same time. Once the test is complete the whole process will start over again. I am going to try and automate this so during any part of this process if any pressure reaches above a set point (analog in), the test aborts and vent solenoids open (analog out). Passive relief valves will be in place, as a backup. It would also be nice to have a diagnostic to say why test failed, if the test failed it will require a manual reset by the user, once they have completed a safety checkout to resume automatic testing.
I am thinking a I might need a 8 ch analog out card, to control each solenoid independently of each other. We currently have a multifunction daq card with 16 analog in/ 2 analog out. Any problems anyone might see? Suggestions? Thanks for any help!