> front panel. When I receive data, 0 is treated as False (which is OK)
> and -1 is Treated as True. The same happens with controls. If I
> switch to True, it writes -1 to the Datasocket in stead of 1. My plc
> program cannot handle -1 as true. How do I get True = 1 in stead of
> True = -1. Using Labview 6.1
LV stores Booleans in a byte, which can have 256 different values. 0 is
FALSE, and everything else is read as TRUE, same as C/c++ and many other
languages. If LV is producing a Boolean, it always produces 0 and 1,
and you shouldn't see it producing other values for Booleans.
I think the problem here is that the publisher of the value is
DataSocket rather than LV. Hopefully there is a way to control this,
but I'm not aware of it.
Greg McKaskle