Author Topic: Bring long arb sequences to DG1062z  (Read 918 times)

0 Members and 2 Guests are viewing this topic.

Offline 3isenhornTopic starter

  • Contributor
  • Posts: 21
  • Country: de
Bring long arb sequences to DG1062z
« on: May 19, 2021, 02:12:54 pm »
Hello!

I am trying to get a long arb sequence to the DG1062z, 1e6 samples at 5MSa/s, which I created in Python.
The values are between 1.5 and -1.5. I tried with a csv and txt file as described in the documentation. However, I don't get any output (not even for the shorter version).
I have tried everything I can think of, shortening the float to 4 digits, etc.
Sending the same values via SCPI works up to 1500 samples, then a communication error occurs (not unexpected).

Does anyone have an idea what the problem could be and perhaps an example file that I could test?

Thank you in advance!
 

Offline bateau020

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: fr
Re: Bring long arb sequences to DG1062z
« Reply #1 on: May 20, 2021, 01:33:17 pm »
I do not have the DG1062Z, but the DG900 series uses the same format it seems.
The documentation is not great indeed. And it fails without feedback indeed.

Here is what I found out what works for me (all CSV format). May not be fully correct, nor work in your case.

Also, look here: https://www.eevblog.com/forum/testgear/rigol-dg1000z-raf-file-format/msg2546961/#msg2546961

RIGOL:DG1:CSV DATA FILE  // Mandatory
TYPE:Arb                 // Mandatory
AMP:{amplitude} Vpp      // The AWG expects the signal to be centered around 0. So the y voltages MUST be between +/- {amplitude}/2. Anything out of these limits will cause a strange wrap! {amplitude} may be higher than the 2*y values, but that will probably pilot the output amplifier, so do not set too high.
PERIOD:1 S               // Seems ignored
DOTS:{dots}              // The number of samples, 8k max it seems
MODE:{mode}              // Mandatory: {mode} = Freq (with interpolation, very nice) or STEP (no interpolation, but lower bandwith) or SMOOTH (smoothing, causing overshoots!)
AFG Frequency:{freq}     // sample frequency. The first column can also be "Sample Rate". The Frequency of the outgoing signal = {freq}/{dots} Hz (provided the AWG y values are 1 cycle, multiply otherwise)
AWG N:0                  // leave empty or like this. Will crash if wrong format! Changing the number does not seem to make any difference.
x,y[V]                   // leave empty or like this. Will crash if wrong format!
,{y1}
,{y2}
,{y3}

... etc

EXAMPLE:

RIGOL:DG1:CSV DATA FILE
TYPE:Arb
AMP:2.0 Vpp
PERIOD:1 S
DOTS:512
MODE:Freq
AFG Frequency:10000


,0.001953125
,0.00390625
,0.005859375

... etc
« Last Edit: May 20, 2021, 01:45:05 pm by bateau020 »
 

Offline 3isenhornTopic starter

  • Contributor
  • Posts: 21
  • Country: de
Re: Bring long arb sequences to DG1062z
« Reply #2 on: May 20, 2021, 09:13:37 pm »
Hello,

Thank you for the advice, actually this is how my csv file looks like. I am unsure about the CR and if i really insert it the right way.
Also I tired UltraStation, but unforutnatly this raf file doesn't work either.

In genereall I was able to output the same base data on a Tektronix  AFG31022 and some R&S function generator.
 

Offline 3isenhornTopic starter

  • Contributor
  • Posts: 21
  • Country: de
Re: Bring long arb sequences to DG1062z
« Reply #3 on: July 02, 2021, 07:38:20 pm »
Hello,

Today I finally managed to play a sequence from a file and would like to share my findings in case anyone else encounters the same problem.
I had already tested several USB flash drives, in the end I reformatted a 4GB thumb drive under Windows. It only seems to work with FAT32 in 4KB block size.
This was a bit difficult to figure out as I usually use Linux on a daily basis.

 
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf