LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

How would I implement a PID controller using Mathscript?

 
0 Kudos
Message 1 of 2
(7,333 Views)

Zach

You can just use the PID equation in discrete form and personalize that way you'd want. You can find the equation in the manual for the any PID algorithm.

However, once you have the PID in Mathscript, as of version LabVIEW 8.5, you can't download to Real-Time targets. So, instead of using the PID, you can just use the Formula Node where it calculates similarly to Mathscript (the different in notation is similar to C, but goes to any platform).

Now, doing a step back. Why would you try to create your own PID equation if you have a whole toolkit targeted to PID? Do you have any problem with the actual implementation of the toolkit that you have to customize yourself?

Thank you!

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(7,123 Views)