LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if ... then image1.visible = true LabVIEW code equivelent

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 ?

T. A.
0 Kudos
Message 1 of 10
(4,609 Views)

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.

Message 2 of 10
(4,602 Views)
i'll try both... thanks, although im not familiar with active x
T. A.
0 Kudos
Message 3 of 10
(4,595 Views)

any way would the image have properties that you can access or change??

T. A.
0 Kudos
Message 4 of 10
(4,592 Views)

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 Smiley Mad

0 Kudos
Message 5 of 10
(4,591 Views)

Oeps, you need LV 8.2 version 🙂

Here it is...

Message 6 of 10
(4,590 Views)

OMG!! You remember... Thanks alot Smiley Happy

T. A.
0 Kudos
Message 7 of 10
(4,585 Views)

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.

0 Kudos
Message 8 of 10
(4,565 Views)
excuse onece again, but how did u add the ring (which palette) and how did you input the photos, plus, when u keep incrementing the control after 4, the ring freezes at the road runner photo, can i put a max value for the control?
T. A.
0 Kudos
Message 9 of 10
(4,522 Views)

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.

Message 10 of 10
(4,515 Views)