Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

Setting the ramp symmetry in program

Questions in this forum area are community supported. Tektronix does not regularly monitor or guarantee responses in this area.
Post Reply
mijq
Posts: 2
Joined: September 18th, 2015, 3:33 am

Setting the ramp symmetry in program

Post by mijq » September 24th, 2015, 7:01 am

I am making a program module for controlling an AFG1022 with some success

The problem is how to set the duty cycle of the square wave (SOURCE1) and the symmetry of the ramp wave (SOURCE2) .
The is my program block:
With my_instrument
.Descriptor = "USB0::0x0699::0x0353::1516582::INSTR::INSTR"


.WriteString("SOURCE1:FREQUENCY:SWEEP 30 kHZ")
.WriteString("SOURCE1:FUNCTION:SHAPE SQUARE")
.WriteString("SOURCE1:VOLTAGE:LEVEL:IMMEDIATE:AMPLITUDE 3.6V")
.WriteString("SOURCE1:VOLTAGE:LEVEL:IMMEDIATE:OFFSET 1.4V")
'.WriteString("SOURCE1:PULSE:DCYCLE 40")
.WriteString("OUTPut1:STATe ON")

.WriteString("SOURCE2:FREQUENCY:SWEEP 10HZ")
.WriteString("SOURCE2:FUNCTION:SHAPE RAMP")
.WriteString("SOURCE2:VOLTAGE:LEVEL:IMMEDIATE:AMPLITUDE 5V")
.WriteString("SOURCE2:VOLTAGE:LEVEL:IMMEDIATE:OFFSET 0V")
.WriteString("OUTPut2:STATe ON")
End With

regards

/Mikkel

mijq
Posts: 2
Joined: September 18th, 2015, 3:33 am

Re: Setting the ramp symmetry in program

Post by mijq » September 24th, 2015, 7:09 am

Slight error: it is FIXED not SWEEP in the FREQUENCY statements.

/Mikkel

Post Reply

Return to “Older and Obsolete Signal Sources”

Who is online

Users browsing this forum: No registered users and 3 guests