LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone know how to fill an array faster?

Solved!
Go to solution

@altenbach wrote:

@Jeff Bohrer wrote:

The while loop can be removed to speed it up even more (no optomizer to remove it from the compiled code in 8.2)



I already uploaded a corrected version. (Forgot about the in place element structure missing from 8.2)


Didn't the array primatives have native inplaceness back that far?  I forget when it was introduced.Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 17
(843 Views)

Yes, they both operate in place. the "in place element structure" is just nicer here because it avoids the extra "index array".

Message 12 of 17
(840 Views)

Hey thank you both so much! The help is much appreciated, and I apologize for my "noobness". I've only been doing labview for 2 months =]

Message 13 of 17
(815 Views)

Glad to help- I once was new at LabVIEW myself.  there's no need to appologize


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 17
(807 Views)

I've been doing some troubleshooting of the program, and it seems that when the light intensity is increased to near saturation values, the histogram does not output, then when the average light intensity is about 30,000, the histogram outputs again. (The attachment contains data with higher saturation values)

Download All
0 Kudos
Message 15 of 17
(805 Views)

add a "To I32" before the "+1" for the "initialize array" leading to the shift register. That'll do it. 😄

0 Kudos
Message 16 of 17
(793 Views)

Yea I figured that out like 10 minutes after I posted that. haha. I realized 2^16 = 65536. *face palms*

0 Kudos
Message 17 of 17
(782 Views)