LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-Time application, multiple instruments and controlled devices - attention Bobby Breyer

Hi Russ,

 

So boiling that down, you're just trying to figure out how many PID VI's you need to use?

 

If you want to use 1 timed loop, you will you 3 PID VIs.  If you have 3 things you need to control with 3 different PIDs, you will need 3 different PID VIs.  There are other ways to do it with 1, but let's use 3 VIs for now.  Regarding multiple loops on our RIO products, you can use whatever you need so long as you don't starve the processor. We say 1 in the class because that's a solid starting point, you can expand from there.

 

On the host side, just send everything in through the typedef.  This will accomplish your goal.

 

Regarding generic example code, feel free to check out www.ni.com/code .  There's lots of example for array manipulation (as well as onboard LabVIEW), as well as clusters etc.  

 

Please let me know if this did or didn't answer the root issue.

 

Regards,

Bobby Breyer
Applications Engineer
National Instruments
0 Kudos
Message 11 of 11
(256 Views)