LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display two readings simultaneously generated on a numerical indicator? Simple thermometer VI and boolean light?


@Dennis_Knutson wrote:
You've got some questionable code. That bottom for loop is just silly. All that you have to do is wire the array directly to the Build Waveform. To create an array indicator, just right click on the array wire and select Create Indicator. To use numeric indicators, you simply use the Index Array function. Please take some of the free LabVIEW tutorials.

The bottom loop indexes each simulated value and outputs a WF for each reading. That part of the code is valid.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 19
(1,539 Views)
Sorry, you are right. I didn't look close enough.
0 Kudos
Message 12 of 19
(1,535 Views)

@Dennis_Knutson wrote:
Sorry, you are right. I didn't look close enough.

That will teach you to criticize my code.


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
0 Kudos
Message 13 of 19
(1,524 Views)

Now back to the original problem...Use an array of indicators or two indicators.


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
0 Kudos
Message 14 of 19
(1,514 Views)
Brilliant thank you I got the dual indicator via the index array, now just to wire light indicator for average of two values! Should I use a formula node with say y = (X1 + x2)/2?? And wire to lEDS?
0 Kudos
Message 15 of 19
(1,508 Views)

@Allisonb2106 wrote:
now just to wire light indicator for average of two values! Should I use a formula node with say y = (X1 + x2)/2?? And wire to lEDS?

No.  Use the Mean.vi that is in the Mathematics->Probability & Statistics palette.  That VI takes in your array and calculates the average 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 16 of 19
(1,493 Views)

Ok it works perfectly now, took you're advice, thank you to everyone for their help. The only problem I have is that the alarm doesn't sound accordingly, it beeps when temperature is normal or high but not cold? Could this be to do with my comparison elements? Normal is between 16-25 but it wont beep below 16? Can't seem to resolve this?

 

Screenshot (18).png

0 Kudos
Message 17 of 19
(1,456 Views)

Look closely at your comparisons and read the help on those.

 

Just write down exactly what you have wired and you should find your error.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 18 of 19
(1,449 Views)

Should I wire the comparisons to the mean value? and get rid of the 'And Array Elements'?

0 Kudos
Message 19 of 19
(1,441 Views)