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
PreviousPage 5 of 5