LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to check the total execution time in performing task

hi

   i just want to know that how to check the total time taken to perform a task in labview .For example if i am using a while loop and inside it i am performing any addition task then how much time it will take to execute a loop single time

0 Kudos
Message 1 of 8
(2,888 Views)

Hi venky,

 

get the difference of time after and before loop and divide by the number of iterations...

(And this is one of the seldom occasions to use a sequence structure!)

Message Edited by GerdW on 05-11-2010 08:11 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(2,877 Views)

hi,

  sud u help me out how to do this i didn't get this as i have to use while loop.pls its urgent

0 Kudos
Message 3 of 8
(2,874 Views)

Hi venky,

 

when I search for "measure time" here in the forum the first result I get presented is this!

 

What did you get when searching the forum?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,870 Views)
Please check the attached VI ... it may help you
0 Kudos
Message 5 of 8
(2,863 Views)

hi,

   well i will go through your suggestions .hereby i am uploading the png file of my work please go through it and help me out that how to calculate the total time execution during single cycle.

0 Kudos
Message 6 of 8
(2,844 Views)

Hi venky,

 

do the same as was suggested in thread I linked before. Your sequence structure replaces the (3rd) frame containing the "Wave play" in the other example...

 

Or to put it in general words: measure time before your sequence and after the sequence to get the difference...

 

Btw. are you sure you have to send individual bytes?

Message Edited by GerdW on 05-11-2010 01:16 PM
Best regards,
GerdW


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

hi,

      thanks i will follow what u wrote and meanwhile, yes i have to provide individual bytes and these values is to be given to microcontroller.

 

thanks

 

0 Kudos
Message 8 of 8
(2,824 Views)