LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display images that are from a cluster cluster

Hi
I am working with a cluster of 4 images and I want to display these 4 images sequentially.  I can't seem to get my vi to display more than 1 image and it seems to be a different image each time. 
This vi will be a part of a larger program so I have to keep the images in a cluster. 

Thanks!
0 Kudos
Message 1 of 6
(3,702 Views)
I'm having troubles attaching the vi...
0 Kudos
Message 2 of 6
(3,692 Views)
I can't seem to attach my vi for some reason.
 
Anyways, I'm using a ccd camera to acquire a sequence of 5 images.  I want to save the images once the sequence is complete.  I have been using a cluster of 5 images but it doesn't appear to work in that the same image is being saved each time. 
 
Is there a better way to work with a group of 5 images?
 
Thanks.
0 Kudos
Message 3 of 6
(3,666 Views)
sau,
It would be very helpful if you could attach your code so that we could see what you're trying to do. Have you tried zipping up your vis and posting them?
 
Also, are your images in a file like a jpg or png? What vis are you using to access the pictures? Do you have a single picture control that you want your 5 pictures to be displayed on (refreshing the control) or do you have 5 picture controls?
 
Let us know. Thanks!
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(3,654 Views)
Hi Chris,
Thanks.  Actually I did more reading on the forum and realized I didn't provide a unique image buffer each time I acquired an image (i.e. the buffer had the same name each time).  Now the code works.  However, I notice others use an array of images.  I'm using a cluster.  What's better?
 
Thanks,
S
 
P.S.  I'll try attaching the vi again but the preview mode doesn't show it....

Message Edited by sau on 02-09-2006 11:48 AM

0 Kudos
Message 5 of 6
(3,627 Views)
Hi sau -

I'm glad you were able to learn about providing unique image buffers to solve your problem.  Unlike most other functions in LabVIEW, you have to manually control where image data is stored in memory when handling it.

As a general practice, data of the same type is kept in arrays, while clusters are reserved for data of different types.  Clusters are a more complex structure, and indexing them requires setting a specific item order.  When possible, I recommend using an array instead, as the code will be slightly more efficient and the indexing order is controlled.
David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,607 Views)