LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Executable with my VirtualBench

Solved!
Go to solution

Hello,

 

32-bit Teststand 2014

32-bit Labview 2015.

VirtualBench Model NI VB-8012

 

I created a Labview VI using the VirtualBench VIs. This VI is taking a DC voltage measurement with the DMM.

I created a sequence file in Teststand. This Sequence file calls the VI as a Limit Test to see if the measurement is within range.

I created a Labview GUI that calls the sequence file.

I am able to run my VI, Sequence, and GUI. It all works and I am able to achieve my voltage measurement from the VirtualBench.

 

Now I want to make an executable for the end user. I have trouble with the VirtualBench when making an executable. I created a project in labview and added my GUI with the GUI llb to the project. I built my executable and tried running it. The GUI runs, however, once I click start to run my sequence file I am prompted with an error (See attachment). The VirtualBench VI works normally, but not as an executable... please help.

 

Thank you

Download All
0 Kudos
Message 1 of 5
(3,815 Views)

Are the functions in the block diagram you provided the entire VI that you are trying to convert to an executable?  Or are there other components to your program as well?

Adam
0 Kudos
Message 2 of 5
(3,760 Views)

Did you build an installer? When you create an installer it will tell you what components your application uses and include them in the installer. You are probably missing the VirtualBench drivers/libraries required by the executable.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 3 of 5
(3,751 Views)

Based on the error message, there is also a Test Stand sequence involved which might complicate the answer we are looking for.  And yes, it should be confirmed that all VI's are included in the application build.

Adam
0 Kudos
Message 4 of 5
(3,747 Views)
Solution
Accepted by topic author MechUnit

After working with NI support an answer has been found.

I ended up running my executable in debug mode. While the code was running, I was able to get an error code ERR(-17600) to my attached error message. I was given the link below in an attempt to solve my issue and it worked.

http://digital.ni.com/public.nsf/allkb/9C9EE3A6F7695AB9862578F0006CBF0E

Solution:
Follow these steps to correct error -17600 (sometimes error -18002)

  1. Once you have built your custom UI, TestExec.exe, open the project file within LabVIEW Project Explorer and right click the .exe file.
  2. Click Properties from the context window that appears.
  3. Click the Source File Settings Category on the left.
  4. Click any VIs which you added to the original project (under Project Files in the center) and check the box to Rename this file in the build and add "UI_" to the beginning of the text.
  5. Then click the Dependencies option under Project Files.
  6. Check the box to Apply prefix to all contained items and add "UI_" to the text box.
  7. Build the project.

Thank you all for your time and help

0 Kudos
Message 5 of 5
(3,646 Views)