09-28-2017 04:09 AM
Hi! I want to give A and B to be 1 when Boolean3 is true. How I should do it.
09-28-2017 05:37 AM - edited 09-28-2017 05:38 AM
You really need to learn to avoid using Local Variables so much. They are causing all kinds of race conditions for you.
09-28-2017 05:47 AM
Would something like this do?
09-28-2017 07:25 AM
While I cannot see your code (the image is too small, and your VI won't open on my machine), your Title says that you have not learned the First Principle of LabVIEW, "Data Flow". I tell students to never use Frames ("Flat Structure") and to never use Local Variables (when they understand Data Flow a little better, I explain the rare exceptions to these General Principles).
Have you looked at the LabVIEW Tutorial material on the first page of this Forum?
Bob Schor
09-28-2017 07:45 AM
It depends what the values of A and B should be when Boolean 3 is false. Should it be 0, or 0\1 depending on Boolean?
You can either use a second selector, or OR Boolean and Boolean 3. If Boolean or Boolean 3 is true, output is 1.
09-28-2017 01:21 PM
@H.Nattapat wrote:
Hi! I want to give A and B to be 1 when Boolean3 is true. How I should do it.
Start with a few simple LabVIEW tutorials before continuing any further.
Let's look at what you currently have: