LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make image appear for certain value

Hopefully this will be a simple solution, but I don't have much experience with extracting images into labview:
 
My program uses a DAQ to measure the energy produced by someone on an exercise bike apparatus. I have a calorie indicator for this, but would now like to make things a little more visual... For every 280 calories that are produced, I would like LV to output an image of a pizza slice, and to output one for each multiple of 280, but rotated at an angle to create an entire pizza. For instance, once the 280 cal is reached - image appears. When 560 cal is reached, an additional image appears, but rotated at 30 degrees (or however thin the pizza slice is...). When a full pizza is made, I'd like it to start "building" another one.
 
How would I go about doing something like this?
 
Thanks for your help in advance 🙂 Let me know if you have any questions.
0 Kudos
Message 1 of 8
(4,079 Views)
Hi dancintoothbrush,

You can use a "Pict Ring" for this task.  I have included a sample VI that demonstrates what I mean.  Basically, I created nine different jpeg images.  Each image contains 0..8 slices of pizza.  I then imported each image into my picture ring.  As the VI runs and the calories increase, the picture ring index increments.  Thus, at 0 calories, picture ring index number 1 displays.  At 560 calories, index number 2, and so on...  When the index number reaches 10, the process repeats.  Does this solution work for you?
Download All
0 Kudos
Message 2 of 8
(4,062 Views)
Hi Peter,

Oh my goodness! It's beautiful! And you did all the work for me! 😄

Thank you so much!! *life saver*

~Nadia
0 Kudos
Message 3 of 8
(4,035 Views)

How about displaying and arranging individual beers to make six packsvery-happy smiley.

Cool project, by the way. Good Luck!

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 8
(4,025 Views)
Haha, that would be great
...except that this project is for 8-12 year olds, to teach them about energy and power 😛
0 Kudos
Message 5 of 8
(4,020 Views)
HI! I'm actually working on a very similar project. I want to use the same idea except add jelly beans to a jar for every 10 calories burned. How do I change the pictures from the vi that is already posted above? Any help would be appreciated!
0 Kudos
Message 6 of 8
(3,853 Views)
Search LabVIEW help for Picture Ring.
0 Kudos
Message 7 of 8
(3,851 Views)
thanks so much! I figured it out!
0 Kudos
Message 8 of 8
(3,848 Views)