11-12-2015 11:18 AM
Hi there,
I'm very new to LabVIEW. I'm trying to make a program as follows:
Now, I have the random number generator and according boolean lights working correctly. However, I recently added sound if the temperature goes too low (i.e. when blue led shows) or too high (when red led lights up). This works OK, however for some values the sound wont ring, for others it will. E.g. three values in a row might show that are all under 16 - the lower limit, the blue light goes on however the sound might only ring once - its my default windows sound. Can anybody see anything wrong with this or offer me some solution?
Next, the XY Graph. I feel like i'm not getting the right parameters in there. I want the number of seconds on x axis going by with the temperature values on y axis. The temperature values initially came out huge by default, i changed the axis name but theres no graph if i scale the axis myself? I feel i don't have it connected properly maybe? Also I definitely think I went somewhere wrong with my x axis readings, maybe I have the wrong time function connected in the control panel?? I amn't very familiar with boolean either or how to set true/false?
If I wanted to use 1 LED that could change into three different colours (red for temperature high, green for temperature normal and blue for temperature low), how would I do this?
Finally, does anyone have any suggestions for the user interface, to make it look a bit more sophisticated?
Thank you in advance, file attached.
Solved! Go to Solution.
11-12-2015 11:25 AM
Instead of an XY Graph, I recommend using a Chart, like what I did here: Sporatic Waveform Chart
11-12-2015 12:03 PM
Ok, thank you so so much for all of your help, this is what I have now, however it won't run, not sure how to resolve this?
It says for loop N is not wired and no indexing inputs,
While loop: conditional terminal not wired?
11-12-2015 12:35 PM - edited 11-12-2015 12:35 PM
First of all, you want to work on both of your temperatures at the same time and display them in seperate indicators. Secondly, I'm pretty sure your beep is happening with every temperature taken. You want to put the beep inside of a case structure so that it sounds when you have any out of range condition.
So in the end, I'm pretty sure you want a setup like this. I'll leave some work for you to do. You aren't paying me nearly enough to do your work for you.