12-20-2011 10:49 PM
How to capture the time taken to Start and Stop the Code using .net function?
12-21-2011 01:21 AM
Compare start with stop time.
12-21-2011 03:42 AM
I employed System.Timer(DBL) constructor from .NET pallette but did not get the desired result.Any methods to employ this functionality with .Net functions?
12-21-2011 05:33 AM
As far as I know, the .NET timing functions are not ideal for this, they have a reduced accuracy in comparison with direct kernel32 calls. Why are you doing this in .NET? Use the LabVIEW tick counts function to determine time passed.
P.S. The .NET System.Timer function is for creating regular events for controlling repeating processes, not to calculate elapsed times.
12-21-2011 05:44 AM
I would also choose GetTime LabVIEW funtion. When you subtract old start from stop you geht the difference as double in seconds.
12-21-2011 06:07 AM - edited 12-21-2011 06:07 AM
There is also a function starting in LV 2010 (not in the palettes) called "High Resolution Relative Seconds.vi"
http://forums.ni.com/t5/LabVIEW/New-LV2010-VI-High-Resolution-Relative-Seconds/td-p/1213011
12-21-2011 06:58 AM
Thanks for the reply . I am aware of the tickcount and Get timestamp function and i just wanted to explore the timing capabilities with .net Functions .
12-21-2011 07:49 AM
@vishal.r wrote:
Thanks for the reply . I am aware of the tickcount and Get timestamp function and i just wanted to explore the timing capabilities with .net Functions .
So why are you programming in LabVIEW?
(Couldn't resist)
12-21-2011 07:50 AM
Probably people in .NET Forum give you the better answer.