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

2 visualizaciones (últimos 30 días)
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 comentarios
stack programer
stack programer el 4 de Mayo de 2017
Editada: stack programer el 4 de Mayo de 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 el 4 de Mayo de 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.

Iniciar sesión para comentar.

Respuesta aceptada

stack programer
stack programer el 23 de Mayo de 2017
Editada: stack programer el 23 de Mayo de 2017
Hi every thing is solved in https://github.com/kit-cel/simulink-hackrf/issues/7
best regards stackprogramer

Más respuestas (0)

Categorías

Más información sobre RF Blockset Models for Transceivers en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by