...
Lastly, in the bottom left hand corner of the VI is the option to enable advanced controls for the PID loop. If this icon is selected, the PID gains table will appear to its right. The pid loop uses a PID controller and equation constants to run and maintain the level. Unless you have a deep understanding of these coeffecients and need to make edits to them to increase the VI's efficiency, do not try to change these values. If advanced controls are enabled, and the VI is in manual mode, the option is given to recalibrate the current position of the valve. If it is in automatic mode, then the option to change the equation constants is enabled as well. At the bottom there is the developer table which contains the stop bool, which _______basically does the same thing as deselecting the "Run VI" bool (turning off the program).
Code
The entirety of the Response VI code is contained within a while loop, in which each iteration lasts 1 second and which can only be stopped by either an error in either VI (while they are running simultaneously) or if the VI is stopped with the use of the stop bool in the developer box.
...
- this VI uses an input (valve position) value (in steps) and determines the "sanitized input", or the edited input once maximum and minimum values are taken into account.
- this VI exists so that the VI never writes a position that exceeds the limits of operation of the valve as a mechanical devicelimits defined by the user (under the controls "min open" and "max open").
...
- this VI is nearly identical to the other sanitizing VI, except this one has the max and min positions of the current motor in our lab (3 and 0 turns, respectivelyone ensures that a position is never written that defies the limits of operation of the valve as a mechanical device (for the valve in our lab, the min and max positions are, respectively, 0 and 3 turns, which in the VI are immediately converted into steps) as constant extreme positions.
- The input is still collected in steps and the sanitized input is still returned in steps, but in a value that is able to be read into the motor controlling the valve without breaking it.
Manual Mode
Automatic Mode
...