LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine that runs through 2 states on loop until condition is met

Hi all,

 

I am currently trying to make a state machine that runs through 2 states alternating but through a loop until a condition is met. Its purpose is to run a machine that is given a certain x-y dimension, then runs through a certain process. The specific process I'm trying to achieve is as follows:

 

1. give an x-y dimension

2. move machine in the x by one dimension

3. stop, move up in the z direction (to recalibrate and collect data)

4. come down (-z)

5. move in the x again by one dimension 

6. once x dimension is met, move down in the y

7. repeat the previous x-z motion but now in the negative x direction

8. once x dimension is met again, move down in the y

 

each dimensional movement is a state, including start and stop. (start, +x motion, y motion, z motion, -x motion, stop)

 

id like this process to continue until my y dimension is met, at which point the process stops entirely. I'm mainly getting stuck on the conditionals and how to implement it given the dimension size. any help is appreciated!

0 Kudos
Message 1 of 2
(538 Views)

To guide you, you need to attach the current state of your code.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(518 Views)