# LabVIEW

cancel
Showing results for
Search instead for
Did you mean:

Solved!
Go to solution
Highlighted

## Multiplying Arrays Question

Hey guys I searched and searched and searched on the boards, on google, and tried youtubing but I'm having problems creating a VI. What I need to do is create two 1D arrays which need to be multiplied together and divided by 100 to create a 2D array. I tried multiplying them together through the multiplication function but it only lets me make a 1D array output. I'm having a tough time with this. Here is a picture of what I have and what I'm supposed to have. Thanks for the help guys. Please help me learn guys. Explanations would be awesome. I know I'm going to look silly but it's an honest question.

Message 1 of 7
(1,334 Views)
Solution
Accepted by topic author Edrec12
04-14-2016 10:16 PM

## Re: Multiplying Arrays Question

Wrap a FOR loop around the multiply operation and disable indexing on the "principals" input tunnel.. Make the indicator a 2D array.

LabVIEW Champion Do more with less code and in less time
Message 2 of 7
(1,307 Views)

## Re: Multiplying Arrays Question

This was amazing, can you please explain what the for loop and disabling indexing did? Thank you so much!

Message 3 of 7
(1,296 Views)

## Re: Multiplying Arrays Question

The For loop iterates over the rates. taking a single rate per iteration until it runs out of elements. For each iteration, the current rate is multiplied with all principals, forming a row of a 2D array at the output tunnel. We get one row per element in the rate array.

This is very basic stuff. You might want to start with a few tutorials.

LabVIEW Champion Do more with less code and in less time
Message 4 of 7
(1,277 Views)

## Multiplying Arrays Question

Hi to all. I have a question about arrays and other data in Labview.
My Application looks like on this picture.

Labview will be copy the big "Array" on "enter in subVI" point. And if I have many different subVIs, who getting some data from this array - it will be copyng every time. So, how can I get data from same array on different subVIs without its copy.

I think i shell use "new data value reference" function.

Message 5 of 7
(1,072 Views)

## Re: Multiplying Arrays Question

@0Forest0 wrote:
Labview will be copy the big "Array" on "enter in subVI" point.

Not necessarily.  It depends on what you do inside of the subVIs.  If you are showing the front panel of each of these subVIs, there will be a data copy for the front panel.  But LabVIEW has gotten smart enough to use the same buffer for inline operations.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 6 of 7
(1,059 Views)

## Re: Multiplying Arrays Question

Thank you for your explanations.

Message 7 of 7
(1,041 Views)