LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Return Code of a Labview Standalone Executable

Does a standalone executable built with Labview return a RETURN CODE?

If yes, is there any way control the value of this RETURN CODE?
0 Kudos
Message 1 of 3
(4,801 Views)
No. Executables don't return anything. I would look into returning a value from a LabVIEW DLL instead of using an executable. LabVIEW DLL's can be created from Tools>>Build Application of Shared Library(DLL) function in LabVIEW 6.0 or later.

See also How to make and call a simple DLL in LabVIEW
0 Kudos
Message 2 of 3
(4,801 Views)
Hi,

In general, I would agree, but executables (.exe) can contain functions. For
example, create a Call Library Function, and type LabVIEW.exe in the Library
name... This is an executable, and does have functions, that do return
values.

It's just one big mess, dll's ocx, tbl, exe, com etc. (e.g. try browsing to
a dll when selecting a ActiveX automation reference, or selecting a ocx in a
Call Library Function... To use a protocol, the file need to have several
required functions, e.g. DllRegisterService for dll's). In general, a return
value it the value of the eax register (on processor level), but this cannot
be controlled in labview. So creating a LV dll is good advice.

Regards,

Wiebe.


"chadevans" wrote in message
news:50650000000500
000086B80000-1031838699000@exchange.ni.com...
> No. Executables don't return anything. I would look into returning a
> value from a LabVIEW DLL instead of using an executable. LabVIEW
> DLL's can be created from Tools>>Build Application of Shared
> Library(DLL) function in LabVIEW 6.0 or later.
>
> See also
>
href="http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a
100753500/f46e8f2ba898c...

0 Kudos
Message 3 of 3
(4,801 Views)