LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the picture message in running vi

Hi,

Thanks for your reply for my earlier mails. Now i have new problem, i want to show some message to user that UPS is in AVR NORMAL MODE/AVR BUCK MODE/INVERTER MODE etc by using some picture image. That picture image has to change depending the data received from running UPS. For eg, if UPS is running in AVR NORMAL MODE, the picture image has to display AVR NORMAL MODE, if UPS is running in INVERTER MODE, the same picture has to display INVERTER MODE. Please help me in this regards.

Regards
Shivakumar Singh
Message 1 of 9
(3,788 Views)
Hi,

I think you have use shift registers and case structures for that. The shift registers will help to keep the old data and the case structures will decide which case the inverter is running which will be eventually updated in the shift registers.

It will be better if you attach your vi for more clarity.

Regards
Sreedhar.
Regards,
Sreedhar T
0 Kudos
Message 2 of 9
(3,781 Views)
You can use a Pict ring indicator, or a Text & Pict ring indicator. They are in the Ring & Enum sub-palette.
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 9
(3,777 Views)
Hi,

Thanks for your reply. Using Pict Ring, the changing of image is working fine.


Regards
Shivakumar Singh
Message 4 of 9
(3,769 Views)
hai.i know this is an old thread but can u show example on how to change a picture in a running vi
0 Kudos
Message 5 of 9
(3,574 Views)

Hi neerza,

Both ways mentioned above will work, as shown in the attached example called picture.vi.  The top image uses a Picture object.  You can toggle the Boolean switch, used to select which .jpeg file is displayed. 

The bottom image is a Picture Ring.  Once it is placed on the block diagram, you can drag and drop a picture inside.  Then right click, select Add Item After (or Before), and add another picture.  The Increment/Decrement button is used to scroll through the pictures.  If you want to change the picture programmatically, you can change the ring to an indicator and wire different values to it. 

Both methods allow you to change the picture as the VI runs and can be expanded for more than two pictures. 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 9
(3,552 Views)
dear madam.i understand now how to use it.but how to make the picture change automatically?do i have to assign values?
0 Kudos
Message 7 of 9
(3,543 Views)

Hi neerza,

Yes, you will have to programmatically select which file to read or, in the case of the picture ring, programmatically assign a numeric value to the picture ring indicator.  I modified the code so the picture changes witih each loop iteration.  The Boolean toggles between True and False.  The picture ring has a value of 0 or 1, based on the remainder that results when dividing the iteration terminal by 2.

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 8 of 9
(3,524 Views)
thank u so much.i've been trying to do that and finally found it.thanks a million..Smiley Very HappySmiley Very HappySmiley Very Happy
0 Kudos
Message 9 of 9
(3,516 Views)