LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event

hi everybody,
i'd like to display images from a array of images in seperate windows...
to control the events i use imaqGetLastEvent()...but the problem is, that all windows get closed when i try to close one window AND
the refreshing of an newly activated window does not work.

here my display function:
 
void DisplayResults(Image** image, int camCount)
{
   
   int cc=camCount;
   int winNum;
   WindowEventType event;

   for(int z=0;z<cc;z++)
   {
       imaqDisplayImage (image[z], z, TRUE);
   }

 /*
  * check events while event!=IMAQ_CLOSE_EVENT
  * AND the image array is not empty
  */
 do
   {
       imaqGetLastEvent(&event, &winNum, NULL, NULL);
      // close the specific window
       if(event==IMAQ_CLOSE_EVENT)
       {
           imaqCloseWindow(winNum);
       }
       // bring activated window to front and refresh it
       if(event==IMAQ_ACTIVATE_EVENT)
       {
           imaqBringWindowToTop(winNum);
           imaqDisplayImage (image[winNum], winNum, TRUE);
       }
   }
   while(event !=IMAQ_CLOSE_EVENT && image !=NULL);

does anybody has an idea for me?
best regards,
malte
0 Kudos
Message 1 of 3
(2,741 Views)

This is the LabVIEW board. We can't read. We can only draw.

Try the CVI board.


___________________
Try to take over the world!
Message 2 of 3
(2,732 Views)

hey tst,

could you please draw your answer? Smiley Very Happy

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(2,724 Views)