10-16-2013 05:50 PM
Hello,
I'm some what new to Labview but I have managed to get my pressure sensor and syringe pump working to an extent. I can read live data from the pressure transducer as well as control the syringe pump (BurstTestVIFinal.vi). However, the end goal is to have 1 VI that tells the syringe pump to infuse until a certain pressure, switch to withdraw until back to 0, and repeat this a determined amount of cycles while continously recording the pressure. I'd also like to keep the current feature in the bi-mode.vi, which infuses and withdraws until a target volume maybe by combining it with an or statement to what I mentioned above. If you wouldn't mind taking a look at the two attached VIs and giving me a starting place/examples it would be much appreciated. I've already spent too many days trying to figure out how to get this to work...
P.S. I realize these VIs have several dependencies and subvis that I didn't not attach but I have them if needed. Just let me know.
~ Thanks, Jack
10-17-2013 06:35 PM
Hello Jack,
With the understanding I have of your application so far, I think using your two VIs in producer-consumer loop with a state machine would be the best bet. This way you will be able to control the syringe pump depending on the pressure. The state machine should be able to allow you to control your target volume. Here are some links to producer-consumer loops and state machines you can look at:
http://forums.ni.com/t5/LabVIEW/Producer-Consumer-Architecture/td-p/494883
http://www.ni.com/white-paper/3023/en/
I hope these are able to point your in the right direction.
Best Regards,
Anna L