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

5 views (last 30 days)
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 Comments
stack programer
stack programer on 4 May 2017
Edited: stack programer on 4 May 2017
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 on 4 May 2017
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.

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on RF Blockset Models for Transceivers in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!