LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display predicted time of completion

Hey I was hoping someone would have an answer for this. It's not really a critical part of the program but it would be nice to have sooooo...

 

I'm able to calculate an estimate of the amount of time my program will take to run.  Is there any way to then take that time, add it to the current time, and have the program display what day and time the program will finish? I'm pretty new to labview and haven't really messed around with the time tools much but I've been messing with it for the last 2 hours and haven't really gotten anywhere 😕 any help would be appreciated 🙂

 

Thanks!

0 Kudos
Message 1 of 5
(2,370 Views)

Hi John,

 

so it took you more than 2 hours and you are still not able to perform a simple addition? Come on... 😄

 

Just add your calculated time period to the current time:

check.png

Best regards,
GerdW


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

sorry didn't realize you could just add them together... I figured you'd have to convert the time and date to numbers... that's what I couldn't figure out 😕

0 Kudos
Message 3 of 5
(2,354 Views)

Hi John,

 

you should have learned from this question about the polymorphism of many LabVIEW functions.

 

You can add different datatypes (like timestamp and DBL as shown above).

You can add scalars to arrays.

You can add arrays to arrays.

You can add scalars to clusters.

You can add clusters to clusters.

You can add to waveforms (special kind of cluster).

...

All with just the same add function!

 

To learn more about that go through online tutorials and check the examples coming with LabVIEW!

Best regards,
GerdW


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

@johnsaa wrote:

Hey I was hoping someone would have an answer for this. It's not really a critical part of the program but it would be nice to have sooooo...

 

I'm able to calculate an estimate of the amount of time my program will take to run.  Is there any way to then take that time, add it to the current time, and have the program display what day and time the program will finish? I'm pretty new to labview and haven't really messed around with the time tools much but I've been messing with it for the last 2 hours and haven't really gotten anywhere 😕 any help would be appreciated 🙂

 

Thanks!


You could use a slider bar. I did a very simple VI (LV12) but you could quite easily use your application to use a slider bar.

 

Slider.jpg

 


Kudos are the best way to say thanks 🙂
0 Kudos
Message 5 of 5
(2,349 Views)