12-03-2010 01:18 PM
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!
12-03-2010 01:31 PM
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?
12-03-2010 01:31 PM
Most often a blink of an eye, sometimes a bit more, machine dependent. Shouldn't take longer than the drop of a hat.
12-03-2010 02:24 PM
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.
12-03-2010 03:32 PM
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?".