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

3 ビュー (過去 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 Center および File ExchangeRF 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