Forum
Please or Register to create posts and topics.

How to use the SPECTRAN V6 via Matlab

PreviousPage 5 of 5

Hi,

Any update on this?

Thanks

Abhijith

I had asked one of our devs to look into this. I suspect it is an issue in the parser looking at the preview in the FileReader block, but as I'm not really sure how this should be processed in the first place really need to wait for a definitive statement.

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.

Uploaded files:
abhijithbg has reacted to this post.
abhijithbg

Hello all!

Using HTTP for lab engeneer, I think, it's not good, because everywhere and everyone use SCPI-command and also matlab has many examples with basic SCPI-commands.

Many lab engeneer already has many scripts for working with lab instrument(R&S, Rigol, Keysight etc.), and with SPECTRAN V6, they must write a lot of new fucntion to work with it by HTTP.

And for this I have one question: SPECTRAN V6 - it's not lab product? It's similiar to RedPitay (but RedPitaya already has support SCPI-commands).

Sorry for everyone, it's my opinion only.

If you want to use the old SCPI commands/driver simply use our HISLIP-SCPI block: https://v6-forum.aaronia.de/forum/topic/hislip-scpi-server-block/

PreviousPage 5 of 5