Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Run-time error "5010": Labview: VI execution ...

I get Run-time error "5010": Labview: VI execution terminated by server. This error occurs sporatically. I am running Visual Basic 5.0 application that communicates to Labview 6.1 VIs. It is using NI-Imaq to do vision analysis of parts. I just need to know what to look for that may be causing this error. I am also running it on a PXI system with 64 MB of memory.
0 Kudos
Message 1 of 2
(3,883 Views)
Hello,

I recommend you to do direct function calls to NI-IMAQ and NI Vision function libraries from Visual Basic as this will be a lot more efficient and improve rubustness of your application. During the installation of both software, you have the option to include support files for Visal Basic. Once these components are installed you should see the shipping examples in the following directories (if installed in the default path):

(NI-IMAQ) C:\Program Files\National Instruments\NI-IMAQ\Sample\VB

(NI Vision) C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\IMAQ

There are additional examples that can be found in the Code Library (see the link on the left sidebar).
Let me know if you have further questions regarding this issue.

Regards,


Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,883 Views)