LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TRUE/FALSE problem

I got a wired situation with a VI I wrote.
I have a case TRUE/FALSE structure, and first of all, the true-part is
ALWAYS first executed. When this part is done, I execute the false-case,
for message handling and so on.
But in the true case, I generate some data I want to use as a source in
the false case.
So in true case the string is an indicator, but in the false case, that
string is the source for displaying. Does anyone know how to solve this.
This true/false case is part of a loop. So I tried with a SHIFT
REGISTER, but that doesn't seem to work.
Any tip is welcome !

Thanks

Kristof
0 Kudos
Message 1 of 3
(2,769 Views)
Sorry I posted my message so early, mayby because the sunshine that lights
my mind, but I have found a solution myself. Just putting the value in a
loop and in the false case, connect the previous shift-register-value with
the next....

Thanks anyway !

Kristof Poppe wrote:

> I got a wired situation with a VI I wrote.
> I have a case TRUE/FALSE structure, and first of all, the true-part is
> ALWAYS first executed. When this part is done, I execute the false-case,
> for message handling and so on.
> But in the true case, I generate some data I want to use as a source in
> the false case.
> So in true case the string is an indicator, but in the false case, that
> string is the source for displaying. Does anyone know how to solve this.
> This true/false case is part
of a loop. So I tried with a SHIFT
> REGISTER, but that doesn't seem to work.
> Any tip is welcome !
>
> Thanks
>
> Kristof
0 Kudos
Message 2 of 3
(2,769 Views)
Hello Kristoff
The best method for you is: put nothing in the true case but all that is in the true case before the case statement. In that way it will always be executed (that is what you want) and depending on the condition nothing or the false case is executed. I have the feeling that you are mixing up a statemachine and a true/false case.
Keep it simple !
greetings from the Netherlands
0 Kudos
Message 3 of 3
(2,769 Views)