Jump to content

deterinig time taken by Labview to execute routine


Recommended Posts

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.

Link to comment
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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.