how i can convert copmlex int16 to int16 in matlab for Software Defined Radio source HackRF One?

5 次查看(过去 30 天)
Hi, i know matlab doesn't support officially hackrf one, so i installed a unofficial library for hackrfone that is on github simulink-hackrf you can see image in this below:
so it output is complex int8, for rtl-sdr is int8, fm example rtl-sdr doesn't work for hackrf one because it need int8,my question is how i can convert complex to int8 real time with out any errors??? can any idea, thanks in advance best regards stackprogramer
  2 个评论
stack programer
stack programer 2017-5-4
编辑:stack programer 2017-5-4
when i used convert block in simulink it returns error.....
0:12 AM Elapsed: 0.939 sec
Data type of the input port 1 is unknown for MATLAB System block "sdrrFMReceiverSimulinkExampleHackRF/FM Broadcast Demodulator Baseband". This can happen when the input port is in a loop, is driven by a Ground block or a source with unspecified data type, or the input port has unconnected signal lines. Consider adding Signal Specification block with specified data type in front of the input port.
Component: Simulink | Category: Block error
stack programer
stack programer 2017-5-4
when i used complex block it returns error
Output port 2 of 'sdrrFMReceiverSimulinkExampleHackRF/Complex to Real-Imag' is not connected.
Component: Simulink | Category: Block warning
Error in 'sdrrFMReceiverSimulinkExampleHackRF/Audio Device
Writer': The block input must be a uint8, int16, int32, or floating-point data type.
Component: Simulink | Category: Block error
An error occurred while propagating data type 'int8' from 'sdrrFMReceiverSimulinkExampleHackRF/FM Broadcast Demodulator Baseband', output port 1.

请先登录,再进行评论。

采纳的回答

stack programer
stack programer 2017-5-23
编辑:stack programer 2017-5-23
Hi every thing is solved in https://github.com/kit-cel/simulink-hackrf/issues/7
best regards stackprogramer

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 RF Blockset Models for Transceivers 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by