Sie sind auf Seite 1von 2

Why Do I get Error 7 or 1003 When Using VI Server in a... http://digital.ni.com/public.nsf/allkb/410F2EC66F60F9B...

Hola eraldo espin (Usuario equivocado.)

17 ratings: 2.76 out of 5 Rate this Document

Why Do I get Error 7 or 1003 When Using VI


Server in a LabVIEW Application?

Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System


Primary Software Version: 7.1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
My LabVIEW application uses VI Server to call and run another VI. When I run the application, I receive
error 1003. Why am I receiving this error?

LabVIEW is crashing, or getting error 7, why do I receive this error?

Solution:
You can receive error 1003 or error 7 when you try to call a VI by reference or try to run a VI
dynamically using VI Server and the called VI cannot run. A common reason the VI cannot run is
because LabVIEW cannot locate it or one of its subVIs. This also often occurs when the VI depends on
a driver that has not been installed on the current system (for example, NI-DAQmx or NI SoftMotion).

The easiest way around this is to include any VIs that you call dynamically into the build. The procedure
for this is shown below. However, if the VI being called by VI server is not static, for example if it is
changed after build time and you do not want to rebuild and distribute the entire executable, ensure you
use relative file paths for the VIs you will be calling. You will also need to copy the VIs you would like to
execute into the relative file path on the target machine. See LabVIEW 2013 Help: Relative Paths for
more information on using relative paths. Also see LabVIEW 2012 Help: Building Applications Checklist
to make sure you have done everything to ensure your executable will be ready for deployment.

For LabVIEW 8.5 and later:


Include the dynamically called VIs in the Always Included section of the Source Files tab in the
Application Builder build specification.

For LabVIEW 8.0 to 8.2:


Include the dynamically called VIs in the Dynamic VIs and Support Files section of the Source Files
tab in the Application Builder build specification.

1 de 2 21/09/15 08:51
Why Do I get Error 7 or 1003 When Using VI Server in a... http://digital.ni.com/public.nsf/allkb/410F2EC66F60F9B...

My Profile | RSS | Privacy | Legal | Contact NI


© 2014 National Instruments Corporation. All rights reserved.
| E-Mail this Page

2 de 2 21/09/15 08:51

Das könnte Ihnen auch gefallen