LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MathScript within For loop

It depends how you want the data arranged in the final 2D array. Can you describe it?
0 Kudos
Message 11 of 13
(435 Views)

I've been experimenting with the Reshape Array vi and have come up with a solution that I believe works.  I've attached a vi with my efforts, it may not be very pretty or the best way to achieve what I want but its getting close.

 

Regards,

 

 

0 Kudos
Message 12 of 13
(432 Views)

Why do you index the same array twice? That is an unecessary allocation of a large data structure. Simply branch the scalar wires right before the mathscript node.

 

Also, index array is resizeable, so you only need one instance at the end.

 

 

 

I am sure there are much better ways to do all this.

0 Kudos
Message 13 of 13
(425 Views)