LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer or similar

Hello all!

 

Im making a simple code to teste mathscript, but im having a problem/don't know how to do a timer.

The idea of the code is:

Im measuring 2 values of voltage (V1 and V2)

When V2 > V1, I want to wait like 10 seconds and then if V2 still higher then V1 i want to activate a boolean.

 

My only problem now is making this "timer" or "wait".

Can someone help me pls?

0 Kudos
Message 1 of 4
(2,230 Views)

Hi pedro,

 

using "plain" LabVIEW this would be very easy, so why do you use Mathscript here?

Best regards,
GerdW


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

This is the project

0 Kudos
Message 3 of 4
(2,218 Views)

Hi Pedro,

 

My only problem now is making this "timer" or "wait".

All the stuff in the MathScript node can be done by simple LabVIEW functions easily!

I really recommend to get rid of the MathScript…

The timer can be implemented using the ElapsedTime function.

Best regards,
GerdW


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