LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Log Alarm Only Once

Solved!
Go to solution

I think this is one of the most interesting topics I've bumped into here!

 

My results with using numerics are very similar.  However, if I decrease the array size by a factor of 10 to 1000000 and change the input to a string constant "String Constant" and also replace the random number with "String Constant" then the insert/delete and delete/insert methods are *MUCH* faster.  Unfortanately I can't post a picture from here at work.

0 Kudos
Message 11 of 14
(653 Views)

If you replace the random number with a string constant, the entire code might get folded and the benchmark is meaningless.

 

Please attach your VI.

0 Kudos
Message 12 of 14
(647 Views)

Ah! In fact I would hope that it would get folded!

 

So I changed it to convert the random number to a string and ran it again - with the same results as I got when I used a string constant.  Doesn't look any folding is taking place.

 

 

0 Kudos
Message 13 of 14
(635 Views)

Interesting. 😄

 

That's why it helps to make a comfortable benchmarking app. Yes, there are some curious differences, but I don't have time to look into it at the moment.

 

Other interersting tests:

 

Make the 1D array U8, U16, U32, or U64.

Make it a 2D numeric array, replacing rows.

Make it a 2D string array, replacing entire rows.

etc.

 

It would also be interesting to compare it under an older labview version....

0 Kudos
Message 14 of 14
(626 Views)