LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add five minutes to time stamp

Dear all LabView Superusers,
I would like to know how to add five minutes to the time stamp, is it possible?. Prior thanks for the help.
 
Best Regards,
Lee Joon
0 Kudos
Message 1 of 8
(10,416 Views)
Do you mean that you want to shift/ increment a signal/waveform's start time ( t0) by 5 minutes??
0 Kudos
Message 2 of 8
(10,413 Views)
Hi Lee,

take a timestamp, wire it to an add function. Create a numeric constant, set value to 300 (=5*60s), wire it also to the add functin. The result will be a timestamp with added 5minsSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 8
(10,411 Views)
To expand Gerd's idea:

Ton


Message Edited by TonP on 03-17-2008 11:09 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 8
(10,403 Views)
Dear all,
Thanks for the help :-). It works very well.

Best regards,
Lee Joon
0 Kudos
Message 5 of 8
(10,370 Views)

Dear all,

I have found another solution for this. See attached :-), but the solution from TonP is much more simple. Thanks.

 

Best Regards,

Lee Joon Teow

0 Kudos
Message 6 of 8
(10,346 Views)
Hi LJ,

your solution works - but belongs to the Rube Goldberg section Smiley Wink

It's just unneccessary to convert the timestamp to a date/time record, do the adding and convert back to timestamp when you also can add to the timestamp directly!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(10,329 Views)
Just for fun, you can also display the units for the constant, and set the unit to be "min".

___________________
Try to take over the world!
Message 8 of 8
(10,302 Views)