07-13-2010 02:10 PM
Hello everyone,
I've been searching everywhere without finding answer, please apologize if its already in a post. What I am trying to do is to gather different codes and put them together. These pieces of codes control certain devices and currently I am using different interfaces for each device, so I want to control them in the same interface. I am using a ring recessed menu ring in order to select the appropriate device for the desired application. So, if someone could possibly tell me how to put the ring control to work I would appreciate.
Thanks,
LM
07-14-2010 10:34 AM
Hi LM,
Let me start by ensuring my understanding of your question. You have multiple devices, each which require different code to operate them. You are currently using different programs to control each instrument and would like to combine into one. You want to allow the user to select from a Ring Control which device to use then execute the correct code. Is this correct?
Assuming it is, this is fairly straightforward. Add the labels and values to your Ring Control as well as a GO button to your UIR. Add a callback function to the GO button. In the callback function, add conditional code that executes a different block depending on the selected value of the Ring Control. Let me know if you have questions on this process.
07-15-2010 02:30 PM - edited 07-15-2010 02:31 PM
Hi Michael,
Thanks. Your information was very helpful for me in order to understand the functionality of this ring control. With your example I tested the codes and found a way to implement each device code with its proper parameter using "switch case". I am new to LabWindows/CVI and it gets pretty hard to understand some concepts.
Again thanks for your help,
LM