LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

True/false comparision for specific time

Hi,

 

I am trying to compare two elements for specified time. 

The condition is that if the output is true all the time, program should go to next step if not it should reset the timer and repeat the process. 

Please have a look at attached VI.

Thank you.

 

Regards, 

Pikachuuuuuuuuuu

0 Kudos
Message 1 of 2
(953 Views)

Hi Pika,

 


@Pikachuuuuuuuuuuuu wrote:

I am trying to compare two elements for specified time. 

The condition is that if the output is true all the time, program should go to next step if not it should reset the timer and repeat the process.


None of your requirements is found in your VI…

There is no "specified time".

There is no "true all the time".

There is no first step or next step…

There is no "reset the timer"…

There is no "repeat the process"…

 

To repeat something you should place it in a loop.

The ElapsedTime function has a Reset input, maybe you want to use it?

When your requirements describe "steps" you should think of  states in a statemachine!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(935 Views)