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

0 Members and 1 Guest are viewing this topic.

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 56
  • 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.
 
The following users thanked this post: Peter Gamma

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • 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

  • Regular Contributor
  • *
  • Posts: 240
  • 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

  • Regular Contributor
  • *
  • Posts: 240
  • 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

  • Regular Contributor
  • *
  • Posts: 240
  • 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

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

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 56
  • Country: ru
Re: Owon AG 1012 AWG & Matlab
« Reply #6 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

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #7 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

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #8 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

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #9 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



« Last Edit: December 16, 2019, 11:05:03 pm by Peter Gamma »
 

Offline Sparker

  • Regular Contributor
  • *
  • Posts: 56
  • Country: ru
Re: Owon AG 1012 AWG & Matlab
« Reply #10 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

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #11 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 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.
« Last Edit: December 16, 2019, 11:06:39 pm by Peter Gamma »
 
The following users thanked this post: Sparker

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #12 on: November 13, 2019, 11:02:27 am »
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/#msg2764874

Bitalino:

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.
« Last Edit: April 15, 2020, 05:10:48 pm by Peter Gamma »
 
The following users thanked this post: Sparker

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #13 on: November 13, 2019, 05:11:36 pm »
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/
« Last Edit: December 12, 2019, 02:28:41 pm by Peter Gamma »
 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #14 on: December 27, 2019, 03:40:32 pm »
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.
 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #15 on: April 15, 2020, 05:14:38 pm »
 

Online tv84

  • Super Contributor
  • ***
  • Posts: 1444
  • Country: pt
Re: Owon AG 1012 AWG & Matlab
« Reply #16 on: April 15, 2020, 05:24:58 pm »
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.
 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #17 on: April 15, 2020, 06:38:54 pm »
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.
 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #18 on: April 16, 2020, 05:40:23 pm »
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.

 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #19 on: April 16, 2020, 10:54:30 pm »
OWON VDS1022 is currently around 100 USD

https://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 :).
 

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #20 on: April 16, 2020, 11:02:53 pm »
Also the more expensive  VDS Series PC Oscilloscope has only 8 bit resolution:

https://www.owon.com.hk/products_owon_vds_series_pc_oscilloscope

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

Offline Peter Gamma

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ch
Re: Owon AG 1012 AWG & Matlab
« Reply #21 on: April 17, 2020, 04:08:59 am »
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).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf