 blessedk
		
			blessedk
		
		
		
		
		
		
		
		
	
			04-29-2016 12:17 AM
 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			04-29-2016 12:50 AM
04-29-2016 12:52 AM
04-29-2016 12:57 AM
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			04-29-2016 05:44 AM
I do not know what you mean by "interconnected" here. But your state machine will call the needed subVIs based on what state (case) it is in.
 Yamaeda
		
			Yamaeda
		
		
		
		
		
		
		
		
	
			04-29-2016 06:55 AM
What i like to do is create a sub-vi for each state, with all needed inputs and outputs. That way the state machine is in the main VI, but each state is a separate VI which makes the main VI smaller, the code segmented and easily changed and reused.
Start a new project from Template, Producer/Consumer or State machine, and in each state needed, create a sub-vi.
I hope i make sense, it can be hard to explain sometimes. 🙂
/Y
 esodar1981
		
			esodar1981
		
		
		
		
		
		
		
		
	
			04-29-2016 08:02 AM - edited 04-29-2016 08:06 AM
Your assumptions are correct.
Create subvi for each state of your machine, put it in the proper case (state) and every time the machine call the case, the subvi will be executed.
For passing data bethween subvi there are different solutions:
1) global and/or local variable
2) shift registers in main subvi
3) functional global vi https://decibel.ni.com/content/docs/DOC-2143
 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			04-29-2016 08:22 AM
04-29-2016 08:32 AM
04-29-2016 08:41 AM