Author Topic: RIGOL DS1000E-Series RS232 Remote Logger APP  (Read 6458 times)

0 Members and 1 Guest are viewing this topic.

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
RIGOL DS1000E-Series RS232 Remote Logger APP
« on: January 14, 2011, 04:04:16 am »
Hi all,

now being another happy owner of the DS1052E i just had the idea of using the device as an remote logger for several things. (i.e. DC battery charge)

So i decided to code a little app. The app is at very alpha stage just to check how things work via RS232. In the end it should log the input to a csv-file to work with. :)

Preview:


It works at COM 8,N,1 9600 with a straight RS232-connection-cable.

At the moment you can aquire single-shot or in automode. The oscilloscope is not locked at the most of the time, so you may change settings if you want.

Download:
http://www.closed-society.com/download/ds1000/

To introduce myself, im from Germany, 31 years old, studiing microsystemelectronics.

Would be nice to get some feedback or ideas.

Regards, doc

Edit: Code C#, so .NET3.5 is required to run.
« Last Edit: January 14, 2011, 08:03:43 pm by doctormord »
#fine_arts & #electronics  - www.360customs.de
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9201
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #1 on: January 14, 2011, 04:06:00 am »
Why doesn't it have a preview of the waveform?
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #2 on: January 14, 2011, 04:15:11 am »
Because previewing the waveform via RS232 is not implemented by RIGOL. The tool is not intended to be a new Ultrascope. It's mainly for measuring DC, Temp etc.  ;D

#fine_arts & #electronics  - www.360customs.de
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11708
  • Country: my
  • reassessing directives...
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #3 on: January 14, 2011, 04:18:33 am »
why dont use usb connection?
why should have redundant eng. decimal, Vrms shown already?
can rigol be used/designed for a 24/7 logging operation?
« Last Edit: January 14, 2011, 04:20:27 am by shafri »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #4 on: January 14, 2011, 04:21:48 am »
Well, actually i don't know how to use the dll's Rigol supplied in SharpDevelop C#.

The redundant display is actually the debug-box and the panel-meter. I just use the box for status/error/timeouts. If you switch the measurement the panel-meter will also switch.

Edit:
I quickly read the stuff about NI-VISA connection, the commands are the same like with RS232. As for the 24/7-operation, i don't see any reason why it should not work. I assume that Rigol-devices are made for 24/7-operation. :) The app just read out the the registers, so nothing harmful? :) I just had the idea, because UltraScope does not provide a feature like this. And as long as i don't own a DMM with USB/RS232-connection this would be my option to do so.
« Last Edit: January 14, 2011, 04:45:00 am by doctormord »
#fine_arts & #electronics  - www.360customs.de
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9201
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #5 on: January 14, 2011, 06:00:16 am »
Because previewing the waveform via RS232 is not implemented by RIGOL. The tool is not intended to be a new Ultrascope. It's mainly for measuring DC, Temp etc.  ;D
Isn't that what a multimeter is for?
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 835
  • Country: au
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #6 on: January 14, 2011, 06:43:32 am »
i can see this app being a good thing.
The scope can measure several params from the input signal, a DMM cant do this.
This app will log these readings over time, with the readings being stored in a csv file, it is up to the user to manipulate and display the data.

I like this idea, it fills a niche in the Rigol Software, uses a non propitiatory file format and is free.
Testing one two three...
 

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #7 on: January 14, 2011, 08:02:28 pm »
Okay, i got it up and running to my demands.



Download:
http://www.closed-society.com/download/ds1000/RIGOL_RS232_v2.zip

Everything should be self-explaining.

Connect to scope, setup everything on scope. Choose a filename for the session and "start".

Possible logging-settings:

Timestamp: milliseconds, seconds, count
Value: converted from RAW, RAW
Decimal: Dot, Comma
Timebase: set in ms (<50ms is not reliable)
Value_to_log: Vpp, Vmin, Vmax, Vavg, Vrms, Vamp, Frequency, Periodtime, Dutycycle

It then creatives several files.

1x header for the fileset (i.e. "measure.txt") and a new file within this set every time you cycle "start/stop".

i.e.
measure_001.csv
measure_002.csv
etc.

It's now also possible to trigger a hardcopy from screen to save on a connected USB-device.

Regards, doc
« Last Edit: January 14, 2011, 11:01:25 pm by doctormord »
#fine_arts & #electronics  - www.360customs.de
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11708
  • Country: my
  • reassessing directives...
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #8 on: January 15, 2011, 12:26:53 am »
imo. you can put or rearrange for better UI, eg: put setting (frame) on single button, when clicked, a setting window will pop out, the same to connection (disconnect,com1,9600), can put measure on menu based etc, rigol info on the lowest status (where you put the program version/date/time) to tidy up the main UI so we can concentrate on what we are dealing with, in this case i think is the Vrms value(s). just my 2 cents.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 835
  • Country: au
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #9 on: January 15, 2011, 12:31:54 am »
The only thing i would like to see is a way to set up a Trigger for the app to record values based on rules and also the ability to log several reading such as Vpp AND Frequency.
Testing one two three...
 

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #10 on: January 15, 2011, 09:25:18 am »
Cheers man,

thanks for the input. I'll keep an eye on it and work it out.  :) Two-channel logging would be also nice. For multiple-settings-logging i better should use the Run/Stop-Control on the rigol?

Regards, doc
#fine_arts & #electronics  - www.360customs.de
 

Offline doctormordTopic starter

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: RIGOL DS1000E-Series RS232 Remote Logger APP
« Reply #11 on: January 16, 2011, 09:38:58 pm »
Cheers all,

i got v0.3 up and running. So far i can't see any problems. Cycletime ist somewhat limited by the rigol, it won't sent any faster, equals what baudrate set.  :P



"Multilog" is now possible on both physical channels. "Aquiretime" depends on the values you choose, so there is a timemeter with color-indicator to show you the bandwidth. Log-output to debugwindow is switchable.

Download:
https://dl.dropbox.com/u/5641160/RIGOL_DS1000-Series_Remote_Logger_-_v0.3.zip

Regards, doc.

Edit:

v0.3.1: Experimental RUN/STOP mode, rather slow.

Download:
https://dl.dropbox.com/u/5641160/RIGOL_DS1000-Series_Remote_Logger_-_v0.3.1.zip

Edit: Updated links!
« Last Edit: October 06, 2014, 01:19:06 pm by doctormord »
#fine_arts & #electronics  - www.360customs.de
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf