LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW beginner - XY Graph and sound files

Solved!
Go to solution

Hi there,

 

I'm very new to LabVIEW. I'm trying to make a program as follows:

  • The LabVIEW VI should simulate two input temperatures. 
    • You can simulate each of these through a random number generator (make sure to keep the numbers within an imagined temperature range), or if you want, by reading values from a file.
  • The front panel should, at a minimum, display each temperature instantly (e.g. using a numeric display), a graph plotting each temperature over time, and some indicator (e.g. an LED or number counter) to show that the temperature exceeded its threshold value.

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.

0 Kudos
Message 1 of 4
(3,493 Views)

Instead of an XY Graph, I recommend using a Chart, like what I did here: Sporatic Waveform Chart


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(3,484 Views)

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?

 

 

0 Kudos
Message 3 of 4
(3,478 Views)
Solution
Accepted by Allisonb2106

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(3,447 Views)