03-24-2010 10:37 PM
Background: I'm trying to animate several eye candy items in a vi. Inserting images as items in a picture ring has worked well for me so far (easy to control animation frame/image displaying with the vi.)
Is there a quick way to import 150 images into the items of a picture ring control (or picture ring indicator)?
The fastest way I've found so far is to drag 10 or so picture files onto the front panel at once. Then select, copy (ctrl+c) and 'Import picture after' (right click on the picture ring) each image, one at a time.
Dragging and dropping each picture onto the picture ring one at a time does not seem to add them to the items in the picture ring.
I'm using Labview 8.5.
I know that I could draw each of the image files one at a time in a 2d picture. But, I prefer to not deal with all the file I/O and I want the pictures to be stored in the vi, not as separate files.
Thanks for any help!
03-25-2010 04:21 AM
03-25-2010 07:18 AM
03-25-2010 09:04 AM
I don't have enough experience with the picture ring to be able to answer that. I can say that the picture control saves images as raster images with no compression, so that might take up more space if the picture ring can hold compressed images. In any case, if the picture is reasonably small, you should be fine. Just be sure to play with the right click options in the picture indicator (such as unchecking the Erase First option).
Another point is that earlier I suggested a 3D array (of pixels), but this will be simpler (and probably more efficient) if you use a 1D array of pictures instead.