03-07-2013 07:12 PM - edited 03-07-2013 07:18 PM
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
Solved! Go to Solution.
03-07-2013 07:27 PM
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
03-07-2013 07:45 PM - edited 03-07-2013 07:53 PM
03-07-2013 08:46 PM - edited 03-07-2013 08:58 PM
@JKSH wrote:
- Convert your Arrays into Matrices (use the Array-To-Matrix VI)
- Do matrix multiplication
- 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
03-07-2013 08:57 PM - edited 03-07-2013 09:06 PM
@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
03-07-2013 09:20 PM
@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
03-07-2013 10:45 PM
@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.
03-08-2013 06:46 AM
@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
and this my implemention
but also error appear
can some help??
03-08-2013 12:48 PM
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?
03-08-2013 01:08 PM
@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???