LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID time

Solved!
Go to solution

Hi chabaco,

 

This is subVI. The loop runs as true constant the whole time because the main VI will stop the program.

How will the main VI stop that subVI (gracefully)?

(Using the STOP function or STOP button in the menu is like using a tree to stop your car!)

 

The PV is calculated with the formula sqrt((2×pressure)/density). A pitot tube reads the speed of the wind tunnel.

But how is the actual PV value transferred into this subVI? There is just a control on its frontpanel: do you need to type in the new value all the time???

(When you use some producer-consumer scheme then there should be a notifier/queue…)

 

Could you explain me how wait function could help me improve the code?

It will set a fixed delay between each iteration.

The PID depends on the iteration time: just peek into its block diagram.

The DAQAssistent also doesn't like to output "1 sample on demand" as fast as possible…

 

How can I use PID gain scheduler

Read the LabVIEW help for this function! (And check the example VIs coming with LabVIEW!)

Best regards,
GerdW


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