取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 7 条)
3,594 次查看
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 项奖励
2 条消息(共 7 条)
3,582 次查看

Hello TiTou

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

 

0 项奖励
3 条消息(共 7 条)
3,579 次查看
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 项奖励
4 条消息(共 7 条)
3,571 次查看
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 项奖励
5 条消息(共 7 条)
3,567 次查看
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 眨眼表情) 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 项奖励
6 条消息(共 7 条)
3,560 次查看
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 项奖励
7 条消息(共 7 条)
3,558 次查看