LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

debugging stand-alone application (EXE)

Solved!
Go to solution

Hi there,

 

I have an application which uses ActiveX controls to comunicate with two different devices at the same time.

I have a simulation enviroment in a computer where I got Labview 2014 installed. Here I built my program, and it runs smoothly.

 

I created a aplication (EXE) and then tried in the other computer which is isolated from any networks but it's the computer that operates directly the two devices.

 

The program runs fine except for some minor errors. I would like to debug the program in that computer, but I can't do it remotely, and it has not labview installed neither.

 

Do you know if there are some tools or ways to see my block diagram from the application or to see some of its parameters while is running?

 

 

I only find this paper 

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHpiCAG&l=en-US

 

but it doesn't apply to my case because I have not remote access to the computer where is executing.

 

thanks,

 

0 Kudos
Message 1 of 6
(5,418 Views)
0 Kudos
Message 2 of 6
(5,389 Views)

The Desktop Execution Trace Toolkit can be used to view trace information from a running executable - it will show you generated internal errors / references / queue operations etc.

 

Again, you will need it installed on the PC to use it and I think it also requires some VI Server configuration to connect to the executable.


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

When I had a similar situation National Instruments support told me to install LabView on the target machine in evaluation mode.

 

That gives you 90(?) days to troubleshoot the program, and if that is not long enough just uninstall and install it again for another trial period.

 

YES, National Instruments support told me to do that. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(5,359 Views)

@RTSLVU wrote:

 

YES, National Instruments support told me to do that. 


Did they also tell you to turn your clock back if you are on the bubble?  It works to some extent, but at some point it realizes you've tampered with it and ends your trial.  That was also some advice from support.

0 Kudos
Message 5 of 6
(5,351 Views)
Solution
Accepted by topic author Stavrosyt

A tried and true (and very old!) method that will work with an Executable is to build in logging functions.  I had a Real-Time program that seemed to be losing clock ticks.  It was already streaming state information to the PC, but something was getting "lost".  I added code to write to a local log file certain "Debug" information, including the state of some of my digital lines, and found where my "assumptions" about my code were false (i.e. found my stupid mistake).

 

Depending on your situation, this might involve a lot of text to read, but that's why we have Text Editors with pattern matching ...

 

Bob Schor

0 Kudos
Message 6 of 6
(5,337 Views)