Author Topic: Rigol DG1022Z - Creating a waveform script  (Read 333 times)

0 Members and 1 Guest are viewing this topic.

Offline Gandalf_Sr

  • Frequent Contributor
  • **
  • Posts: 654
  • Country: us
Rigol DG1022Z - Creating a waveform script
« on: December 19, 2018, 12:24:08 am »
I have a DG1022Z that I set up to produce phase-aligned sine signals at 60 Hz to simulate a power monitoring system.  One waveform represents the voltage and the other the current.

I need to vary the amplitude and phase-relationships of the the signals to emulate various fault conditions and I don't really see this an an arbitrary waveform, more a timed or step-controlled change to the inputs in some sort of script.

Can someone please suggest / outline the best tools / approach to set this up for me?

I do have a LAN connection and will be using a PC running Windows 10 to control.

[EDIT] What I'm really trying to do is automate changes that I could make on the front panel as some kind of (ideally timed) steps e.g.
1. Running in a given state
2. Reduce amplitude of Ch2 to xxx and change start phase from yyy to zzz
3. Go back to normal (step 1 settings)

I'm reading the UltraSigma 'instructions' and it seems I could issue SCPI commands but I don't think UltraSigma allows me to created a sequenced list, am I right?
« Last Edit: December 19, 2018, 02:19:07 am by Gandalf_Sr »
 

Offline Gandalf_Sr

  • Frequent Contributor
  • **
  • Posts: 654
  • Country: us
Re: Rigol DG1022Z - Creating a waveform script
« Reply #1 on: December 19, 2018, 11:30:48 pm »
Update.

I downloaded Netcat and Ncat after reading this article https://rogeorge.wordpress.com/category/scpi/ but, so far, I haven't figured out the commands to get a command-promps (or any other kind) of connection to the devices.  I think that Windows Powershell will do what I want.

Can anyone shed any light on a) if I'm on the right track and b) details of how I should proceed?
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 637
  • Country: gb
Re: Rigol DG1022Z - Creating a waveform script
« Reply #2 on: December 19, 2018, 11:43:02 pm »
I have done something similar using an Agilent sig gen and GNU Octave (similar to MATLAB). I used a DOS batch file script to do the telnet wave download to the sig gen.

There may be some hints for you here:
http://www.eevblog.com/forum/testgear/scripting-setup-for-rigol-devices/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf