Author Topic: Owon AG 1012 AWG & Matlab  (Read 750 times)

0 Members and 1 Guest are viewing this topic.

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ru
Owon AG 1012 AWG & Matlab
« on: October 05, 2018, 03:16:42 pm »
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.
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #1 on: June 01, 2019, 10:22:59 am »
I have a OWON VDS1022I with the same problem. Owon's own software has the option to send
SCPI commands. And Owon's own software has "server read" and "server write" options.

Is it possible to stream from a OWON VDS1022I to Matlab?
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #2 on: June 02, 2019, 11:47:31 am »
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.html

It 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?
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #3 on: June 03, 2019, 04:37:56 am »
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-tool

Can they be modified for Owon?
« Last Edit: June 03, 2019, 04:40:26 am by Peter Gamma »
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #4 on: June 03, 2019, 07:12:03 am »
Yes, they can be modified for Owon oscilloscopes, by getting in touch with the Owon tech support >:(!

 
« Last Edit: June 03, 2019, 07:16:39 am by Peter Gamma »
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
« Last Edit: June 04, 2019, 02:49:59 am by Peter Gamma »
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
 

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ru
Re: Owon AG 1012 AWG & Matlab
« Reply #7 on: June 10, 2019, 07:47:03 pm »
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 support
Do 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  :palm: .
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #8 on: June 18, 2019, 11:12:10 am »
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-tool

I did not try it yet, but this is probably currently the only way to solve this problem.
« Last Edit: June 18, 2019, 06:48:12 pm by Peter Gamma »
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #9 on: June 19, 2019, 12:31:08 am »
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

The 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.
« Last Edit: June 19, 2019, 12:33:09 am by Peter Gamma »
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #10 on: June 19, 2019, 03:11:33 pm »
Here is the manual for the SCPI protocol for VDS Series oscilloscopes:

http://files.owon.com.cn//software/Application/VDS_Series_SCPI_Protocol.zip


I miss an expample how to connect an Owon oscilloscope to Matlab via the SCPI protocol.
 

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ru
Re: Owon AG 1012 AWG & Matlab
« Reply #11 on: June 21, 2019, 08:11:42 pm »
I don't recall all the things I tried in Matlab to connect an OWON generator to it as it was a year ago  :-/O .
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?
 

Offline Peter Gamma

  • Contributor
  • Posts: 30
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #12 on: June 21, 2019, 09:20:38 pm »
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 read
   b. server write
   c. scroll
   d. clear
   e. port 5188
   f. and an o.k. button

In 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-tool

In 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-c0958c56945a

which 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 bought the Vds1022I to test weather I can connect a sensor to it and stream data to Matlab. Unfortunately, my sensor has a Din 8 connector and no BNC connectors, which the Vds1022I has. So I ordered a  Din 8 connector from ebay which will arive at me next week.

Then I have to grab out the Vds1022I , the sensor and the PC with a copy of Matlab to see, wheater I can connect it to Matlab with this method or not.

I 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.
« Last Edit: June 23, 2019, 04:23:11 am by Peter Gamma »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf