03-22-2011 07:02 AM
I'm new to labview so please be gentle.
I'm trying to create a program that acts as a thermostat. Once my temperature drops below the lower limit, there should be a 5V digital output coming from my USB 6008 which remains on until the upper limit. After that the output will remain off until the temperature drops below the lower limit once again. I can measure the temperature, and I can turn on the output using just one limit, but I can't get it to turn off after that. I created a feedback loop that I tested as a separate program with just some arbitrary limits and a knob to control the input to the comparators just to make sure the boolean was correct, and it did what I wanted it to then, but not when I have it attached to the USB 6008.
I probed the wires throughout the feedback loop to doublecheck that I was getting the correct output from my boolean gates and what I found was that my OR gate is at a constant false value, even when the input into the gate from the comparator is below the lower limit.
I've attached a screenshot of the program thus far (remember I'm new at this). Can someone check it out and see if they spot the problem with the OR gate or the whole feedback loop in general?
Thank you so much for your help.
p.s. please ignore the waveform graph, that's a whole different problem I have to deal with later.
03-22-2011 10:49 AM
Taking an initial stab, it looks like your Dynamic Data Type to Boolean is actually turning it into an array of booleans. (looks like a [TF]). I would try just one element of the array until you get the logic correct. Try using the "Convert from Dynamic Data" before your comparison for 83 or 77 degrees so that you are just looking at the temerature and the rest of the logic would look just like your test VIs.
let me know what you find...
-gaving