05-11-2011 03:25 AM
Hi
I am really struggling to incorporate PID control into my vi in labview 2010.
I am monitoring the pressure inputs, doing a flow calc and then displaying the flow whilst using a driver from the usb6008 to control the solenoid supply current.
Currently everything is manual but I would like to be able to allow the user to enter a desired flow value and then the system automatically opens the solenoid to achieve the target flow.
I've tryed to insert a PID control into the vi but got error messages.
Can someone point me in the right direction where to start or even better take a look at my vi and add a PID control feature for me.
I'm a labview novice and have never done PID so be gentle !!
regards
Andy
05-16-2011 04:00 AM
Hi Andy K,
There are a few examples of PID control on the following link: http://zone.ni.com/devzone/cda/tut/p/id/6440
Please have a look through them and if you have more specific questions, let me know.
Regards,
05-16-2011 01:00 PM
It would be helpful for you to upload your VI showing how you tried to insert the PID VI, and describe the error that occurred.
There are also many examples on this forum of how to use the PID functions. As far as I know the USB-6008 has no timer outputs so you'll have to generate a PWM signal in software. An example of one way to do this is here: http://forums.ni.com/t5/LabVIEW/PID-control-of-heating-element-feedback/m-p/1464204.