Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66782

PIDs in Reentrant VIs and Class Inheritance

$
0
0

Hello, 

 

I'm trying to make a simple class to use PIDs with our existing system. It seems that the clones are randomly switching between the class instances which causes the PID to jump of course. It didn't seem to matter if the VI is setup for preallocated clones or shared. The Run.VI has a loop to get data from the larger system, run the PID VI, then write data back to the system. The PID works great if only one is on at a time or if I use one for "PID Advanced Auto Tuning" and the other on "PID Auto Tuning (Temperature)". But ultimately I want to have 5 PIDs running in parallel so I want to solve this clone issue. Previous posts from 2014 suggest launching the clones as asynchronous will call and collect but I'm not sure that is applicable in this situation. My background is in PLCs so maybe I'm just using Labview's PIDs completely wrong. I've also failed to get the auto tune feature to spit out anything useful. 

 

Why would the class instance not use the dedicated clone when it's preallocated?  I'm not sure how to work around this issue besides making absolutely everything "in-line", which sounds obnoxious.

Furbs_0-1737152572913.png

Furbs_1-1737152874014.png

 

 


Viewing all articles
Browse latest Browse all 66782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>