EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: Gandalf_Sr on December 18, 2018, 01:24:08 pm

Title: Rigol DG1022Z - Creating a waveform script
Post by: Gandalf_Sr on December 18, 2018, 01:24:08 pm
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?
Title: Re: Rigol DG1022Z - Creating a waveform script
Post by: Gandalf_Sr on December 19, 2018, 12: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?
Title: Re: Rigol DG1022Z - Creating a waveform script
Post by: voltsandjolts on December 19, 2018, 12: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:
https://www.eevblog.com/forum/testgear/scripting-setup-for-rigol-devices/ (https://www.eevblog.com/forum/testgear/scripting-setup-for-rigol-devices/)