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

0 Members and 1 Guest are viewing this topic.

Offline Gandalf_SrTopic starter

  • Super Contributor
  • ***
  • Posts: 1729
  • Country: us
Rigol DG1022Z - Creating a waveform script
« 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?
« Last Edit: December 18, 2018, 03:19:07 pm by Gandalf_Sr »
If at first you don't succeed, get a bigger hammer
 

Offline Gandalf_SrTopic starter

  • Super Contributor
  • ***
  • Posts: 1729
  • Country: us
Re: Rigol DG1022Z - Creating a waveform script
« Reply #1 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?
If at first you don't succeed, get a bigger hammer
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2299
  • Country: gb
Re: Rigol DG1022Z - Creating a waveform script
« Reply #2 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/
 
The following users thanked this post: Gandalf_Sr


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf