LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
(494 Views)

Hi pedro,

 

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

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 4
(489 Views)
Highlighted

This is the project

0 Kudos
Message 3 of 4
(482 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
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 4
(448 Views)