LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize the Acquization part and control part?

When the Labview saves to previous version, it
changes the structure of the program. I think that
make it hard to read. The idea here is that.
There are 3 states. two normal opreatoin states. One
fail state.

In each state, first it decide how much time to stay
in this state. Then it sets some parameters of some
equipments, such like RPM of motor, on/off status
of some clamps. At the same time, it monitor all
the input channels, make sure no data are out of range.
If time is up, it tranfer to another sate, which is
speciified by the state machine table. If something is
wrong, it goes to fail state.
0 Kudos
Message 21 of 23
(566 Views)
Sorry, I forgot this.
In this solution you will stay 5s in one state. But only the "first" Datapoint will set the next state, because you read "and" write the local variable in one loop.

Maybe you should use the Min/Max-function or the mean-value to set the next state (use shift-register to build an array of datapoints)at the end of the "Time delay".
0 Kudos
Message 22 of 23
(548 Views)
Thanks a lot. I solved that problem. But I will
see your solution later.
0 Kudos
Message 23 of 23
(548 Views)