Hi,
I am attempting to transmit a chirp signal via Simulink. I am using the AD-FMCOMMS5 with the ZC702. I can run the FMCOMMS5 sine wave transmit example with no issues. When I attempt to put my chirp signal into the Data in pins, I get an error saying :
"Unable to perform assignment because the left and right sides have a different number of elements"
I am not sure why this is the case. I know you can upload a chirp signal with IIOscope, and I would like to do something similar here and record data. For the IIOscope the problem is that saving data is only for one frame and I want a continuous stream. Any suggestions would be welcomed. My guess is that the chirp block in Simulink is not discrete, but I am not sure. I am able of transmitting other basic signals.
Thanks
Input and output sizes can be different, but generally the receive buffer is much larger to capture the time delay in the signal.
Here is also an example of how to use FMComms5 in MATLAB itself: https…
If you follow the error it occurs when filling the buffer. From the error itself one of the vectors must be a different size, the buffer for hardware or the input data vector passed to the Simulink block. Does your buffer size setting equal your input vector size?
-Travis
buffer size being the input sample size in the ad9361?
in_ch_size is the TX buffer size in samples.
okay thank you. That works. I do not have the equipment with me to ensure it is properly transmitting but I'm assuming it is (getting noise because nothing is connected). So if I were to begin collecting received chirp data from the radar I could just place a "To Workspace" block on the data out pins in Simulink. Would I have to change the output channel data size?
Here is also an example of how to use FMComms5 in MATLAB itself: https://gist.github.com/tfcollins/393278ead85126811d800567829118c4