LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Object Speed Specs

I am looking for a table of...how long does LabView take to process an "Add" "Multiply" "If" etc.

I expect that the table results would be given in clock cycles. Info on converting clock cycles to actual time [in micro-seconds] would help.
0 Kudos
Message 1 of 3
(2,566 Views)
I doubt you can get such a table - it varies based on whether you have a G3 or G4 or G5 processor, what else is going on in the program, what else is going on in the computer.

I have a Timing Template Vi that I use for such things. I found out that a given operation took 6 microseconds when done by graphical things (add, multiply, shift, etc.), and 15 uSec when done via the formula node.

I have attached it. It's a TEMPLATE, so you should never save it as that same name.

It accounts for loop timing and subtracts that out from the overall.

I just timed an ADD operation at 4 nanoseconds if you discard the result, 14.9 nanoseconds if you put the result into a shift reg.

BE AWARE OF WHAT YOU'RE MEASURING.

Some labVIEW functions work mu
ch faster if the output is not connected - the compiler knows that you're not using this output, so it "helps" by not computing it.

That's usually useful, but not if you're trying to get an honest measurement of timing.

Wire the output into a shift register (inframe 4) if nothing else - that's about the minimum impact thing.

Have fun!
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 3
(2,566 Views)


BE AWARE OF WHAT YOU'RE MEASURING.


I just took my own advice.
I re-measured the ADD operation by putting 10 ADDS into the frame 4 loop instead of 1
I get a loop time of 39.4 nanoseconds,meaning an add time of 3.94 nSec.
I guess the original estimate (discarding the output) was better.

My guess is that for the primitive functions like Add, Multiply, etc., it's faster to just do it than to decide if you need to or not.

But I have seen certain functions perform WAY faster if the output is not connected.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 3
(2,566 Views)