LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

image browser doesn't upadate

Hi,

I have an image browser that is supposed to be displaying the 8 most recent images from a camera that creates an image every second or so. The image browser is attached to my main VI using the Make Child VI from the Embed WindDraw Window library which I downloaded from ni.com.

My problem is that the images in the browser do not update automatically in real time. I can only get an updated set of images if I cover the browser window and front panel with another window (for example the block diagram), then make the front panel the active window again. If I only cover a portion of the browser window with another window, then that portion of the browser images will be refreshed when I move the covering window away, but the rest o
f the images won't be. Even when the images are refreshed, it is only with another set of stagnant images. If I want the images to be updated frequently, I have to keep minimizing and maximizing windows.

My current guess is that this is related to the hardware in my computer (perhaps the video card) and not LabVIEW, but I really am not sure. Does anyone have any ideas as to the cause of or solution to this problem?

Thanks for your help,

Jesse
0 Kudos
Message 1 of 4
(2,469 Views)
Hi,

If you use some ActiveX control, you could search a property or invoke node
like 'Refresh' or 'Update'. If it is your hardware, you could try changing
'Synchronous Display'. This might do something with the video card.

If the picture is updated when the vi is hidden, and shown again, the
control updates when it receives a WM_PAINT message from windows. You can
send it to the control, if you have a hWnd (window handler) of the control.
If you can get this, depends on the control. This involves window APIs, and
is an advanced topic.

Another reason that could cause the problem is a while loop that takes 100%
processor time. (You can check this whith the task manager, but not on
win95/98/3.11). If everything in LV acts 'gluey', than this is the problem.
Put the 'Wait (ms)' function in every while loop that is executed
continiously. The appropriate ms value needs guessing. UI loops usually need
< 100, before you notice a delay. If the updating of the pictures is done 5
times a second (e.g.), you can put a 180 ms wait in the loop. This seems
like a restiction on performance, but it actually improves performance!

If this doesn't help, we need more information on the program.

Regards,

Wiebe.



"jesse" wrote in message
news:506500000008000000634A0000-1021771306000@exchange.ni.com...
> Hi,
>
> I have an image browser that is supposed to be displaying the 8 most
> recent images from a camera that creates an image every second or so.
> The image browser is attached to my main VI using the Make Child VI
> from the Embed WindDraw Window library which I downloaded from ni.com.
>
> My problem is that the images in the browser do not update
> automatically in real time. I can only get an updated set of images
> if I cover the browser window and front panel with another window (for
> example the block diagram), then make the front panel the active
> window again. If I only cover a portion of the browser window with
> another window, then that portion of the browser images will be
> refreshed when I move the covering window away, but the rest of the
> images won't be. Even when the images are refreshed, it is only with
> another set of stagnant images. If I want the images to be updated
> frequently, I have to keep minimizing and maximizing windows.
>
> My current guess is that this is related to the hardware in my
> computer (perhaps the video card) and not LabVIEW, but I really am not
> sure. Does anyone have any ideas as to the cause of or solution to
> this problem?
>
> Thanks for your help,
>
> Jesse
Message 2 of 4
(2,469 Views)
HI Jesse,

I think you are correct.
Try different resolutions and color depths.
Back-off on the hardware acceleration for the video adapter.
Check with manufacturer of video adapter for driver updates to support the display you are using.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 4
(2,469 Views)
Hi,

If you use some ActiveX control, you could search a property or invoke node
like 'Refresh' or 'Update'. If it is your hardware, you could try changing
'Synchronous Display'. This might do something with the video card.

If the picture is updated when the vi is hidden, and shown again, the
control updates when it receives a WM_PAINT message from windows. You can
send it to the control, if you have a hWnd (window handler) of the control.
If you can get this, depends on the control. This involves window APIs, and
is an advanced topic.

Another reason that could cause the problem is a while loop that takes 100%
processor time. (You can check this whith the task manager, but not on
win95/98/3.11). If everything in LV acts 'gluey', than this is the problem.
Put the 'Wait (ms)' function in every while loop that is executed
continiously. The appropriate ms value needs guessing. UI loops usually need
< 100, before you notice a delay. If the updating of the pictures is done 5
times a second (e.g.), you can put a 180 ms wait in the loop. This seems
like a restiction on performance, but it actually improves performance!

If this doesn't help, we need more information on the program.

Regards,

Wiebe.



"jesse" wrote in message
news:506500000008000000634A0000-1021771306000@exchange.ni.com...
> Hi,
>
> I have an image browser that is supposed to be displaying the 8 most
> recent images from a camera that creates an image every second or so.
> The image browser is attached to my main VI using the Make Child VI
> from the Embed WindDraw Window library which I downloaded from ni.com.
>
> My problem is that the images in the browser do not update
> automatically in real time. I can only get an updated set of images
> if I cover the browser window and front panel with another window (for
> example the block diagram), then make the front panel the active
> window again. If I only cover a portion of the browser window with
> another window, then that portion of the browser images will be
> refreshed when I move the covering window away, but the rest of the
> images won't be. Even when the images are refreshed, it is only with
> another set of stagnant images. If I want the images to be updated
> frequently, I have to keep minimizing and maximizing windows.
>
> My current guess is that this is related to the hardware in my
> computer (perhaps the video card) and not LabVIEW, but I really am not
> sure. Does anyone have any ideas as to the cause of or solution to
> this problem?
>
> Thanks for your help,
>
> Jesse


"jesse" wrote in message
news:506500000008000000634A0000-1021771306000@exchange.ni.com...
> Hi,
>
> I have an image browser that is supposed to be displaying the 8 most
> recent images from a camera that creates an image every second or so.
> The image browser is attached to my main VI using the Make Child VI
> from the Embed WindDraw Window library which I downloaded from ni.com.
>
> My problem is that the images in the browser do not update
> automatically in real time. I can only get an updated set of images
> if I cover the browser window and front panel with another window (for
> example the block diagram), then make the front panel the active
> window again. If I only cover a portion of the browser window with
> another window, then that portion of the browser images will be
> refreshed when I move the covering window away, but the rest of the
> images won't be. Even when the images are refreshed, it is only with
> another set of stagnant images. If I want the images to be updated
> frequently, I have to keep minimizing and maximizing windows.
>
> My current guess is that this is related to the hardware in my
> computer (perhaps the video card) and not LabVIEW, but I really am not
> sure. Does anyone have any ideas as to the cause of or solution to
> this problem?
>
> Thanks for your help,
>
> Jesse
0 Kudos
Message 4 of 4
(2,469 Views)