beautypg.com

GW Instek APS-1102 Control Software User Manual User Manual

Page 76

background image

7 Arbitrary Waveform Editing

63

Formula waveform

As an example of editing an arbitrary waveform by formula, we will create a waveform of a

fundamental wave with the 3rd and 5th harmonics waves superimposed.

Step 1:

Select [Set] - [System Setting].
A dialog titled [Unit Setting] appears.

Step 2:

In the [Unit (X)] combo box of [X-axis Unit Setting], click [User]. Leave Min-Max as the
initial value of [0.000000 to 1.000000].

Step 3:

In the [Unit (Y)] combo box of [Y-axis Unit Setting], click [User]. Leave Min-Max as the
initial value of [0.000000 to 1.000000].

Step 4:

Click OK button to return to waveform display screen.

Step 5:

Click Create button on Select Item Panel.
You can also click [Tool] - [Create] to obtain the same result.
Select Item Panel is changed to [New Arbitrary Waveform Editing Panel].

Step 6:

Click

button on the right side of [Wave], and then click [Function] in the displayed list.

Step 7:

Enter "s=2*pi;" in the input area on the right side of [Constant].
Enter "sin(x*s)+sin(x*s*3)/3+sin(x*s*5)/5" in the input area on the right side of [Y=].

Step 8:

Clicking Execute button displays a waveform as a calculation result in the Arbitrary
waveform editing screen.

Step 9:

Click All-Page OK button to return to waveform display section.

Description 1: Here, entire horizontal axis (X) is processed as the range of 0 to 1 by using the

user-defined unit. Also, entire vertical axis (Y) is processed as the range of ±1.
One cycle of a sine wave is easily expressed by defining s=2

as a constant and specifying

[x*s] in the formula.

Description 2: In step 2, if the range of X is set as 0 to 6.283185 (2

) using the user-defined unit, the

formula becomes more simple as [sin(x)+sin(x*3)/3+sin(x*5)/5].