Skip to content

Commit

Permalink
Added json examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterska committed Jan 25, 2021
1 parent e69b042 commit 93ebc59
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 0 deletions.
6 changes: 6 additions & 0 deletions json-scripts/sine-wave-1Hz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 1.0, "waveform" : "sine", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] }
]
}
6 changes: 6 additions & 0 deletions json-scripts/sine-wave-1KHz-all-positive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 1.0e03, "waveform" : "sine", "amplitude" : 5.0, "offset": 105.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] }
]
}
6 changes: 6 additions & 0 deletions json-scripts/sine-wave-1KHz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 1.0e03, "waveform" : "sine", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] }
]
}
6 changes: 6 additions & 0 deletions json-scripts/square-wave-1Hz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 1.0, "waveform" : "square", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] }
]
}
6 changes: 6 additions & 0 deletions json-scripts/square-wave-1KHz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 1.0e03, "waveform" : "square", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] }
]
}
15 changes: 15 additions & 0 deletions json-scripts/test-sequence-attenuated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 25e03, "waveform" : "square", "amplitude" : 0.5, "phase" : 90.0, "duty" : 33.3, "attenuation" : true } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "on", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 100e03, "waveform" : "sine", "amplitude" : 0.33, "phase" : 180.0, "duty" : 50.0, "attenuation" : true } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 10e03, "waveform" : "triangle", "amplitude" : 0.5, "phase" : 0.0, "duty" : 75.0, "attenuation" : true } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },
{ "cmd" : "off", "data" : [ { "channel" : 1 } ] }
]
}
26 changes: 26 additions & 0 deletions json-scripts/test-sequence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 25e03, "waveform" : "square", "amplitude" : 5.0, "phase" : 90.0, "duty" : 33.3, "attenuation" : false } ] },
{ "cmd" : "on", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },

{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 50e03, "waveform" : "sine", "amplitude" : 3.3, "phase" : 180.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },

{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 55e03, "waveform" : "triangle", "amplitude" : 5.0, "phase" : 0.0, "duty" : 75.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },

{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 60e03, "waveform" : "rising sawtooth", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },

{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 65e03, "waveform" : "descending sawtooth", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 15 } ] },

{ "cmd" : "off", "data" : [ { "channel" : 1 } ] }
]
}
12 changes: 12 additions & 0 deletions json-scripts/test-sweep.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cmds" : [
{ "cmd" : "configsweep", "data" : [ { "startf" : 1e03, "endf" : 100e03, "seconds" : 10, "type" : "log", "waveform": "square", "duty" : 50.0 } ] },
{ "cmd" : "showsweep" },
{ "cmd" : "sweepon" },
{ "cmd" : "on" },
{ "cmd" : "delay", "data" : [ { "seconds" : 20 } ] },
{ "cmd" : "sweepoff" },

{ "cmd" : "off" }
]
}
9 changes: 9 additions & 0 deletions json-scripts/thirty-second-square-25KHz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"cmds" : [
{ "cmd" : "config", "data" : [ { "channel" : 1, "frequency" : 25e03, "waveform" : "square", "amplitude" : 5.0, "phase" : 0.0, "duty" : 50.0, "attenuation" : false } ] },
{ "cmd" : "showconfig", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "on", "data" : [ { "channel" : 1 } ] },
{ "cmd" : "delay", "data" : [ { "seconds" : 30 } ] },
{ "cmd" : "off", "data" : [ { "channel" : 1 } ] }
]
}

0 comments on commit 93ebc59

Please sign in to comment.