LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Series of Images at 60Hz in "Slideshow Mode"

Solved!
Go to solution

Hi agin,

 

you still don't use autoindexing in the display loop…

(Another hint: the wait function has an output giving you the same value as TickCount: no need to use two functions… And there are a lot coercion dots in your image. And why do you need BuildArray act on your 1D array of images?)

 

How many images are to be displayed? Can you verify the loop count?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 18
(1,287 Views)

 


agin wrote:

I added the tick function in with shift registers to time the for loop in milliseconds. I am a little miffed, because if I set the wait time to 20ms, and I display 100 pictures in the for loop, then I expect a time of 2000ms. However, the tick time is about 1000ms (it varies from 1000~1080ms). It seems the time is always halved. When I change the wait time to 50ms, the tick time is ~2500ms.

Thoughts?


2017-04-07_115247_fps.png
gerdw,

thanks for  the hint about the wait function's output

 

 

 

 

Message 12 of 18
(1,281 Views)

This VI is quite similar to yours, and with a couple of exceptions of 51-52ms, they all loop at 50, as expected. (you calculate the time wrong)

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 13 of 18
(1,258 Views)

Yamaeda,

Thanks for the additional help. I will take a look at that. I also noticed that when I loop the pictures at 50fps (20ms), some of the white boxes do not appear. The picture display seems to skip some of the boxes if the fps is too high. This was verified by recording the screen with an iphone video camera, and slowing the video down to watch each frame. However, when I drop the fps down to around 20fps, all the boxes appear. 

Thanks,

0 Kudos
Message 14 of 18
(1,234 Views)

To ask the obvious and probably stupid question - at what frame rate did you record the video?


GCentral
Message 15 of 18
(1,230 Views)

Hi cbutcher,

Yes, that is important question. I believe we recorded it at 240 fps -- a new capability of the newer iphones.

 

0 Kudos
Message 16 of 18
(1,217 Views)

Don't forget that unless you're using a fancy high frame rate monitor it will probably be updating at the standard 60 Hz.  If you're outputting at 50Hz there will be some issues.  Since the monitor's display frequency is not synced to your output frames you'll get artifacts like missing sections, tearing, jagged edges, etc. on some frames.  The expensive displays can fix that too using frame synchronizing tricks but I don't think you'll find those in LabVIEW.  Smiley Frustrated

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
Message 17 of 18
(1,213 Views)

Hi NIquist,

Thanks for the reply. Good point. I have been running Labview and the VI on my laptop, which I assume has a 60Hz screen. I have a 144Hz monitor here, and I plugged in the HDMI port from laptop to this monitor. I used duplicate screen function from Windows. Just from visual inspection, I can definitely see that some blocks are missing when run at 50Hz on the 144Hz monitor. I think this is an accurate test. I'm not sure if running labview on my desktop with the 144Hz monitor will make any difference from running labview from the laptop and simply duplicating the screen to the 144Hz monitor. 

Thanks,

0 Kudos
Message 18 of 18
(1,205 Views)