
#idString HKJ,VirtualSinusGenerator,
#name VirtualSinusGenerator
#handle VSG
#port none

#helpurl http://lygte-info.dk/project/TestControllerVirtualDevices%20UK.html#Virtual_sines_generator_(VSG)

#outputOff on 0

#interfaceType VSG
#interface setOn on (value)
#interface getOn on?


; Strings to configure device in different modes
; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
; First parameter is also used in shortcut menu
;#cmdMode 




; Setup menu functions
; The parameters on the first line is: type name page 
; Settings on the following lines are:
; read: SCPI to read value from device, is used to synchronize when opening setup page or setting equal named fields. Not always used
; askValuesReadFormat: Parse read value.
; write: Send the value to device, this field is used in combination with data fields in the details to send updates to device.
; tip: Add this tip to all components for this input field.

#cmdSetup radio Period
:read: period?
:write: period
:update: Frequency
:tip: Period time of the sine wave
1s 1
3s 3
10s 10
30s 30
100s 100

#cmdSetup number Period
:read: period?
:write: period
:update: Frequency
:tip: Period time of the sine wave
sec 0.01 3600


#cmdSetup number Range
:read: range?
:write: range
:update: Level
:tip: Output range from lowest to highest value
- -1000 1000

#cmdSetup number Offset
:read: offset?
:write: offset
:tip: Output offset to zero
:update: Level
- -1000 1000


#cmdSetup buttonsOn Output
:read: on?
:write: on
:updatealloff:
Off 0
On 1



#cmdSetup info Frequency
:read: freq?
Hz



#cmdSetup info Level
:read: downlevel?
:tip: Lowest output level

Low


#cmdSetup info Level
:read: uplevel?
:tip: Highest output level

High

