02-25-2010 02:30 PM
hi,
I am looking to create a drop down list in Labview, where the user can choose a number of different options, each option selected should be able to update the values of two numeric controls, which are on the front panel. Is this possible? I realise that i will require a .txt file, but apart from that no idea, any ideas?
Regards
Peter
02-25-2010 07:54 PM
You can use a menu ring and select the representation to double. This will allow you to map a set of strings to double values. this list can be programatically updated if you wish through property nodes.
02-26-2010 11:17 AM
i searched the help, no sign of a manu ring... where can i find info or an example of such? do i need to have the values stored in a txt file?
Regards
Peter
02-26-2010 11:21 AM - edited 02-26-2010 11:24 AM
02-26-2010 11:39 AM
Cheers, but i dont think that will satisify my requirements, maybe you will know....
I have a number of cameras setup, and i have two stepper motors, each motor requires a number from the front panel to tell it how far to travel in x and y, but each number is differnet for each camera. I am looking to select the name of the camera from the drop down list, and for the position control requirements to be filled with the corresponding values? any ideas,
Cheers
02-26-2010 11:51 AM
Use an enum or menu ring on the front panel for the camera type selection. Then use an event structure to respond to that control's Value Change event. Based on the value you can populate the other two controls any way you need to based on the actual type that you use. If the position controls are rings then you can use the Strings[] property to update the allowed values.
Search around, as this question comes up dozens of times and examples have been posted. There are also examples that ship with LabVIEW on using event structures as well as property nodes.
02-27-2010 10:01 AM
02-27-2010 10:11 AM
Sounds like you're remembering the ring between loops and adding to it. Can you post some code or picture of what you've done?