harsh_electro Posted August 31, 2005 Report Share Posted August 31, 2005 Hi friends, I want to determine the time taken by Labview to execute entire code from begining to end .How can i do that ? Thanks Harshad Quote Link to comment
Yair Posted August 31, 2005 Report Share Posted August 31, 2005 Build a three-frames sequence structure. In the first and third frames place the tick count VI and in the second frame place your code. Subtract the value of the counter in the first frame from the value of the counter in the third frame and you have your time (in ms). Note that updating front panel controls can create some serious jitter, so unless this is part of your test, you should not update any control inside the second frame. Quote Link to comment
Neville D Posted August 31, 2005 Report Share Posted August 31, 2005 Hi friends,I want to determine the time taken by Labview to execute entire code from begining to end .How can i do that ? Thanks Harshad 5929[/snapback] If the time taken to execute the code is very small (<10ms), the overhead required to call the counters might affect your readings. In this case, 1 Get start time from tick counter. 2 Perform a known number of operations in a loop 3 Get stop time from another tick counter 4 Calculate the avg. time for the operation using the #operations and the elapsed time. Neville. Quote Link to comment
AnalogKid2DigitalMan Posted August 31, 2005 Report Share Posted August 31, 2005 Would Tools/Advanced/Profile Vi's/Timing Stats and Details be of use? Quote Link to comment
Neville D Posted September 1, 2005 Report Share Posted September 1, 2005 Would Tools/Advanced/Profile Vi's/Timing Stats and Details be of use? 5934[/snapback] That would help too..!! Sometimes you can't see the forest for the trees! :headbang: N. Quote Link to comment
Mark Balla Posted September 1, 2005 Report Share Posted September 1, 2005 Hi friends,I want to determine the time taken by Labview to execute entire code from begining to end .How can i do that ? Thanks Harshad 5929[/snapback] I Posted a custom time probe here http://forums.lavausergroup.org/index.php?showtopic=740&hl= Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.