Owon AG 1012 AWG & Matlab - Page 1
Forum section: electronics / testgear

author: Sparker
author_rank: Regular Contributor
timestamp: October 05, 2018, 03:16:42 pm
content: Hi!Has anyone been able to connct the Owon's AG 1012 generator to Matlab?It does have a USB interface and Windows identifies it as a 'USB Device', not as some virtual COM port. I can send SCPI commands to it through Owon's own software but there is no information regarding how to interface it with Matlab. Also Matlab's Instrument Control toolbox doesn't seem to identify it.I guess that it just can't be interfaced with Matlab, which is a total shame, however I'll be grateful for any info.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 01, 2019, 10:22:59 am
content: I have a OWON VDS1022I with the same problem. Owon's own software has the option to sendSCPI commands. And Owon's own software has "server read" and "server write" options.Is it possible to stream from a OWON VDS1022I to Matlab?

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 02, 2019, 11:47:31 am
content: Yes, it possible to stream data from a OWON VDS1022I to Matlab, and probably also from other Owon oscilloscopes. MATLAB supports the programming of instruments using SCPI commands through Instrument Control Toolbox:https://ch.mathworks.com/de/products/instrument/supported/scpi.htmlIt would be nice to have Matlab support for the OWON VDS1022I. Does anyone have expirience with programming SCPI interfaces? And does someone now how to use Owons own software for setting up a SCPI connection to other programs?

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 03, 2019, 04:37:56 am
content: Here are examples to set up a communication session with Rigol Instruments using TCP/IP and SCPI commands.https://ch.mathworks.com/matlabcentral/answers/301658-i-would-like-an-example-of-scpi-over-ethernet-to-rigol-instruments-using-the-instrument-control-toolCan they be modified for Owon?

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 03, 2019, 07:12:03 am
content: Yes, they can be modified for Owon oscilloscopes, by getting in touch with the Owon tech support!

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 04, 2019, 02:42:33 am
content: See also here:https://www.eevblog.com/forum/testgear/owon-vds1022i-quick-teardown-(versus-the-hantek-6022be)/300/

author: Sparker
author_rank: Regular Contributor
timestamp: June 10, 2019, 07:47:03 pm
content: Hi Peter!I see you are also frustrated with an Owon device of yours.> Yes, they can be modified for Owon oscilloscopes, by getting in touch with the Owon tech supportDo you mean that you have contacted them?Anyway, I guess I won't buy Owon any more. The OWON developers would have to be either very dumb or very evil to restrict the SCPI interface to only their specific software instead of exposing the device as a typical COM port :/ so that anything can communicate to it.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 18, 2019, 11:12:10 am
content: I did contact Owon support for Matlab support for Owon oscilloscopes, but there was no response.Did you see the examples posted in the Matlab community to solve this problem, and did you try these to use Matlab with your Owon oscilloscope?https://ch.mathworks.com/matlabcentral/answers/301658-i-would-like-an-example-of-scpi-over-ethernet-to-rigol-instruments-using-the-instrument-control-toolI did not try it yet, but this is probably currently the only way to solve this problem.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 19, 2019, 12:31:08 am
content: Quote from: Sparker on June 10, 2019, 07:47:03 pmThe SCPI interface is not limited to Owons specific software. SCPI is a standard which is device and software independent. I watched a view youtube videos about SCPI. All of these videos had only a limited number of viewers. I guess SCPI is not very often used to this date.Still I think it should be possible to use SCPI to connect Owon oscilloscopes to Matlab. It's a step by step procedure. And maybe we can solve this together in the community.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 19, 2019, 03:11:33 pm
content: Here is the manual for the SCPI protocol for VDS Series oscilloscopes:http://files.owon.com.cn//software/Application/VDS_Series_SCPI_Protocol.zip

author: Sparker
author_rank: Regular Contributor
timestamp: June 21, 2019, 08:11:42 pm
content: I don't recall all the things I tried in Matlab to connect an OWON generator to it as it was a year ago.I remember that I messed with it for a while with no success, while I had a Rigol oscilloscope which got recognized by Matlab without such an amount of effort.I will try to have a look again at this OWON generator and if it can be connected to Matlab or anything at all. Maybe the OWON program has some command line interface into which we can pipe new values?

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: June 21, 2019, 09:20:38 pm
content: 1. Owons user interface has a home button, a litte house symbol at the right sight below. When I press it, the «utility page» opens.2. at the right sight below in the utility page,there is a button called SCPI console.3. When I press it, a window appears with the options:a. server readb. server writec. scrolld. cleare. port 5188f. and an o.k. buttonIn the Matlab community at the site:https://ch.mathworks.com/matlabcentral/answers/301658-i-would-like-an-example-of-scpi-over-ethernet-to-rigol-instruments-using-the-instrument-control-toolIn the Answer by Vinod on 8 Sep 2016, there is a simple example from Vinod which could be tested:# Initialize scope. The port number may be 5556 on certain scopes.scopeInterface = tcpip('192.168.1.1',5555);replace the port number 5556 in Vinods example by the number 5188 from the Owon user interface an try if Vinods code works in your Matlab edition, and wheater you can connect your Owon oscilloscope to Matlab.I have a Vds1022I from Aliexpress:https://de.aliexpress.com/item/32871430008.html?spm=a2g0x.search0104.3.3.2efe25feUra1rM&ws_ab_test=searchweb0_0%2Csearchweb201602_7_10065_10068_319_10059_10884_317_10887_10696_321_322_10084_453_10083_454_10103_10618_10307_537_536_10134%2Csearchweb201603_52%2CppcSwitch_0&algo_expid=7846d5a8-3baa-4203-95b4-c0958c56945a-0&algo_pvid=7846d5a8-3baa-4203-95b4-c0958c56945awhich is a light-weight and good quality usb oscilloscope and it s low-cost:https://www.eevblog.com/forum/testgear/owon-vds1022i-quick-teardown-(versus-the-hantek-6022be)/I ve read of other people here in the EEVblog with Rigol oscilloscopes collecting together SCPI commands to control the Rigol oscilloscopes from Matlab.Once a connection is established from the Owon oscilloscope to Matlab by SCPI commands, the Owon oscilloscopes could be come nice oscilloscopes to use in Matlab by building up a decent user interface in Matlab with SCPI commands, since the collection of SCPI commands in the manual of the Vds series is huge.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: November 13, 2019, 11:02:27 am
content: Low-cost devices for ecg sensors and respiration sensors could be second-hand Adinsturments channel recorders:https://www.eevblog.com/forum/testgear/sensor-data-from-an-adinstruments-powerlab-410-channel-recorder-without-driver/msg2764874/#msg2764874Bitalino:https://bitalino.com/en/or usb-sound card devices:https://www.swharden.com/wp/2019-03-15-sound-card-ecg-with-ad8232/The Owon SCPI interface to Matlab or Python is an attractive and easy option for real-time signals. No programming, no soldering, 2 channels are enough for many purposes, the multi-channel setup of Bitalino is not necessary for anybody. But the Owon osciilloscope needs testing and writing scripts. I did not find any working examples for Owon.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: November 13, 2019, 05:11:36 pm
content: Also other OWON users had problems to stream data from an OWON oscilloscope to a PC:http://www.rei-labs.net/fetching-data-from-owon-sds7102v-to-pc/

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: December 27, 2019, 03:40:32 pm
content: I contacted once more the OWON support, and sent them the link of this thread and described the problem of OWON oscilloscopes with SCPI, but there was no response from the OWON support.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 15, 2020, 05:14:38 pm
content: I described the problems with Owon oscilloscopes also in the Matlab community:https://www.mathworks.com/matlabcentral/answers/518160-is-there-an-example-of-an-owon-scpi-matlab-script-which-connects-to-owon-oscilloscopes?s_tid=prof_contriblnk

author: tv84
author_rank: Super Contributor
timestamp: April 15, 2020, 05:24:58 pm
content: I find it strange that even if they wanted to allow only their app to send commands , that they will be able to restrict it to that.I think that any other app could "emulate" the sending of those commands. We would have to just sniff the traffic. More trouble but not an impossible mission.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 15, 2020, 06:38:54 pm
content: I think the problem is the Owon documentation. Owon has a Windows software, which has an option to send and receive SCPI. But you have to find this option first. It is not documented in the Manual. I described it above, how to find it.I think it should work now. But I did not test it. And it is also necessary to write SCPI scripts for Matlab or Python. There is a manual there. But there a no examples included.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 16, 2020, 05:40:23 pm
content: Since I still don t have any real-time software for my 3 Adinstruments channel recorders, I reserve my 2 Adinstruments respiration sensors and 1 Adinstruments ECG sensor to use with my with my Owon VDS-1022 and Python Easy SCPI:https://pypi.org/project/easy-scpi/if it works.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 16, 2020, 10:54:30 pm
content: OWON VDS1022 is currently around 100 USDhttps://de.aliexpress.com/item/32869065845.html?spm=a2g0o.productlist.0.0.7acd1600nux5S1&algo_pvid=54329ed9-b1d1-4c01-80fb-1d4cbf370bce&algo_expid=54329ed9-b1d1-4c01-80fb-1d4cbf370bce-0&btsid=0ab6fa7b15870771754005496e40a0&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_it has 8 bit resulation. Adinstruments channel 16 bit resulution. An Adinstruments equipement is estimated around 2'000 USD. Is it worth 20 x the price? You can find almost any analysis tools in Python, and can connect to it through SCPI.Buy an OWON VDS1022 and build a SCPI toolbox in Python.

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 16, 2020, 11:02:53 pm
content: Also the more expensive VDS Series PC Oscilloscope has only 8 bit resolution:https://www.owon.com.hk/products_owon_vds_series_pc_oscilloscopeBut the Vertical Sensitivity is 2mV/div～5V/div instead of 5mV/div～5V/div with the more expensive ones.Aren t there any low-cost devices with 16 bit resolution?

author: Peter Gamma
author_rank: Frequent Contributor
timestamp: April 17, 2020, 04:08:59 am
content: Dr. Scott Hardens Sound card ecg device is better in that respect:https://www.swharden.com/wp/2019-03-15-sound-card-ecg-with-ad8232/16 bit sampling rate is standard with sound cards. But you can have 24 bit or 32 usb sound cards (as I have already).