LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO matrix multiplication

I need to collect data from 4 compactrio analog voltage input modules, arrange the data into a matrix, then multiply by another constant matrix. These matrices have dimensions of around 4x100. I was planning to do this all on the FPGA then transfer the resultant matrix to the controller, but FPGA does not seem to be able to handle matrices. Should I be using scan mode to collect data directly to the controller?

In this sort of situation, is there any use for the FPGA at all? Would there be an advantage to collecting the data on the FPGA then transferring it to the controller for processing?

Thanks.

0 Kudos
Message 1 of 2
(2,397 Views)

No, the Matrix datatype is not supported at the FPGA.

But with it's native paralellism you should still be very fast in simply doing the mutliplication 4 times in parallel.

 

The question if you do it at the FPGA at all or if you rather calculate it at the RT controller depends on the available space you have at the fpga and also what you want to do with the data later on.

If you simply pass it to the RT and save it or pass it to a Windows Host or do you need the results of this calculation to output it to some other modules. In the latter case it would be better to process the data at the FPGA.

 

 

Christian

0 Kudos
Message 2 of 2
(2,385 Views)