VI Analyzer Enthusiasts Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

VI analyzer toolkit API not working on executable

Solved!
Go to solution
Highlighted

VI analyzer toolkit API not working on executable

I'm getting an error when running my executable using the VI Analyzer API. But the same configuration file can be open if I run in development mode.

 

Any ideas on what the differences might be? I've tried to run the application as admin. It gives the same result.

 

 

 

 

 

0 Kudos
Message 1 of 6
(986 Views)

Re: VI analyzer toolkit API not working on executable

The VI Analyzer API is not supported in a built EXE.

DNatt, LV R&D
Message 2 of 6
(962 Views)

Re: VI analyzer toolkit API not working on executable

Do you mean that VI Analyzer cannot analyzer a built application or that you cannot build an application of a vi containing API functions?

I am aware that you can only analyzer code, not built applications, but I can't see the reason why you shouldn't be able to build an application using API functionality. What is the point of the API, if you can't make an application to automate your process? If you need to open the LabVIEW environment to analyze the code, you might as well use the built in GUI.

0 Kudos
Message 3 of 6
(954 Views)

Re: VI analyzer toolkit API not working on executable

Most people use the VI Analyzer API as part of a build process, where they have a nightly build of their code that also analyzes the source to generate nightly reports of any test failures that arise. If your use case for the VI Analyzer is purely an interactive one, then you're right...there's not much benefit to the API, unless you have designed your own UI for analysis tasks, or if you're writing Quick Launch VIs.

 

The VI Analyzer relies heavily on VI Scripting to analyze VI front panels and block diagrams, and unfortunately, scripting is not supported in the Run-Time Engine. Thus, the VI Analyzer is not supported in the Run-Time Engine.

DNatt, LV R&D
Message 4 of 6
(949 Views)

Re: VI analyzer toolkit API not working on executable

Do you have an example of how those nightly builds are run?

 

Our idea was to use Jenkins to update from subversion and then let Jenkins, via a windows batch file, start an exe with the VI Analyzer API functionality.

 

0 Kudos
Message 5 of 6
(945 Views)
Solution
Accepted by topic author FredNiemela
10-23-2017 10:03 PM

Re: VI analyzer toolkit API not working on executable

I have had success with  "labview.exe foo.vi"  (may need full paths to locations depending on usage) and setting the properties of foo.vi to be run on opened.  This way you are using the dev environment.

Message 6 of 6
(934 Views)