LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting all control image states

Hi,

 

I am working on a project where I need to collect an image for each control state i.e. If it is a boolean button, what it looks like when pressed, when the mouse is hovering over it, etc. Is this possible to achieve programmatically? I have several custom controls scattered throughout various VIs and would like to loop over all of the VIs and get the control images. I know it is possible to get a control image but I just haven't figured out how to do it for the different states.

 

Thanks!

 

I am working with LabVIEW 8.2 so I need a solution that is relevant to that environment.

0 Kudos
Message 1 of 4
(2,730 Views)

Well you can use the Get Image method to get an image of the current state of a control.  You can then programatically change the value of the control to get other images.  However I'm not sure of any way to do anything with hover over states or anything.  

 

getbooleanimages.png

 

Something like this might do, but obviously you'd have to add more options for different types of controls/indicators.

Message 2 of 4
(2,701 Views)

Thanks... I already have an implementation wherein I extract the control image in a similar fashion to how you are describing. I was hoping that there might be a solution that doesn't require manual value changing as I would like to avoid dealing with specific control types. Additionally, I am getting the control images from a remote system and would like to avoid changing the values in a already running application... Is there a way to clone a control in LabVIEW 8.2 such that I could change the value without impacting the running application (I know this can be dones with scripting in 2010)?

 

Sorry if this seems like a confusing undertaking but the purpose of this experiment is so that I can extract control images from an already built / deployed application, loop over all the controls in the VIs stored in memory, and get the controls and their various image states. This way I have a nice image library of each control in the application along with what they look like under various circumstances.

0 Kudos
Message 3 of 4
(2,681 Views)

Unfortunately, I do not think it is possible without scripting.  Do you have the source code available that you can just open up on your local computer?  This seems to be a much easier approach then going through  all the trouble of what you're trying to do.

0 Kudos
Message 4 of 4
(2,660 Views)