LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how much time does read jpeg file take?

Hello, does anyone have an estimate about how much time it takes to read a jpeg file using the Read JPEG File.vi

 and display it using Draw Flattened Pixmap.vi in picture control? The size of the jpg file is about 200kb. Thank you!

0 Kudos
Message 1 of 5
(2,625 Views)

Have you simply tried it to see? There are two parts to your question: reading the file and drawing the picture. Each part involves different resources. First part is primarily disk I/O. The second is the actual drawing on the screen. That's dependent on the size of the picture (in terms of  the bounding rectangle and the resolution). Either one should not take that much time.

 

What's the reason for your question? What are you trying to figure out?

0 Kudos
Message 2 of 5
(2,618 Views)

Most often a blink of an eye, sometimes a bit more, machine dependent.  Shouldn't take longer than the drop of a hat.

 

 

Message 3 of 5
(2,614 Views)

 

Hi, Thank you for your help. I'm working on an experiment that is very time sensitive and precise. The image display will be synchronized with an event timer and trigger which are controlled in C programming. The person who wrote the C wants to know how much time (in ms unit) it takes to read and display so it can be synchronized with trigger and event timer. I don’t know the details on the C control part of program.

 

0 Kudos
Message 4 of 5
(2,595 Views)

This will be mostly dependent on your hardrive transfer rate (and CPU speed to a lesser extent).  The only way to know it to test it.  You can also speed things up by changing the VIs thread priority and being sure other processes are not running.  TBH, if you're using WinDoze the answer is "who knows?".

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 5
(2,585 Views)