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:
Quote from Igore on 30/08/2022, 14:28Hello 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.
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.

Quote from AdminTC on 30/08/2022, 17:02If 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/
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/

Quote from dhwlyinliang on 26/11/2022, 03:15Hi, where can I download the Programming handbook for V6? All SCPI commands for V6 functions.
Hi, where can I download the Programming handbook for V6? All SCPI commands for V6 functions.

Quote from mm_dev on 28/11/2022, 09:09Check the documentation in the associated forum thread: https://v6-forum.aaronia.de/forum/topic/hislip-scpi-server-block/
Check the documentation in the associated forum thread: https://v6-forum.aaronia.de/forum/topic/hislip-scpi-server-block/