09-17-2018 06:18 PM
09-17-2018 06:49 PM - edited 09-17-2018 06:52 PM
That sounds like a series of comparisons. Look at the Select function.
09-17-2018 07:18 PM
Several "ideas" are common in programming. One is "repetition" -- do something multiple times. Another is "choice" -- do only one thing, but "depending on something".
In LabVIEW, some of these "big ideas" are manifested by structures on the "Structures" Palette (well, where else? Duh!). Does anything in the top rows suggest an "idea" that will help you with your question?
Bob Schor
09-17-2018 07:36 PM - edited 09-17-2018 07:41 PM
@RavensFan escreveu:
That sounds like a series of comparisons. Look at the Select function.
I was trying Select but I could only show 2 strings (high or low, high or normal, low or normal). I can't figure out what to do with the third...
09-17-2018 07:46 PM
@Bob_Schor escreveu:
Several "ideas" are common in programming. One is "repetition" -- do something multiple times. Another is "choice" -- do only one thing, but "depending on something".
In LabVIEW, some of these "big ideas" are manifested by structures on the "Structures" Palette (well, where else? Duh!). Does anything in the top rows suggest an "idea" that will help you with your question?
Bob Schor
Don't know if I'll need structures (only know loop yet) here, because I'll enter a pressure value once and it must tell if it's high, low, normal
09-17-2018 09:15 PM
@PHF1 wrote:
@RavensFan escreveu:
That sounds like a series of comparisons. Look at the Select function.
I was trying Select but I could only show 2 strings (high or low, high or normal, low or normal). I can't figure out what to do with the third...
You can put the result of one Select into a 2nd comparison where you get the 3rd.
It's like
If x< low then
pass along "LOW"
Elseif x> high
pass along "HIGH"
Else
pass along "NORMAL"
Endif