 Blofeld
		
			Blofeld
		
		
		
		
		
		
		
		
	
			02-14-2019 03:59 AM
Hello, i'd first like to apologize for this very beginner-like question... Im very new to labview and i'm starting to see the potential and liking it, but i'm having troubles so far.
I have this piece of hardware that i'd like to control with LabVIEW and the pieces of code i've constructed works, but the program terminates when i've pressed both of my buttons?
I have two event sctructures that react when mouse is down on two different buttons, the blocks inside the eventstructure is executed as they should etc.
The problem is that when i've pressed both my buttons, the program terminates. I'd like to add more code to be done afterwards. And it seems i'm not able to run the same event structures twice? I can't push the button again, it goes dark and stays dark. (After i press it first time it switches back, it is after i press 2nd time it stays dark).
Solved! Go to Solution.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			02-14-2019 04:12 AM
Well, obviously it is not programmed right, so we probably need to see the code.
(Why do you have two event structures? Typically one is sufficient. What is you code architecture? Do you even have a toplevel while loop?)
02-14-2019 04:14 AM
Here is the program, i tried to do top level while-loop but i'm sure it worked as intended. The two white blocks are working as they should and are outputting what they're supposed to. 
 Norbert_B
		
			Norbert_B
		
		
		
		
		
		
		
		
	
			02-14-2019 04:22 AM
You have misconception about event structures. Please refer to tutorials/help and examples for event based implementation. They should help you in understanding your misconception. I recommend specifically reading about event structure pitfalls.
02-14-2019 04:25 AM
Okay, i'll look into that. Given the simplicity of my problem i'll mark this as a solution for now.
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			
			
    
	
		
		
		02-14-2019
	
		
		10:41 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		06-17-2025
	
		
		05:08 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			02-14-2019 11:08 AM
The event structures are not the primary problem, it is your complete lack of understanding of dataflow,, that can easily be solved by doing some basic LabVIEW tutorials.
What is happening in your case:
What needs to be done:
See how far you get... 😉