LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split U32 to Bits

Your benchmarks lie! They don't really measure your logic operations, but mostly measure the updating of the front panel indicators. Never put indicators inside inner loops, especially if you want to benchmark code or worry about performance!
 
 
Once you disable debugging and move the indicators outside the loops, you will notice that the code executes 15-25 faster! So please benchmark what counts and not useless UI performance such as indocator updates. 🙂
 
Your VI: times=407, 378, 385 ms
Modified: times=29, 23, 15ms
 
As you can see, now code 3 is significantly superior! 🙂
 
0 Kudos
Message 11 of 12
(647 Views)
Hi altenbach,

Your right. I didn't think about it much. Thanks for proving it!

Phil
0 Kudos
Message 12 of 12
(635 Views)