Author Topic: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)  (Read 4795 times)

0 Members and 1 Guest are viewing this topic.

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2183
Hi Everyone,

I had this in another thread, but probably no one was seeing it because it started as a question.

It will create a raw file (ARB, RAF) compatible with all EXCEPT the DG1000Z series which I think has a header on it.

Use 16384 for the points (memory) setting for built in gens in the DS1000Z/DS2000 scopes.  Use 4096 for the DG1022.

It can convert a raw CSV/TXT file to the ARB/RAF including scaling the voltages using the amplitude and offset settings.  It will calculate and display the valid range of voltages.  Voltages outside of this range will rail at the highest or lowest 14 bit value.  It will automatically up/down convert a CSV file to the number of points you specify.  For example, the supplied file.csv test file only has 16 points in it.  When you convert it, it will be up converted to the value in the points field.  There is an interpolation check box that can enable interpolation between points in this case that will create a straight line between them, turning it off will create a stair type effect.  There is a small graph window that shows what the waveform looks like.

There is also a tab that generates waveforms, you can make a sine/square/ramp/pulse/noise type of waveform.  The arbitrary waveform is supposed to be one cycle, but this allows you to specify the number of cycles you want so you can multiply your generator frequency.  If you put 5 cycles then when you specify 1 MHz on the waveform generator, it will generate 5 MHz.

I found that Rigol will tick a sample with 0x8000 if that sample is editable, so the tool will now create these editable points where it can.  If you import a CSV file that has 100 points, each point will be marked editable.  If you generate a square, ramp, or pulse in the generate waveform tab, it will mark those with editable points as well.

This is version 1.01.

It will not talk to a scope directly.  It will generate an ARB or RAF file that you can copy to a USB stick and load on the signal gen.

Good luck!
« Last Edit: October 13, 2015, 08:14:56 pm by alank2 »
 
The following users thanked this post: BravoV, nickwest

Offline none

  • Contributor
  • Posts: 32
  • Country: 00
Re: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)
« Reply #1 on: October 04, 2016, 07:48:55 am »
Thanks for sharing. I haven't yet tested your software but maybe this is a good place to share the conversion program and file format info I gathered in 2014 for the DS1000Z-S: https://github.com/gnbl/csv2arb (C and Python sources as well as win32 binary). Looks like I had not completely figured out how the scope interpolates between points, though.
 

Offline nickwest

  • Newbie
  • Posts: 2
  • Country: au
Re: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)
« Reply #2 on: March 04, 2022, 01:08:23 am »
This looks like just the tool I need, but my MSO5074 doesn't like the .ARB file that I generated. Has anyone tried this tool with the MSO5074? Is there a magic number for the points (memory) setting that I should try?
 

Offline nickwest

  • Newbie
  • Posts: 2
  • Country: au
Re: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)
« Reply #3 on: March 04, 2022, 01:17:08 am »
I've tried the supplied file.csv, and I've tried reducing the points (memory) setting to 4096. Every .CSV I have tried displays OK in Arbtool, but when I try the output on the Rigol scope still says it is an "invalid file type."
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)
« Reply #4 on: March 04, 2022, 01:21:21 am »
This looks like just the tool I need, but my MSO5074 doesn't like the .ARB file that I generated. Has anyone tried this tool with the MSO5074? Is there a magic number for the points (memory) setting that I should try?

You probably need to add the header: https://www.eevblog.com/forum/blog/new-rigol-scope/msg2568447/#msg2568447
This might be relevant: https://gist.github.com/idt12312/a9d9a600a100b7d0ad121114d1d4cf5d

Also there are two gen channels, although I'd think it should accept a file with just one channel input.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline norsci

  • Newbie
  • Posts: 2
  • Country: au
    • Norris Scientific
Re: Arbtool 1.01 enclosed (CSV or multicycle generator to RIGOL ARB/RAF)
« Reply #5 on: March 07, 2022, 05:52:36 am »
I wanted to post in case it helps others looking for an answer. I have a Rigol MSO5074 oscilloscope and a Rigol DG1022Z function generator. I use ARB files regularly and have found them relatively easy to work with, once you know the file format.

If you have the oscilloscope to hand, the easiest way to get an example file is to set up the GENI or GENII output, choose ARB as the function type, then load the waveform from one of the channels (note, the channel does not need to actually hold a useful signal) and save the waveform to an ARB file. If you save the file to a USB stick then you can transfer it to a PC and inspect the file format.

The ARB file is a text file format, CSV delimited, and the header contains the following fixed content:

Code: [Select]
X-axis,WaveGen-ARB
second,volt

The following rows contain the time in seconds, plus the voltage. The file can be as long as required.

Now, there are some details/limitations that need to be acknowledged:

  • While the file defines the voltage, the actual output voltage values can be specified using controls on the device, e.g. the upper and lower voltage levels.
  • Likewise, while the file defines the time, the actual output time period can be specified using the control on the device, e.g. the frequency or the period of the output waveform.

I'll just finish with the first few dozen lines from a sample file that is confirmed as working on both of the devices mentioned above. Best of luck with it!

Code: [Select]
X-axis,WaveGen-ARB
second,volt
0,2.30473475
2.2125851845296E-05,2.30288575
4.42517036905921E-05,2.30214625
6.63775555358881E-05,2.30288575
8.85034073811842E-05,2.303995
0.00011062925922648,2.30288575
0.000132755111071776,2.303995
0.000154880962917072,2.303995
0.000177006814762368,2.3047345
0.000199132666607664,2.3043645
0.00022125851845296,2.30288575
0.000243384370298256,2.30510425
0.000265510222143552,2.30806225
0.000287636073988849,2.3062135
0.000309761925834145,2.30584375
0.000331887777679441,2.3032555
0.000354013629524737,2.3047345
0.000376139481370033,2.30732275
0.000398265333215329,2.309172
0.000420391185060625,2.30806275
0.000442517036905921,2.308802
0.000464642888751217,2.3099115
0.000486768740596513,2.30806225
0.000508894592441809,2.30695325
0.000531020444287105,2.3080625
0.000553146296132401,2.3047345
0.000575272147977697,2.3062135
0.000597397999822993,2.308432
0.000619523851668289,2.30510425
0.000641649703513585,2.3080625
0.000663775555358881,2.30510425
0.000685901407204177,2.30436475
0.000708027259049473,2.3047345
 
The following users thanked this post: nickwest


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf