11-15-2009 09:15 AM
Hey there guys, in VB, you could add an image and hide it / show it accorinf to the following code:
dim x as boolean
image1.visible = x
or such code
anyway, i have 3 question:
1) Can we add JPEGs and GIFs or even flash objects to LabVIEW
2) How can we change the background of the front panel
3) How can we trigger an image ON/OFF ?
11-15-2009 09:42 AM
An image can be added by Edit > Import Picture to clibboard and than past it on the Front panel (simple Version, no change during runtime)
Extended Version: use of property node like in the attached VI fragment. But I never did this before so I am not sure how it works in detail. I think here you can choose different images at runtime.
For Flash I would use an active X container on the front panel.
11-15-2009 09:49 AM
11-15-2009 09:50 AM
any way would the image have properties that you can access or change??
11-15-2009 09:57 AM
You can also use a Picture ring control to store multiple images and then by writing a value to it, show a specific image.
See attached vi as an example.
What do you mean with "change the background of the front panel"? Is it just change the color?
Then use the "Set color" field at the bottom of the "Tools pallet" to select a color and click the front panel.
PS: No comment on the selected pictures allowed ![]()
11-15-2009 10:00 AM
Oeps, you need LV 8.2 version 🙂
Here it is...
11-15-2009 10:10 AM
OMG!! You remember... Thanks alot ![]()
11-15-2009 10:37 AM
A pasted image on the front panel doesn't have got a property node. So you can't change.
Setting the background image of a pane allows you to change certain properties. But I don't have them in mind. What I usually do in such a case: I play around with the properties in a test Vi until I have a clue how it works.
11-16-2009 12:27 AM
11-16-2009 01:00 AM
Controls pallet then Ring & Enum then Pict Ring control
First put a picture in the clipboard, then right click the ring and select Add Item Before or After
Set a maximum by right click the control in the code window and select Create\Property Node\Data Entry Limits\Maximum
But since the selection of picture is done by your code, I don't see why you need this one ?
On the front panel you can hide the Increment\Decrement button by right click the control and then uncheck the Increment\Decrement entry.