Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement PID control on the myRio?

Hi,

 

We are trying to implement a PID controller on the myrio. We are however not sure in what way we can control the timing of the myRio and get it to work correctly with the control loop. Further more we are having trouble in finding the best way to to sample the data coming from the myrio and use it with a discrete controller. The controller works as expected in Simulink but it is our lack of knowledge on labView that keeps us from implementing it on the myRio. Attached is a screenshot of our model in simulink. If someone could point us in the best direction to implement this on the myRio that would be much appreciated.

 

kind regards,

Tobias

Message 1 of 2
(9,639 Views)

Hey Tobias,

 

You have a lot of options for PID in LabVIEW with myRIO.  You could build everything up using basic math functions...if for some reason you want to, but there are better options.

 

The PID and fuzzy logic toolkit contains VIs for PID.  More info here.

 

Your best bet for all things controls in LabVIEW is the Control Design and Simulation Module which is included in the LabVIEW for myRIO Suite and provides tons of controls functions.  Here is some info on the Control Design and Simulation Module.

 

Let us know if you have more questions about this.

 

Thanks!

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 2 of 2
(9,617 Views)