LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiplying Arrays Question

Solved!
Go to solution

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.

Capture2.PNG

Capture.PNG

0 Kudos
Message 1 of 7
(4,657 Views)
Solution
Accepted by Edrec12

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

Message 2 of 7
(4,630 Views)

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

0 Kudos
Message 3 of 7
(4,619 Views)

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.

0 Kudos
Message 4 of 7
(4,600 Views)

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

Безымянный.jpg

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.

 

0 Kudos
Message 5 of 7
(4,395 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(4,382 Views)

Thank you for your explanations.

0 Kudos
Message 7 of 7
(4,364 Views)