Digsilent Powerfactory: Technical Reference Documentation
Digsilent Powerfactory: Technical Reference Documentation
Clock
ElmClock
DIgSILENT GmbH
Heinrich-Hertz-Str. 9
72810 - Gomaringen
Germany
T: +49 7072 9168 0
F: +49 7072 9168 88
http://www.digsilent.de
info@digsilent.de
Version: 15.2
Edition: 1
Copyright 2014, DIgSILENT GmbH. Copyright of this document belongs to DIgSILENT GmbH.
No part of this document may be reproduced, copied, or transmitted in any form, by any means
electronic or mechanical, without the prior written permission of DIgSILENT GmbH.
Clock (ElmClock)
Contents
Contents
1 General Description
2 Dynamic Simulation
3 Example Configuration
A Parameter Definitions
B Signal Definitions
List of Figures
List of Tables
Clock (ElmClock)
Dynamic Simulation
General Description
The digital models need a clock input to trigger their calculations. The clock is a pulse generator
which provides this signal. The clock model creates a signal with a clock pulse of a given
duration and ratio Ton/Tp. Output signals are clock pulse and clock duration. The output for a
clock signal with Ton/Tp=0.5 looks like:
Ton
1
Tp
Dynamic Simulation
extfrq
output
Used Clock Frequency The extfrq signal input can be used to set the clock frequency. This is
useful if the clock frequency is to be changed during simulation. If a signal is connected to extfrq
the clock frequency is set to extfrq, regardless of the frequency or period set in the dialog box.
If Use measurement Frequency is enabled the clock frequency is set by the Start Measurement
command which is used only for the input of measured signals with a data acquisition board.
In most configurations Use measurement Frequency is disabled, therefore the clock period (Tp)
is required. Both, clock period or clock frequency can be entered, the corresponding quantity is
calculated automatically.
Clock (ElmClock)
Example Configuration
Note: For proper functionality of the clock it is required that the simulation step size is smaller
than the clock period.
Example Configuration
The examples show two small configurations where the Fast Fourier Transformation model is
used to perform a FFT analysis on a signal.The analyzed signal is created with the Fourier
Source model. The clock signal for the FFT is generated by the digital clock.
DIgSILENT
In the example block diagram on the right the clock frequency is set by an external block.
Internal Clock:
Clock
Clock
ElmClock
output
cl
0
Fourier Source
FFT
ElmFft
yo
Waveform A
ElmFsrc
input
1
Clock (ElmClock)
Example Configuration
DIgSILENT
External Clock:
Clock
extfrq
ExtFrq
*
Clock
ElmClock
cl
output
Fourier Source
FFT
ElmFft
yo
input
Waveform A
ElmFsrc
Clock (ElmClock)
Object
Variable
Value
Simulation
ComInc
Clock
ElmClock
dtemt
dout emt
cFreq
tonTp
5.06e-6 s
5.06e-6 s
12.8 kHz
0.5
Example Configuration
DIgSILENT
1.25
1.00
0.75
0.50
0.25
0.00
-0.25
0.00
0.10
0.20
0.30
[ms]
0.40
Clock (ElmClock)
Signal Definitions
Parameter Definitions
Table A.1: Clock Parameters
Parameter
Description
Unit
loc name
outserv
ctrlsim
iopt meas
cFreq
Tp
tonTp
Name
Out of service
Control simulation step size
Use measurement frequency
Clock frequency
Period
Ratio Ton/Tp
kHz
ms
Signal Definitions
Table B.1: Input/Output signals
Name
Description
Unit
Type
Model
extfrq
output
Hz
IN
OUT
RMS, EMT
RMS, EMT
Clock (ElmClock)
List of Figures
List of Figures
1.1 Clock Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Clock (ElmClock)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List of Tables
List of Tables
2.1 Frequency Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Clock (ElmClock)