LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get date time in seconds

Solved!
Go to solution
Hi I am using get date time in seconds, function to send the current date and time to a sub vi in which I can use it to calculate the time difference in waveform's time stamps and the time when it started to get the time passed in seconds. Thus I wnated to know that if I pass this value to a sub-vi will this value be constantly updated in the sub-vi or will it remain constant until the execution of the sub-vi is over.
0 Kudos
Message 1 of 4
(3,540 Views)
Unless you actively change it it'll retain it's value.
G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 4
(3,537 Views)

if you are passing date/time through the subvi it will remain constant until the execution of the sub-vi is over. 

it will update once the main vi updates it and passes the new value to the subvi again.

 

 

 

Best regards,
Krispiekream
Message 3 of 4
(3,535 Views)
Solution
Accepted by topic author newbeginer

Yes it will remain constant because the time was read only once, from the main.  Whatever value is passed to the subvi stays the same.  If you want an updated time, you need to put the Get Date/Time function inside the subvi.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(3,534 Views)