06-11-2010 08:41 AM
Hello,
I've made a .exe file from my vi to test my application (measure).
My vi remote a spectrum analyser, read the datas and spread them on the screen (xy graph). Before, these datas pass thru Create Limit and Limit testing vi, so I've got 3 plots : Signal, Failures (over the limit) and Limit (the pattern).
So I created the exe and it works well, just like the vi.
But the problem is that when I copy the build folder (exe+ini+aliases+data folder) on another computer, the program works, but there is a problem : I've just got the Signal plot on the screen. Failures and Limit just don't appear, as if the limit vi didn't work.
There is many exe on the computers I tested it, and they all works fine... is it a runtime engine problem ? I don't think so because the computer got labview 2009 so it should have the latest version.
Anyone got an idea ?
Thanks in advance
Solved! Go to Solution.
06-11-2010 08:50 AM
It doesn't sound like a runtime engine problem because it wouldn't work at all (i think).
Trying to guess now. Are the things that don't work in a sub-VI? if yes have you included them on the .exe build?
Can you put some indicators on the main VI appart from the graph to see if you are getting anything there?
Have you got an error out cluster on your front panel to display any errors if they occur?
06-11-2010 09:00 AM
Dimitrios a écrit:It doesn't sound like a runtime engine problem because it wouldn't work at all (i think).
Trying to guess now. Are the things that don't work in a sub-VI? if yes have you included them on the .exe build?
Can you put some indicators on the main VI appart from the graph to see if you are getting anything there?
Have you got an error out cluster on your front panel to display any errors if they occur?
Yes they are in a sub-vi (polymorphic), which is in the dependancies of the project explorer (it is done automatically).
This sub-vi gives over things like a boolean indicator, which doesn't work neither.
There is an "error" that may be a problem : my waveform parameter dt is set to -1 because it isn't constant. But it should not be a problem as there is a Labview example using this, and it works fine as a vi and as a .exe on MY computer.
How can it be possible that a .exe works on my computer and differently on others? incredible..
06-11-2010 09:10 AM
06-11-2010 09:11 AM
It has happened to me many times.
Once it was a path that was different.
Another time it was the the DAQ device which had different name.
Or i had to add VI's manually on the Source files
When you build the executable have you added these VI's on the 'Always included List' of the "Source Files". If not try it to see if that makes a difference.
06-11-2010 09:26 AM
I know that a exe doesn't include everything, but I thought labview would build the exe including the dependencies of the vi.
Previously, the futur user of my program never had a problem with this : the guy who created the application gave him the build repertory, an it worked...
How can I create an installer please ? The network analyser is connected via NI GPIB (analyser)- USB HS (computer). So it uses GPIB communication, and the VI uses VISA protocol to communicate with the analyser.
The point is that the communication with the analyser isn't a problem as the Signal is transmitted well with the .exe, the only problem is that limit polymorphic VI (i think). But how can I know ? ![]()
			
    
	
		
		
		06-11-2010
	
		
		09:32 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		06-10-2025
	
		
		08:35 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/build_installer/
But try to add the Vi's on the list it might be just that.
06-11-2010 09:35 AM
You create an installer just the way the LabvIEW help explains. In your project, right click on Build Specifcations and select New>. When you built the exe, did you not notice the 'Installer' option right below 'Application (exe)'?
There is the possibilty of a lot of dependencies that the app builder has no possible way of knowing. Even when known, those dependencies might be something that you have to specifically add as part of the installer.
06-11-2010 09:41 AM
Dimitrios -> there is only the main VI in the Source files, and I can't add anything...
here are 3 screens of the options
06-11-2010 09:52 AM