11-09-2011 11:18 AM
Hey there guys. I am very new to using LabVIEW. This is actually my first fully functional program, and I had a few questions about some of the finer points. The program functions just how I want it. It starts and sends a signal to a power supply, turning it on. Then 4 thermocouples are measured in a while loop until a specific temperatures is reached (set to 30C right now so I can stop the program with my hand). Five temperature readings are averaged together to smooth out the curves. The readings are them displayed on thermometer read outs as well as graphed. Once the limit temperature is reached the programs ends the while loop and a off signal is sent to the power supply.
Everything works so you may be wondering while I am here. Well first off I feel like the way that I used a sequence to turn the power supply off and on is kind of chunky and wanted to see if there was a simplier way. Also I was trying to add a boolean LED to indicate that the heater is off or on, but could not figure out how to add it. Also I was wondering how I get my graph x-scale to start from 0. Currently I have it on relative time, but it starts from about 3.4 billion and then counts each second from there. This can be seen in the jpeg below. Also is there a way to add a grid to a wave form chart?
Well thank you for your help and anything you can offer is much appreciated.
Solved! Go to Solution.
11-09-2011 12:03 PM
11-09-2011 04:13 PM - edited 11-09-2011 05:44 PM
@kgould wrote:
Also I was trying to add a boolean LED to indicate that the heater is off or on, but could not figure out how to add it. Also I was wondering how I get my graph x-scale to start from 0. Currently I have it on relative time, but it starts from about 3.4 billion and then counts each second from there. This can be seen in the jpeg below. Also is there a way to add a grid to a wave form chart?
OK, here are a few more suggestions.
Here's a quck draft. Maybe it can give you some ideas.... 😉 (I have not implemented lower level DAQ functions yet)
There are probably a few little bugs. Make sure the dynamic data to 2D array is configured correctly.
(The sequence frame is currently needed because the GPIB subVI does not have an output (I don't have the VI!). This ensures that it completes before the while loop starts. It probably has an "error out" that you can wire to the loop edge, eliminating the sequence frame).
11-09-2011 04:39 PM
Wow thank you very much that helped out perfectly. This is exactly why I love this forum. But thanks again and I am sure I will be back soon.