LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use state machine to fill cluster

Solved!
Go to solution

Hi,

 

I am trying to create a state machine that runs two states, each state has two elements going to a Bundle function and into the cluster. I want the two elements from the first state to go through, then the second state should run and pass the final two elements. Currently I am only getting the data from the final state. I have an the vi attached.

 

Thanks,

Chris

0 Kudos
Message 1 of 3
(2,149 Views)
Solution
Accepted by topic author CLH239

You don't actually have a state machine.  What you have is a basic loop, and nothing about what happens in earlier iterations of the loop gets passed to later iterations.

 

You need to build the cluster within the loop itself and maintatin it in a shift register.  Use bundle by name to update the respective elements of the cluster in each frame of the case structure.

 

Message 2 of 3
(2,141 Views)

Thanks for the reply RavensFan, that helped a lot.

 

Chris

0 Kudos
Message 3 of 3
(2,126 Views)