ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set time for execution

Hi

I have one program and in it I am acquiring data continuously  suppose now I want to set time duration control.

 

Program should be acquired the data according to my time limitation, suppose I enter 10 minute then it should stop acquiring data after 10 minute.

 

Can any body help me by giving any example code.

 

Thanks

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

Hi husssey,

 

there's a TimeElapsed function in the time functions palette. It will tell you when 10mins are over...

Best regards,
GerdW


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

Hi 

here I am attaching my vi code in which I want to save data for particular time period .

 

Time period should be controllable thanks

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

Hi Husssey,

 

as said before: use the ElapsedTime function...

Best regards,
GerdW


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