LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture Ring

Solved!
Go to solution

Hi all,

 

I would like to know if there are other ways apart from using Picture Ring to control the pictures that I want to display on my Front Panel.

 

Because I do not know how to control my Picture Ring to let it appear based on the result, based on whatever button is being clicked on.

 

For an example, right now I am doing a project on an automated food ordering system, and to show the picture on my front panel, the program first have to know, for an example, what food order is being chosen. So the program will only "find" the picture and display on the Front Panel accordingly.

 

It works like that: When I select a food item by clicking on an OK Button named "Chicken Cutlet", my program is supposed to display the Chicken Cutlet picture at the "View Orders" page after calculating the total price and all. Right now, my issue is that I do not know how to make my program work in the way that it can select and display the right picture automatically once it senses what OK Button is being clicked.

 

I hope you guys are able to provide me with an alternative so as to meet the criteria of my ordering program! :smileysad:

 

Thank you!

 

Miu

0 Kudos
Message 1 of 35
(6,166 Views)

Hi Miu,

 

Could you post a piece of code for us to understand what you achieved until now.

From your explanations, I feel that you already have the solution. I don't understand what doesn't goes as you wish.

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 2 of 35
(6,152 Views)

Right now I have not done anything that makes use of the picture ring to display whatever food item the user chooses/clicks on.

 

For now, my program is only able to sum up the prices of all the food items (OK Buttons which the user will click on), but it cannot display picture according to what he/she has ordered.

 

I do not have a solution for this part yet, and so I was wondering if there are any simpler methods to do this apart from using Picture Ring. e.g. how can I make my program know what food items are being chosen, and then show/display the food picture later on in the "view orders" page.

 

And my program requires database file (I'm using MS ACCESS), udl file and some type defs and sub folders because I am using three loop for this program. Therefore I am afraid that you might have problem opening/running the program even if I attach it here.

 

I really do hope that you are able to help! 😞

0 Kudos
Message 3 of 35
(6,138 Views)

Hi,

 

Here is an example using a picture ring where the picture is selected from 3 buttons.

hope that gives you clues to follow.

Ring Picture.png

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 4 of 35
(6,106 Views)

Hi Olivier,

 

Thank you for your fast solution.

 

I am sorry to trouble you again but what if I have to retrieve the food information from my MS Access database first before it can display the correct picture according to the food name that is retrieved from the database?

 

In other words, if the retrieved food name from the database table is "Chicken Burger", the picture ring has to display the picture of the chicken burger out of the many other food pictures it has within the picture ring.

 

Are there any methods to display the pictures according to the names retrieved from database?

0 Kudos
Message 5 of 35
(6,020 Views)

Hi Miu,

 

usually you use a lookup table to combine different items with a list. You search for your first item ("chicken burger") in the list and get either the index of the item or a related item as result. In your case you would use the index of "chicken burger" to show the corresponding picture in the ring...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 35
(6,010 Views)
Solution
Accepted by Miu

Hi Miu,

Take a look at this example. Put images (Trial) named "Item 1" ,"Item 2", "Item 3" in Picture folder. Make sure image extension is .jpg.

You can use similar program in your application. With this you can change  image of food item without changing code.If you use picture ring, if there is any change in picture you will have to make exe again. If you want,you can use .PNG files. Just use vi to read PNG file instead of .JPG.

Try this and let me know.

 

Best of luckSmiley Wink

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 7 of 35
(5,993 Views)
Thank you so much guys, you all are of such great help! Hi Gak, I will try out and let you know soon probably by tomorrow afternoon! Thank you so much once again! Smilessssss
0 Kudos
Message 8 of 35
(5,989 Views)

Hi Gak,

 

May I know how do I create a picture folder to save all my pictures within?

Like how does Labview know which exact directory to obtain my pictures from?

 

Must I save it in C Drive and how does the program know which drive to search for the pictures? 😕

If my directory for the pictures is: C:\Documents and Settings\FUJITSU\My Documents\EPD Pictures for an example, how do I code it in labview?

0 Kudos
Message 9 of 35
(5,977 Views)

Hi miu,

You should go through my code to understand how I am building the path. If your path is going to remain constant, then you can use constant path.

See the attached image.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 10 of 35
(5,956 Views)