您尚未登录,请先 登录注册,以便参与发帖交流。

如何通过Matlab使用SPECTRAN V6

回复主题
2 个回复 · 1569 次浏览
#1 2021-04-09 16:48
有关如何从服务器转换JSON文本的其他信息,请参见:https://de.mathworks.com/help/compiler_sdk/mps_dev_test/mps.json.decoderesponse.html?searchHighlight=json&s_tid=srchtitle

最后,如何发送和接收HTTP消息显示在:https://de.mathworks.com/help/matlab/ref/matlab.net.http.requestmessage.send.html

有关数据结构和命令集的所有我们需要的文档,可在https://v6-forum.aaronia.de/forum/topic/rtsa-suite-pro-http-streaming/下找到

对于第一个实施测试,您可能需要使用提供I / Q和/或SPECTRA数据的I / Q信号发生器模块。

完整的Rx和Tx SPECTRAN V6远程接口的简单设置看起来像附件,包括I / Q和/或SPECTRA数据流。

请随时发布您的示例Matlab设置。




TOP
#2 2022-08-01 10:30

Q:Hi,
Any update on this?
Thanks
Abhijith



A:
我已经要求我们的开发人员调查此事。我怀疑这是解析器在查看安诺尼FileReader块中的预览时遇到的问题,但由于我不确定首先应该如何处理,因此我真的需要等待一个完整的报告。

A:
Hello Abhijith,

there are multiple issue at play here:

First, the "start streaming" method will make the file source *stop* streaming in its current MATLAB implementation, and the easiest workaround there is to just start the file source once you've opened the mission in RTSA and not call that endpoint.
You're also seeing duplicated packets because of the /sample endpoint which was used in the provided script.
I've attached an updated AaroniaHTTP.m class to this post which includes a new method "getStreamPacket". How this method can be used to stream data is demonstrated in the spectranstreaming.m. Especially when you're just streaming from a file source, you can turn down the playback speed a little to help alleviate any remaining incontinuities ... MATLAB isn't the perfect choice to implement a streaming client like that.

See the attached screenshot for an exemplary capture, which, as you can see, is perfectly clean and doesn't have discontinuities.

TOP
#3 2022-12-07 16:32

附件是使用安诺尼实时频谱仪软件RTSA Suite PRO HTTP Server功能模块接口的简单Matlab示例:
Matlab脚本要求RTSA Suite PRO实时频谱分析仪软件提供IQ数据并绘制频谱。
当RTSA Suite PRO软件的mission运行到连接IQ Signal Generator功能模块的HTTP Server时,Control Sequencer模块用于在Mission加载后自动启动IQ Signal Generator功能。
Matlab脚本非常简单,代码如下:
---------------------------------------------------------------------------------------
import matlab.net.*
import matlab.net.http.*

fftsize = 1024*4;
address = 'http://localhost:54664/';

r = RequestMessage;

resp = send(r,URI(append(address , 'sample')));
disp( resp.Body.Data );

I = resp.Body.Data.samples(1:2ftsize);
Q = resp.Body.Data.samples(2:2ftsize);
IQData = I+1i*Q;

y = fftshift( fft( hanning(length(IQData)).*IQData, fftsize ) ) ;

y = abs(y/fftsize).^2;
y = y/50;
y = 10*log10( y / 0.001 );

x = linspace(resp.Body.Data.startFrequency, ...
resp.Body.Data.endFrequency, fftsize);

figure
plot(x,y);
xlabel('Frequency in Hz');
ylabel('Power in dBm');
title('Spectrum of RTSA IQ Data');

status = resp.StatusCode;

---------------------------------------------------------------------------------------------------------------

RTSA-IQ-Matlab-FFT.zip (, 下载次数:0)
TOP
回复主题
快速回复