LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if i have this signal from a boolean control :TrueTrueTrue i want to transform it to: TrueFalseFalse

if i have this boolean control signal :TrueTrueTrue i want to transform it to: TrueFalseFalse
0 Kudos
Message 1 of 8
(3,362 Views)
You can make an AND operation with a T F F constant. Remember that when you AND with a T, the original does not change. When you AND with a F, the result is allways F.

Bye.
0 Kudos
Message 2 of 8
(3,362 Views)
> if i have this boolean control signal :TrueTrueTrue i want to
> transform it to: TrueFalseFalse

If you are looking to take sequential elments in a Boolean stream and
convert them, then you should look at making a state machine. Build up
a state diagram if possible where you begin in state 0, as you receive
TRUEs, you count them, moving to states that record that you have seen N
consecutive TRUEs. When you receive a FALSE, the counter and state get
reset to zero. When the counter gets to three consecutive TRUE
Booleans, then you can output the correct Boolean sequence, then
depending on whether the input Booleans overlap, you move to the
appropriate state.

Greg McKaskle
0 Kudos
Message 3 of 8
(3,362 Views)
thanks Greg.i'll understood what you mean and i'll try to do it but can you find me this state machine.vi for LabView 6.0.1
0 Kudos
Message 4 of 8
(3,362 Views)
You can make an AND operation with a T F F constant. Remember that when you AND with a T, the original does not change. When you AND with a F, the result is allways F.

Bye."

"thanks for the answer but i think that this is not what i need.may be my question was asked incorrect.
lets try again .in a while loop I recieve a TRUE boolean signal if a parameter(which a measure) exceeds a maximum value.
The problem is that while the parameter is exceeding this maximum value i constantly recieve TRUE.
i want to transform this constant TRUE to only one TRUE which will start the PRINTPANEL.vi. if i dont have only one true the printer will have to print all the time the parameter exceeds the max value which will cause a lot of problems if the while loop waits u
ntil next multiple 1000ms.
i hope
0 Kudos
Message 5 of 8
(3,362 Views)
Hi,
following your comment I undersood you want to generate a print-out only when there's a change of state from FALSE to TRUE.
If this is correct, then you can use a shift register to detect it and toggle a case where you do the printing.
See example,
Alberto
0 Kudos
Message 6 of 8
(3,362 Views)
> thanks Greg.i'll understood what you mean and i'll try to do it but
> can you find me this state machine.vi for LabView 6.0.1

The one I found that ships with LV is in examples/apps/testseq.llb/State
Machine Test Sequencer.vi. There may be others in examples, but they
didn't jump out at me. You should also look on devzone, do a search for
state machine example or something similar.

Greg McKaskle
0 Kudos
Message 7 of 8
(3,362 Views)
wow i found a lot of state machines :)))))0
0 Kudos
Message 8 of 8
(3,362 Views)