11-01-2018 02:24 PM
Hi guys,
I am having a difficult time trying to get a word or a phrase to be able to be recognized and select the proper radio button but I can't seem to figure out how to associate it. I placed a 0 for the first radio button but i get a red dot. Is this the proper way to do this?
I apologize for the seemingly simple question but I want to make sure I am doing it correctly.
11-01-2018 02:37 PM
What is your intent here?
Do you want the output of Radio Button selection to drive a case, but you want the case selection to be a string?
What you have here doesn't make sense by itself
11-01-2018 02:48 PM - edited 11-01-2018 02:57 PM
If you make the labels of the controls inside the radiobutton the same as the boolean text, you can just wire the radiobutton directly to the case structure or format it into a string.
11-01-2018 03:10 PM
No, I probably should have explained myself a bit better.
I have a SubVI that controls a few parameters on a piece of equipment. One of the controls has three different modes that can be set so I figured a Radio Button would be a good fit . I can take the radio button selction and generate a string from it easily but I need to be able to set the radio button in case the same SubVI is called again so the previous set of parameters are displayed to the user. I figured bringing in the string that set the mode on the piece of equipment could be the driver to set the radio button.
I hope that makes sense.
11-01-2018 03:41 PM
Carry it as a radiobutton. No need for strings.
It is still not clear at all what you want. Can you attach a simplified scenario that contains the subVI?
11-01-2018 04:26 PM
I think I know what you want...
Change your Radio button labels to Captions and you can change the captions dynamically, so your labels would stay the same but your captions can change.
2014 Version Attached.
mcduff
PS The labels cannot change dynamically, they need to stay fixed.
11-01-2018 04:53 PM
@mcduff wrote:
Change your Radio button labels to Captions and you can change the captions dynamically, so your labels would stay the same but your captions can change..
Nowhere do I read that the radio button text should dynamically change, but if that is desired, we would change the "boolean text.text" using code. No need for captions.
11-01-2018 05:30 PM
@CA
I interpreted
I can take the radio button selction and generate a string from it easily but I need to be able to set the radio button in case the same SubVI is called again so the previous set of parameters are displayed to the user. I figured bringing in the string that set the mode on the piece of equipment could be the driver to set the radio button.
I thought "Bringing in string to set" meant he/she wanted to change something in the control. Could be boolean text, could be a caption for the boolean, e.g, ON/OFF still applies but instead of "Light" it says "Table Saw." Maybe he/she is in a workshop that has lights, table saws, etc, that need to be on and off.
mcduff
11-01-2018 06:37 PM
Yes, it is not clear at all. Either:
We need a much more detailed description of the problem. In the attach code, the "value" is changed, thus I was guessing "1". 😄