LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make OR Function?

As title, I want to build two functions. They are independent. While the buttom be pressed, the content will copy to output.

 

The problem is they are not independent such sequence and just using one part only.

 

0 Kudos
Message 1 of 7
(3,587 Views)
Hello,

I think you are looking for the "selector" function ; depending on the input value it will choose which value True or value False and output it.
I modified a bit your VI, I hope this helps.

PS : don't forget to put a timing function in your while loops otherwise it will suck all the CPU time 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 7
(3,575 Views)

Hello TiTou

Thanks for your help. but I can't open your file. Could you give me more information

 

0 Kudos
Message 3 of 7
(3,572 Views)
oh... sorry I didn't see that your version was 8.0, here it is in the version you have 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(3,564 Views)
Hello TiTou llel
 
Thanksyou I can see it. But in this VI just has one input. How to handle two or more function in parallel?
 
0 Kudos
Message 5 of 7
(3,560 Views)
Hi,

"How to handle two or more function in parallel?"
In LabView you can have all functions in parallel - as long as they are independent LabView will process them in parallel.
So just wire (copy&paste Smiley Wink) more of those functions in parallel! Or use a case structure when you only have one selection condition (aka boolean input)...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,553 Views)
There are many ways of "doing things in parallel", you really have to define what you want to do before coding.

What exactly are you trying to do ?

What you made on the first VI you posted was parallel, the two loops were not connected and as long as at least one loop was still running, the VI was running.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 7
(3,551 Views)