RTSA Suite PRO Release v2.2

Please or Register to create posts and topics.

How to use the SPECTRAN V6 via Matlab


is this feature (http Server for MATLB) supported by the (old) Spectran V5 as well?

I noticed that I can select a http Server for Spectran V5 in RTSA-suite but with my setup it did not work.
Could be that my company PC blocks ports, that's why I ask here.

Please help me debuggin. Thanks.

The HTTP connection will work with a Spectran V5 as well. You can easily test that the HTTP connection works by accessing the URL in a browser (when using the /stream endpoint that will start a download that you can cancel, when using /sample it should display some data).

There might be some minor differences in the data format that could require changes in the Matlab code to be processed, not sure on that.

Hello again

You provided an excellent matlab example how to convert streamed raw16 data to I and Q values. How about when using float16 or float32 as a stream format ? Could you also provide example code on that also ?


As far as I can tell, it should be sufficient to replace 'int16' with 'float16' or 'float32' in the cast instruction and remove the '/header.scale' part in the lines below.

Also when using float32 also change 'size = header.samples * 4' to 'size = header.samples * 8'.


But I'm not familiar with Matlab programming, just guessing here what that example program does in detail.

Hi jhexa,

mm_dev is absolutely correct.

Have also a look at the typecast function of Matlab, by using the typecast to 'single' which should interpret the data as IEEE 32bit floating point values:

16bit floating point precision is not supported by this typecast function. Here is an article at the Mathworks blog about half precision values: