 Nawid
		
			Nawid
		
		
		
		
		
		
		
		
	
			09-19-2013 08:45 AM
Hey everyone,
I recognized a strange behavior while Testing an old application i build some timne ago.
The LV Project ist build up with .NET Objects as Models and Calculationroutines. Everthing runs fine in the LabView IDE. Calculation and Models are running well.
When I compile this Project with the LV Builder, it starts fine. But i do recognize some strange thing.
In .net I have defined a Class A like:
class A
{
function_one( x,y,z)
function_two(c,a)
}
Where x,y,z,c,a are all numerics.
And now it comes. As i mentioned in the Vi (LV IDE) everthing works fine.
The call of function_one() and funktion_two() works perfect. In the Exe-Application function_one() works, but functuion_two is not even called, as I debugg the exe-App with Visual Studio.
So whats the deal here `??? Why does funtion_two not work??? not even called?
Solved! Go to Solution.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			09-19-2013 10:25 AM
We probably ned to see some code.
 Hooovahh
		
			Hooovahh
		
		
		 
		
		
		
		
		
	
			
			
    
	
		
		
		09-19-2013
	
		
		01:27 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		04-18-2025
	
		
		03:32 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
You can also debug a built EXE using LabVIEW.
https://www.ni.com/docs/en-US/bundle/labview/page/debugging-applications-and-shared-libraries.html
This helps see the values on the wires when an EXE is running.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
			
    
	
		
		
		09-20-2013
	
		
		02:26 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		04-18-2025
	
		
		03:33 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Thanks for the fast reply.
As the complete Modell is a complex agregation of different objects, it's not able to prepare in short time an example. But there are some screenshots of code and results.(see attachment)
@Hooovahh:
I prepared the client runnigmachine as described in https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHpiCAG&l=en-US
Starting Debugging on developer enginge results in a crash of the debugging LV IDE on the developer engine. And the the Clients still does everthing else shown in the main Vi. Everting except for the function_a of course ;|
-----------
The .Net Elements are used in different simulations like the one described here. I didbt see such behavior befor or in other following applikations.
Screenshots:
 Ranjeet_Singh
		
			Ranjeet_Singh
		
		
		
		
		
		
		
		
	
			09-20-2013 02:57 AM - edited 09-20-2013 02:57 AM
Simply not possible. Untill and unless you wont show us your code.
If this is the case then I will be the first person who looses his job.. 
  
 
09-20-2013 03:02 AM
I definitely cant offer you the code...so maybe its time to buy your boss the cigars he allways wanted. 🙂
Or what is the meaning of impossible... ?
As I mentioned, i do develop different LabView Applications based on that .NET Api. None shows this behavior. So when i build a small example app, we will not be able to see that...
Besides I'm not allowed to show you the complete code of this Vi.
 dkfire
		
			dkfire
		
		
		
		
		
		
		
		
	
			
			
    
	
		
		
		09-20-2013
	
		
		03:50 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		04-18-2025
	
		
		03:34 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Could it be a timing issue? 
Code runing faster in exe file?
Do you have any errors ? 
Make sure you catch all error in the system.
On a side note:
Is it flat sequence strunctures that your vi is filled with?
How big is your vi? 2/3/4 screens wide?
Take a look at:
https://www.ni.com/docs/en-US/bundle/321393d/resource/321393d.pdf
Or
http://zone.ni.com/reference/en-XX/help/371361K-01/lvdevconcepts/checklist/
 billko
		
			billko
		
		
		
		
		
		
		
		
	
			09-20-2013 09:52 AM
Are you sure your executable is pulling in the dlls from the same place your source code is? Maybe it's refering to old, non-working versions?
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			09-20-2013 10:30 AM
Is it possible that the calls need to occur in a certain order to work. Since there is no data dependency, the order of execution is not defined and can change.
(Is is really not very helpful to show an image that is scaled down so much to be nearly unrecognizable. Of course we can see that non of your error outputs are hooked up. Why not? Maybe they try to tell you something interesting? We can also guess that your VI suffers from a severe case of localitis and sequenceitis, so all bets are off.)
 Ranjeet_Singh
		
			Ranjeet_Singh
		
		
		
		
		
		
		
		
	
			09-20-2013 09:50 PM
the place where it is going wrong, may be the path from where it is choosing the file, data and other things going wrong. Use indicators and debug