12-05-2008 02:31 AM
12-05-2008 02:43 AM
Hi Tzench,
when the command list is static you could use an enum and when the list changes on runtime you could use a ring control. The user will see the string, but in the block diagram you get a numeric value (but you can also get the string value).
12-05-2008 04:08 AM
Good point about enums and ring controls. How would a ring control help me if I want to change the list in runtime?
Still, what about the send button?
12-05-2008 04:20 AM
Hi Tzench,
ring control values can be changed by property node at runtime, an enum is fixed at development phase.
A "Send button" is easy: take an "OK" button and change the boolean text
First the user selects the command in the ring control, then the send button is pressed...
12-05-2008 06:19 AM
12-05-2008 07:02 AM - edited 12-05-2008 07:04 AM
You can use an implicit property node by right clicking the control, going to Create -> Property Node -> Ring Text -> Text
That will give you the text that is displayed on the ring control at that moment. As to how to make the OK Button trigger an action, I recommend you look into Event Structures.
12-05-2008 07:40 AM
Actually it doesn't seem like I can use ring controls the way you describe them in the version of labview that I am currently using. Even the help files only describe them in theoretical terms.
The event structure seems very interresting, but I don't completely understand how I'm supposed to use it. Should I put a button in every case (what would that look like on the front panel?)? or a button that is connected to the event structure, or something inside it?
12-05-2008 07:47 AM
12-08-2008 01:49 AM
Hi Tzench,
it seems this will help you a lot an your way to learn LabView! There are 4 free items including a 6h course!