From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-11-2011 12:55 PM
Hi all,
I encountered this problem lately. I am indexing a number of images in an array using a for loop. Next the array of images (16 bit) is used somewhere else in the program; it is indexed and the images are to be processed and displayed. The problem is; when trying to index the images from the arrays using the index array the result is the same image regardless of the index!
Can anyone explain that for me?
Thanks in advance
Solved! Go to Solution.
01-11-2011 01:06 PM
It would really help to post the code so people can look at it. But without seeing it I have a minor suggestion. Put a probe on the array where you expect to have multiple images and see if it is what you expect.
01-11-2011 01:38 PM
Hi,
I wrote a smipler code but the same result still ; only one image is displayed
01-11-2011 01:56 PM
I don't have IMAQ so it doesn't work for me. I think that the second loop is where you are displaying the image? If so you will only see the last image. All of them actually but the loop will cycle very quick. Try changing the wait in the second for loop to one second to see if that is happening.
If that is all it is then you just need to use the index array function.
01-11-2011 09:24 PM - edited 01-11-2011 09:28 PM
When you used the IMAQ create VI you specified each image to use the same name of "image". Each image has to have a unique name. I edited your VI to give a unique name for each image and I was able to view three different images in three different viewing panes.