LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pict ring

how can animate graphics with pict ring
0 Kudos
Message 1 of 2
(2,753 Views)
Its actually pretty easy. You can do that by creating a pict ring with as many "frames" as you want to animtate. Make the pict ring an indicator. Using a graphics editor (such as Paint in Windows) create each frame of the animation, save them using unique names for each frame. While in the graphics editor copy the first frame image to the clipboard, then on the vi front panel right click on the first index of the pict ring and select "Import Picture". Continue doing this for each picture/frame. You can then put the pict ring terminal inside a for loop with N = to the number of frames in the animation (minus 1 to account for the zero index). Wire the iteration terminal to the pict ring terminal. Be sure to put a delay in the For loop (say 100 to 200 ms) so that the ey
e can actually see the animation. Run the vi and should have an animation.


Steve
0 Kudos
Message 2 of 2
(2,753 Views)