12-21-2017 05:41 AM
I'm building a program that uses the PID controller VI from the toolkit. I'd like to be able to plot the integrated error and derivative action in real-time while the operator tunes the control loops. I've managed to do this with a DBL instance of the PID.vi by modifying the subvi code slightly and adding output terminals for the integrated error and derivative action within the subvi (see below). The issue is that when I try to use the array instance of the sub VI (I have seven control loops) I can't find the integrated error or derivative action anywhere inside the sub VI. Does anyone know whether it is possible to find these or is it possible to calculate them separately? If there is no way to do it I will just have to use a PID.vi in a for loop.
Thanks in advance,
Solved! Go to Solution.
12-21-2017 05:53 AM - edited 12-21-2017 05:54 AM
first open the context help window.
Then move your mouse over the subVIs inside the PID-Advanced (DBL Array) block diagram to identify the things you look for!
There are just 4 subVIs to calculate error, P, I and D action - and all relevant information is stored in shift registers…
12-21-2017 09:27 AM
Thanks for your response. That has solved my problem!