LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is VB faster than LabView?

I am writing an application to display 1024x768(98304 bytes)images on a DLP using activeX over USB 2.0. I have a VB executable to measure the speed in frames/sec. It loads two images into memory and then alternates between them by downloading a frame (1st activeX method invoke) then reset/display frame (2nd activeX method invoke). These repeat in a while loop with a rate calculation.
I have duplicated this routine in LabView using the same activeX invoke methods. The data type is variant. The conversion from byte array to variant is made outside the while loop.
The VB application runs at 135 fr/sec while the LabView app runs at 19 fr/sec.
I'll need to run the system at about 100fr/sec.

Does anyone have any ideas to speed up the LabView?

Thanks,
Stuart
Message 1 of 2
(2,509 Views)
Hi L-ViewStu,

I'm not really sure why the VB code would execute 7 times faster. I can see how there would be a slight overhead with the LabVIEW code, but not on the order of 7x. Is it possible that you could be programming the two apps slightly different? Do you have any delays in your VI? Are you opening and closing your references the same way in your VB app and your LV app? These are the only ideas that I can think of that would make that type of performance difference.

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(2,458 Views)