LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array multiplier to get specific size

Solved!
Go to solution

hi 

i have two array the first on is 4*2 and second one 2*1 

i need to mulipliing  them  to get 4*1

this is my vi

can any  simple modification to this vi to get the result ???

 

best regards

m.s

 

hi ?Q>

Download All
0 Kudos
Message 1 of 12
(5,418 Views)

Please tell us exactly how the output should look.  I modified your VI to have two 2D array controls which could be your inputs. I set default values which will likely create a clealry identifiable pattern in the output array.  Set the values in Out 4x2 the way you want the program to calculate for the specified inputs.  Make that value Default. Save. Post modified VI.

 

Lynn

Message 2 of 12
(5,413 Views)
  1. Convert your Arrays into Matrices (use the Array-To-Matrix VI)
  2. Do matrix multiplication
  3. Convert the resulting Matrix back into an Array (use the Matrix-To-Array VI)

 

matrixmult.png

Certified LabVIEW Developer
Message 3 of 12
(5,410 Views)

@JKSH wrote:
  1. Convert your Arrays into Matrices (use the Array-To-Matrix VI)
  2. Do matrix multiplication
  3. Convert the resulting Matrix back into an Array (use the Matrix-To-Array VI)

thank but thier is no array to matrics and matrics operation in  my labview fpga
is thier another method????
regards

 

hi ?Q>

0 Kudos
Message 4 of 12
(5,396 Views)

@johnsold wrote:

Please tell us exactly how the output should look.  I modified your VI to have two 2D array controls which could be your inputs. I set default values which will likely create a clealry identifiable pattern in the output array.  Set the values in Out 4x2 the way you want the program to calculate for the specified inputs.  Make that value Default. Save. Post modified VI.

 

Lynn


this is vi with simple vlaue

as you request

thank in advance

 

 

hhhy.jpg

hi ?Q>

0 Kudos
Message 5 of 12
(5,394 Views)

@johnsold wrote:

Please tell us exactly how the output should look.  I modified your VI to have two 2D array controls which could be your inputs. I set default values which will likely create a clealry identifiable pattern in the output array.  Set the values in Out 4x2 the way you want the program to calculate for the specified inputs.  Make that value Default. Save. Post modified VI.

 

Lynn


also i note if i use this method in labview fpga this error appear

 

eceed.jpg

hi ?Q>

0 Kudos
Message 6 of 12
(5,387 Views)

@mangood wrote:

also i note if i use this method in labview fpga this error appear


It is important to explain that you're using FPGA in your first post. You'll need to find an alternate way to do what you want, because "The FPGA Module supports only one-dimensional, fixed-size arrays." If you can explain what your inputs and outputs are without using a multi-dimensional array, perhaps we can help find a way to compute your desired result.

Message 7 of 12
(5,376 Views)

@nathand wrote:

@mangood wrote:

also i note if i use this method in labview fpga this error appear


It is important to explain that you're using FPGA in your first post. You'll need to find an alternate way to do what you want, because "The FPGA Module supports only one-dimensional, fixed-size arrays." If you can explain what your inputs and outputs are without using a multi-dimensional array, perhaps we can help find a way to compute your desired result.


thank you for this information 

i have simplfy my circuit to be this

circuit.png

 

and this my implemention 

but also error appear

can some help??

circitlab.png

hi ?Q>

0 Kudos
Message 8 of 12
(5,358 Views)

Please, try to provide lots of detailed information. What error occurs? Why are you using two separate For loops? Why not put both memory reads in the same loop along with the multiply, so that you are multiplying scalars instead of arrays?

Message 9 of 12
(5,326 Views)

@nathand wrote:

Please, try to provide lots of detailed information. What error occurs? Why are you using two separate For loops? Why not put both memory reads in the same loop along with the multiply, so that you are multiplying scalars instead of arrays?


now i know what is the problem...

the problem in labview fpga is that you can not pass array between two loop that work in parralel???

hi ?Q>

0 Kudos
Message 10 of 12
(5,318 Views)