plutosdr get chan error
조회 수: 22 (최근 30일)
이전 댓글 표시
hello I am tring to use matlab with ad9363+ zynq ,the firmware is plutosdr v0.38 built by myself,the iio version is v0.25
the matlab code is
warning('off','plutoradio:sysobj:FirmwareIncompatible');
%%ad9361配置
tx = sdrtx('AD936x',...
'IPAddress','192.168.5.23',...
'ChannelMapping',1)
radioSettings = info(tx)
tx.CenterFrequency = 2.415e9;
tx.BasebandSampleRate = 2e6;
tx.Gain = -5;
%% 信号波形设置
sw = dsp.SineWave;
sw.Amplitude = 0.5;
sw.Frequency = 100e3;
sw.ComplexOutput = true;
sw.SampleRate = tx.BasebandSampleRate;
sw.SamplesPerFrame = 1000;
txWaveform = sw();
%%发送信号
transmitRepeat(tx,txWaveform)
release(tx);
the error is
包含以下字段的 struct:
Status: 'Unable to setup device'
MsgDetails: 'Channel: altvoltage4 not found.'
11 tx.CenterFrequency = 2.415e9;
## Establishing connection to hardware. This process can take several seconds.
错误使用 matlabshared.libiio.base/cstatusid
Channel: altvoltage4 not found.
出错 matlabshared.libiio.base/getChan
出错 comm.libiio.AD9361.tx_control/setupDDSChannel
出错 comm.libiio.AD9361.tx_control/SetupDDS
出错 comm.libiio.AD9361.tx_control/sdrDevPreInit
出错 comm.libiio.AD9361.tx/sdrDevPreInit
出错 comm.zynqradioshared.tx/sdrDevPreInit
出错 comm.libiio.AD9361.base_control/configureChanBuffers
出错 comm.libiio.AD9361.base/configureChanBuffers
出错 matlabshared.libiio.base/setupImpl
出错 comm.libiio.AD9361.base_control/setupImpl
出错 comm.libiio.AD9361.base/setupImpl
出错 comm.libiio.AD9361.tx_control/setupImpl
出错 comm.libiio.AD9361.tx/setupImpl
出错 comm.zynqradioshared.tx/setupImpl
出错 comm.libiio.AD9361.tx/transmitRepeat
出错 Untitled (第 28 行)
transmitRepeat(tx,txWaveform)
but I think the firmware is ok because I test it on GNU Radio and ADI IIO Osi they both work.
when I swith the sdrtx('AD936x' to sdrtx('pluto',I get the error
The radio with ID usb:0 is already owned by a block,
댓글 수: 0
답변 (1개)
Umar
2024년 6월 30일
Hi Zheng,
It sounds like the error message 'Channel: altvoltage4 not found' suggests a problem with the channel configuration. This issue might be due to a mismatch between the channel names expected by Matlab and the actual channels available on the hardware.
To resolve this, ensure that the channel names in your Matlab code match the channels available on the AD9363+ Zynq hardware. Double-check the channel mappings and configurations in your code. Additionally, verify that the hardware is correctly initialized and that the connection settings are accurate.
If switching from 'AD936x' to 'pluto' results in the error 'The radio with ID usb:0 is already owned by a block,' it indicates that the radio device is already in use by another process or block. Make sure to release the device properly before attempting to reconfigure or reconnect it in Matlab.
By addressing these channel mapping and device ownership issues, you should be able to establish a successful connection between Matlab and the AD9363+ Zynq hardware.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!