LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize image display with monitor refresh cycle

I want to display 2 images (one picture and one background image) in an picture display indicator, switching between them at 1 Hz frequency. I mean I want to display a picture for 0.5 sec, then displaying background image for 0.5 sec, then again displaying picture for 0.5 sec, and so on...

My questions are:

 

1- How can I do that? I wrote the code below. but I think it would be a better solution, for example timed loop. Do you have any idea?

 

2- How can I synchronize displaying images with monitor refresh cycle? My monitor refresh rate is 60 Hz, so I want to synchronize the onset of displaying images exactly with monitor refresh cycles.

 

Any comments would be appreciated.

Barana

 

Capture.JPG

0 Kudos
Message 1 of 3
(2,651 Views)

One possible way is to use IMAQ WindNonTearing VI from Vision. You will need to convert picture to array, then to IMAQ Image.

You don't need to have full VDM license, because this SubVI is part of VAS.

 

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

Thank you Andrey.

Your comment is helpful.

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