phone: +49 (3641) 66880 • fax: +49 (3641) 668866 • [email protected] • http://www.piezojena.com
Appendix
35
Responses
ok
on success
nok
on failure
Query
sin
Description
Get the parameters of the sine function generator by retrieving them from the device's
EEPROM.
Responses
sin,frq,phase,amp,offs,duty
on success
nok
on failure
Parameters
Description
Type: Range
Default value
frq
Frequency [Hz]
FPV: 0.08 ... 50
10
phase
Initial phase angle [°]
FPV: 0 ... 360
0
amp
Amplitude [%]
FPV: 0 ... 100
100
offs
Offset [%]
FPV: 0 ... 100
0
duty
Duty cycle [%] (unused)
FPV: 0 ... 100
0
Errors
error-bit 28, error-bit 29
Examples
request: "sin,5.5,180,50,20,0"
response: "ok"
The sine function generator is initialized to:
Frequency: 5.5Hz
Initial phase angle: 180°
Amplitude: 50%
Offset: 20%
back to command list
9.1.1.23.2 Command: rect
Command
rect,frq,phase,amp,offs,duty
Description
Set the parameters of the rectangle function generator by storing them into the device's
EEPROM. A running or stopped rectangle function generator is not affected.
Responses
ok
on success
nok
on failure
Query
sin
Description
Get the parameters of the rectangle function generator by retrieving them from the device's
EEPROM.
Responses
rect,frq,phase,amp,offs,duty
on success
nok
on failure
Parameters
Description
Type: Range
Default value
frq
Frequency [Hz]
FPV: 0.08 ... 50
10
phase
Initial phase angle [°] (unused)
FPV: 0 ... 360
0
amp
Amplitude [%]
FPV: 0 ... 100
100
offs
Offset [%]
FPV: 0 ... 100
0
duty
Duty cycle [%]
FPV: 0 ... 100
50
Errors
error-bit 28, error-bit 29