LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pull down list that outputs hex commands

I'm looking for a control that can output hex commands. I'm using a string control that will do this for one command. My user wants something that will hold many commands that she can pick from (like a pick list or pull down list). Then this control will output the selected command. For example here are some hex commands:
1001
0a02
af20
0 Kudos
Message 1 of 6
(3,126 Views)
LabVIEW has the menu ring, text ring, enum, and dialog ring controls that allow choosing from a list. If you create a property node for any one of them and choose Strings[], then that gives you an array. Use the control to index that array and you get the text selected. The other way to do it is by creating a custom pull down menu with all of the available commands.
0 Kudos
Message 2 of 6
(3,126 Views)
Do you have an example. I've got the strings[] but can't get the text hex values into it.
0 Kudos
Message 3 of 6
(3,126 Views)
You enter them into your ring control with the text tool. To enter several at once, type the text and do a shift enter to type the next one. You can also right click on the control and select either Add Item After or Add item Before.
0 Kudos
Message 4 of 6
(3,126 Views)
I still could get it to work. I'm going to try an array. I need to get the currently index to make it work. I do have a question about that also. I'm going to post it as a new question in case you are tired of responding. I'm not very good with Labview yet so I need a lot of hand holding.
0 Kudos
Message 5 of 6
(3,126 Views)
Here's your VI with a dialog ring.
0 Kudos
Message 6 of 6
(3,126 Views)