From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-25-2017 12:30 PM
Hello all ,
i need to find a elapsed time for time consumed. I have used a " Get date and time in seconds " ,
" Tick count " for the process..it throwing answer directly.
i need a continuous running Indicator . post your views
i have an attached a VI
09-25-2017 12:57 PM
Hi Bhuvanesh,
My interpretation is that you want to see how much time has elapsed while your code is running. For that, you have a couple of options:
Also, instead of using the express VI, you may look at High Resolution Relative Seconds, found in the hidden gems installed through VIPM.
09-25-2017 01:21 PM - edited 09-25-2017 01:22 PM
I am getting more confused as I read your description versus your code. Maybe this will point you in the right direction.
09-25-2017 01:23 PM
@Gregory wrote:
Also, instead of using the express VI, you may look at High Resolution Relative Seconds, found in the hidden gems installed through VIPM.
I don't remember which version started it, but that function is an actually released function now in the Timing palette. No need for the Hidden Gems package to find it.
09-25-2017 01:46 PM - edited 09-25-2017 01:49 PM
@Mrtechie wrote:
i need a continuous running Indicator
Nothing In LabVIEW is "continuous". An indicator is updated when your code writes to it.
If you want a countdown during the inner sequence frame, you need to re-architect your code as a state machine and write to the time indicator more often. What kind of "code" is in that inner frame? A loop?
Depending on the nature of the inner code, you might need to run the timer in a parallel loop and start/pause/reset/etc. it from the main loop.
I would also recommend to use a relative time format for your time indicators. More intuitive to read.
09-26-2017 12:02 AM
Hi All,
I have tried these methods ( tick count, Get-Date & time in seconds, High-Resolution Milliseconds ) these are directly throwing an answer. I need to find elapsed time starting from (0.1 to end ) .
i have a used a state machine architecture for my application. i have attached a code. ( in last frame I have done using tick count to find the elapsed time )
Yes , i want to see how much time has elapsed while my code was running
09-26-2017 12:05 AM
Hi Gregoryj ,
you want to see how much time has elapsed while your code is running.
Yes exactly. !!!
i need a continuous running indicator ( elapsed time -> 0.1 to end )
09-26-2017 04:20 AM
You are clearing out your start time in at least the state you are showing. You have a bunch of tunnels you are using the Use Default If Unwired. That is typically a bad idea because it causes errors like this. You need to wire your values through the cases that do not update the shift register.
09-26-2017 05:33 AM
hello crossrulz ,
ya i have the bunch of tunnels. but i have done that for elapsed time Shift register tunnel completely .
i want a countdown from 0.1 to end . that's it .
or tell some other way to find the elapsed time while my code was running .
shall i use a event structure time node ??
ya i have tried your code too. in that also directly throwing the answer . it needs to starts from 0.1 to end .( update like a elapsed time express Vi )
09-26-2017 07:04 AM - edited 09-26-2017 07:05 AM
So you want something more like this?
I just used 2 to make it more obvious what is happening as you try the code out.