From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control response

Solved!
Go to solution

Hello experts,

 

I am currently learning labview and my goal is to do the following:

1. control dial that constantly outputs values. For example sake, say this is a motor speed (have done that through state machine where I can adjust the knob and it will output the value with time continuously).

2.this motor speed value needs to respond to pressure values. Say if pressure increases, then the motor speed needs to decrease.

3. implement a pressure setpoint so that the motor speed will always be <= this setpoint (say you turn on the motor, and base on this setpoint the motor speed increases until the pressure is at this setpoint).

 

**I dont think PID is what I am looking for right now because I dont need any response characteristics.

Any tips on how I can get started or find more information regarding to #2 and #3 is appreciated.

 

0 Kudos
Message 1 of 4
(1,717 Views)

Hi wew,

 

1. control dial that constantly outputs values.

All you need is THINK DATAFLOW! You don't need a "state machine" to read a control at regular intervals…

 

2.this motor speed value needs to respond to pressure values.

3. implement a pressure setpoint

This just screams at "use a PID function"!

 

Any tips on how I can get started or find more information regarding to #2 and #3 is appreciated.

Examine the example VIs for the PID functions in LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,702 Views)

Hi GerdW,

 

Thanks for the response.

The way I understand PID is that it is used to control response characteristics of a particular variable. For example: pressure setpoint -> PID -> pressure output -> feedback loop. 

 

Would the "motor speed responding to pressure" part be implemented based on the pressure output? such as: pressure setpoint -> PID -> pressure output -> some correlating function -> motor speed

 

Thanks!

0 Kudos
Message 3 of 4
(1,673 Views)
Solution
Accepted by topic author wew044

Hi wew,

 

The way I understand PID is…

wrong IMHO…

 

Would the "motor speed responding to pressure" part be implemented based on the pressure output?

No, motor speed should depend on pressure reading and setpoint!

 

such as: pressure setpoint -> PID -> pressure output -> some correlating function -> motor speed

More like:

pressure reading ("current value", cv), pressure setpoint (sp") and PID gains

-> PID

-> motor speed

-> feedback loop by next pressure reading…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(1,660 Views)