From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-24-2010 12:59 PM
I am trying to use a string control with a case structure.
Depending on the string value, I want the VI to show some kind of an indicator on the front panel.
If the value is 00 i want it to show "Local"
If the value is 10 I want it to show "Off"
If the value is 12 I want it to show " Remote"
Sorry I'm new to LabVIEW and I can't quite wrap my head around this
Solved! Go to Solution.
11-24-2010 01:06 PM - edited 11-24-2010 01:09 PM
What is the input" Is it a string containing "00" "10" or "12"?
And the output is a string with either "Local" "Off" or "Remote"?
Then your cases should be "00" "10" and "12". In each case would be string constant with the respective words "Local" "Off" or "Remote" that wire out of the case structure through a tunnel to your string indicator.
Have you taken at the online LabVIEW tutorials?
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
11-24-2010 01:10 PM
yes. Input/control = 00, 10 or 12
And depending on this value I want the VI to show "local", "off" or "Remote"
11-24-2010 01:37 PM
Good. I did interpret it the way you want. So then you can follow the instructions in my reply.
11-24-2010 02:43 PM
I would also take a look at the Combo Box, an effective means of mapping machine-friendly strings to human-friendly strings and vice versa.
In this case create a Combo Box, Edit Items, Uncheck Values Match Items, Make the Items Local, Off, Remote and the Values 00,10 and 12. Change it to an indicator and voila. Wire your string to the indicator and you get the desired display.
If you don't like the pull-down control on the indicator, it is quickly obliterated via customization.