LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping LabVIEW error codes to exit codes of another application

I am building a framework in which Application1 receives exit codes from Application2 and that exit code is mapped to show passing/failure of a test case written in Application2. If Application2 were to be Labview. How would I do this mapping? Since, Labview always returns exit code 0 (pass) on execution of a VI.
0 Kudos
Message 1 of 4
(3,375 Views)

What is an exit code and how are you getting that?  Is this an application that is built into an .exe?  How are you calling it that it gives you an exit code?

 

Please provide more details on your application.  Perhaps even attach a VI that shows how you get that code.

0 Kudos
Message 2 of 4
(3,366 Views)

Say, my LabVIEW VI has two components which are generating error codes. I want to be able get these error codes out of LabVIEW and pass it to another application. Currently, I am doing this operation by writing the error codes to an error file(txt file) and calling python to parse the contents of this file and send it to the other application as exit codes(python can generate custom exit codes). Exit codes are codes generated when an application terminates.

Link about exit codes:
https://msdn.microsoft.com/en-us/library/ms194959(v=vs.100).aspx

The problem here is that the other application that is supposed to receive information from LabVIEW, only reads exit codes to show if the run has passed/failed.

PFA, the VI that I have implemented using python

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

I searched the NI Site and only found 1 thing that is relevant.

 

Exit Code or Return Code Status Bit Returned from LabVIEW [broken link removed]

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