11-01-2013 03:11 AM
Hi.
On a normal fast PC I have no problem, but on a single board computer (slow) PC latency is becoming a huge issue.
I simply grab LV pictures from an Imaging Source camera, resize the image data to a low res bitmap (about 171 x 128), reverse the image horizontally and send the images through a TCP socket. The speed of doing this is too slow. Using timers to analyse the probelm, I found the main culprit is the Picture to Pixmap.vi which is an image converter, which takes up over half the time.
I am not using the Imaq Vision software, just the free NI-IMAQ Vision and Motion add-on with LV 2012.
Is there a better (faster) way to do this?
I do have the choice of Imaging Source's vi's to produce a picture or an IMAQ "Image Out" (purple wire). Is there a way to quickly convert the "Image Out" to a bitmap, or a quivker way to convert the LV Picture to a bitmap? DShoudl I consider using Active X components instead?
A very frustrating problmem, I have spent days on. Any help will be gratefully received.
cheers,
David
11-01-2013 10:44 AM
If there is no need to display the picture in a picture control, I would recommend trying to intercept the image data at the capture point. How are you grabbing the image in the first place? Is it a color image/B/W?
Unfortunately, the VI you are having performance issues with is locked, so if there were a way to optimize it, it is beyond the control of anyone outside of NI Dev Team.