02-04-2009 04:52 AM
Hello, ik have a problem with the xor function. Normaly, when you press the "ok" button, the first led goes on, then when while loop1 is done, the second led goes on and the first goes off.
The problem is dat the first led doesn't go off.
I have attachted my project and made a print screen.
Thanks for the help.
02-04-2009 05:04 AM
Hi dsqf,
first: renaming a BMP to PNG doesn't really convert it! There's a reason not to attach BMP and that is filesize
second:
What is your first LED? The one called "Meting3"? It's not wired at all...
Why should a LED go off when you only set it once? You also have to set it to "false" to "switch it off"!
02-18-2009 10:23 AM
Hello,
Can you give some more information on what you would like to do with your application?
As you didn't include the metingx.vi's, it's difficult to see what they do.
Just like GerdW was mentionning, you switch on the first LED, but I cannot see anywhere in your application where you switch it off.
Additionally, an XOR function only returns true at the output if only one of the two inputs is true.
So again, depending the output of metingx.vi's, the next LED's will be activated or not. If the subVI's are retuning a '1' and you also apply a '1' by the boolean constant, the next LED will not go on.
So please tell us what you would like to do so we have a better understanding and are able to help you.
02-18-2009 11:37 AM