LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID_ Valve control

Hello,

 

This is my first time using the PID toolkit and I am attempting to regulate the valve by giving volume flow. I want to control the valves so that the program will open and close the valves as needed to reach the desired set point(Volume flow).  My main problem valve is taking either 0 or 10 as output(ie; Fully closed or fully open).  Any help would be appreciated.  I have attached what I have done so far.

 

Thanks

0 Kudos
Message 1 of 7
(3,201 Views)

You posted your message to the tail end of an unrelated message thread.

 

If you want help, you need to start a new message thread with your question.  I have moved your message to a new thread for you.

 

Please read,

0 Kudos
Message 2 of 7
(3,188 Views)

Hi balabhi,

 

My main problem valve is taking either 0 or 10 as output(ie; Fully closed or fully open). 

Does your valve only accept either 0V/10V or does your VI just output these two values?

 

On your VI:

- Why have you configured DAQAssistent to read 5 samples at 1Hz samplerate? This will take 5s - no PID control does like such delays!

- Why is there DAQAssistent3 with some "feedback voltage"?

- Why are you using default PID gains? Do they fit for your control loop?

- Why do you use DAQAssistent ExpressVIs at all? DAQmx functions are so easy to use and there is a huge library of example VIs!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 7
(3,130 Views)

Hi GerdW,

 

Thanks for your reply.

 

Does your valve only accept either 0V/10V or does your VI just output these two values?

 -- VI just output either 0V/10V. Valve voltage is in the range of 0-10V.

 

Why is there DAQAssistent3 with some "feedback voltage"?

--To check the valve position. As VI just output either 0V/10V, I get the same feedback voltage.

 

Why are you using default PID gains? Do they fit for your control loop?

-- Yeah they do.

I am not familiar with DAQmx functions. Will be learning it soon.

 

Could you please tell me, What changes I should make in my program so that the output voltage ranges from 0-10V.

 

For example: If I give the volume flow/set point (400l/hr) the output of the PID should choose range from 0-10V. 

Thanks .

 

Regards,

Balabhi.

 

 

 

0 Kudos
Message 4 of 7
(3,109 Views)

Hi balabhi,

 

I suggest:

- don't use those big delays when reading new measurement data!

- rethink about using better PID gains!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,094 Views)

Hi ,

 

Even after changing the PID gains(as per Ziegler Nichloas Method) I am  not getting proper voltage signal. Output which comes from PID is either 0 or 10V(ie ; valve is either closing fully or opening fully).

 

what is the mistake in my VI?

 

Thanks.

0 Kudos
Message 6 of 7
(3,054 Views)

Hi balabhi,

 

(possible) errors:

- There is no VI, but just bad images…

- You don't like to use the Autocleanup tool

- You scale your input value by 150k: does that result in useful values?

- what is the allowed setpoint range?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(3,034 Views)