I would load it at the time the block is instantiated, in its "make" method, and load it into instance-specific data.
On 2015-09-22 06:27, Chad R wrote:
Good day Marcus
I am using the most recent version of UHD. The problem I was encountering was due to the USB buffer not clearing before the next data being loaded. This was solved by adding a pause after running the GNURadio program. This however meant I could not run my program in "real time" so I have been looking at implementing it in the GNURadio way, I have some questions that I ask you or anyone in the mailing list could help with.
First what I am trying to implement is a Compressive Sensing(CS) algorithim. The block I am trying to create will take in a vector of length N, multiply it my a MxN matrix and output a vector of length M where M << N.
Now for the questions.
1) Am i right in saying that with the different block types, the N and M refers to ports and not data type sizes. So in my case, one input vector and one output vector, a synchronous block will be fine?
2) The MxN matrix I'm using will be loaded from a file. I however only want to load it once instead of every time the CS block receives data. This leads me to think that I shouldn't load the matrix in the block code? However where could I load it that it will be globally accessible by the block code?
Again thank you in advance for your help
|