How to use the SPECTRAN V6 via Matlab
Quote from abhijithbg on 02/06/2022, 07:13Hi,
Any update on this?
Thanks
Abhijith
Hi,
Any update on this?
Thanks
Abhijith
Quote from mm_dev on 02/06/2022, 10:31I 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.
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.
Quote from DevDW on 10/06/2022, 18:21Hello 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.
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: