Labview Proportional Control Code Example

prop_control_figure_1

The following are a few highlights of a simple control system built this spring. As can be seen in the picture, a power source was used in conjunction with a LabVIEW DAQ and a thermocouple module with a digial output module (for pwm for the fan).

A computer fan and a type K thermocouple were used. A simple thermostat was created if you will. A set-point is entered by the user and the fan is powered proportionally to how far the current temperature is from the target temperature.

The rest of the images feature the LabVIEW code used for the controller. There is a while loop (timed) within another while loop.

prop_control_fig_2

prop_control_fig_3

prop_control_fig_4