LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing background pictures of control or Xcontrol

I need to create a control based on a solidworks drawing of a throttle lever. I was able to create 200 individual .jpegs of the throttle lever; one for each position I want it in, but am not sure how to change the picture based on the position of the hidden Labview slide control. I planned to hide a slide control on top of the handle for the throttle lever, and then change which of the two hundred pictures are loaded based on the position of the slide control. I have been trying to figure out how to do it with an Xcontrol, but have never used one before and am sorta stumped? I have not been able to find an example, but seem to remember reading about people doing similar things with the Xcontrol?  
0 Kudos
Message 1 of 4
(2,802 Views)

For the displaying of the different images you could us my Boolean XControl.

Using a hidden slider will not work.

A better thing would be a picture control and use Mouse Down and Mouse Move events to determine which image to load into the picture control.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(2,785 Views)
I'm on my way out the door and will check that out in the morning, thanks for the reply. I should probably clarify that I wanted a slide control because I am outputting a throttle position form this control and want to change pictures to make it look like you are moving the throttle lever to choose a throttle percentage.
0 Kudos
Message 3 of 4
(2,774 Views)
TCPlomp,  I was unable to run your example. The Demo VI was empty other than an image and there were a bunch of VI's missing that were from your user library?
0 Kudos
Message 4 of 4
(2,752 Views)