![background image](http://html1.mh-extra.com/html/aim/amc429/amc429_reference-manual_2871731199.webp)
Software Library Reference Manual for VME 429
189
Section 9 - Scenario Functions
'
'
A
A
i
i
U
U
I
I
n
n
t
t
8
8
f
f
l
l
d
d
[
[
]
]
.
.
f
f
u
u
n
n
c
c
'Dynamic Data Function Type
Value Constant Description
0
API429_FLD_OFF
no function = field OFF
1
API429_FLD_FNC_
RAMP
Ramp
f(t)=C+a*(t+t0)
(0 <= t < T)
- fpar1:
C
Î
offset
- fpar2:
a
Î
scale
- fpar3:
T
Î
time in ms after
ramp is reset
(reset to start value
f(0) )
- fpar4:
t0
Î
time offset in ms
(>=0)
2
API429_FLD_FNC_
TRIA
Triangular
f(t)=C+a*(t+t0)
(0 <= t < T/4)
f(t)=C-a*(t-T/2+t0)
(T/4 <= t < 3T/4)
f(t)=C+a*(t-T+t0)
(3T/4 <= t < T)
- fpar1:
C
Î
offset
- fpar2:
a
Î
scale
- fpar3:
T
Î
period of the
triangular in ms
- fpar4:
t0
Î
time offset in ms
(>=0)
3
API429_FLD_FNC_
SINE
Sine wave
f(t)=C+a*sin(t+t0)
- fpar1:
C
Î
offset
- fpar2:
a
Î
value
- fpar3:
T
Î
period in ms
- fpar4:
t0
Î
time offset in ms
(>=0)
4
API429_FLD_FNC_
RAMPS
Single Ramp
f(t)=C+a*(t+t0)
(0 <= t < T)
- fpar1:
C
Î
offset
- fpar2:
a
Î
scale
- fpar3:
T
Î
time in ms after
ramp is suspended (stay on
last value)
- fpar4:
t0
Î
time offset in ms
(>=0)
5
API429_FLD_FNC_
SQUARE
Square
f(t)=C1
(0 <= t < t1)
f(t)=C2
(t1 <= t < T )
Note: Period T of this
function is t1+t2
- fpar1:
C1
Î
value1
- fpar2:
t1
Î
time, value1 is
held
- fpar3:
C2
Î
value2
- fpar4:
t2
Î
time, value2 is
held
'
'
d
d
o
o
u
u
b
b
l
l
e
e
f
f
l
l
d
d
[
[
]
]
.
.
r
r
a
a
n
n
g
g
e
e
'Range Value for Field
'fld[].type' Value
Description
1 resolution*2
(WIDTH-1)
Range from 0 to value
2 resolution*2
WIDTH
Range from 0 to value
'
'
d
d
o
o
u
u
b
b
l
l
e
e
f
f
l
l
d
d
[
[
]
]
.
.
f
f
p
p
a
a
r
r
1
1
'
'
–
–
'
'
d
d
o
o
u
u
b
b
l
l
e
e
f
f
l
l
d
d
[
[
]
]
.
.
f
f
p
p
a
a
r
r
4
4
'
'
Dynamic Data Function Definition (IEEE754, floating point format, single precision)
This functions are dependent on the parameter 't' which is the elapsed time in
milliseconds after starting the scenario with the 'INIT TRANSMITTER SCENARIO'
Command.
Summary of Contents for AMC429
Page 2: ......