Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,9 @@ benchpod generate --waveform sine --freq 1kHz --path 3v3 --amplitude-v 1.48 --of
| `--freq` | `1kHz` | Output frequency with its unit, e.g. `2kHz`; a bare number is Hz. |
| `--path` | | DAC output for the volts: `3v3`, `5v` or `12v` (firmware 3.9.1+). |
| `--amplitude-v` | | Peak in volts on `--path`, 16-bit and calibrated (firmware 3.9.1+). |
| `--offset-v` | | Centre in volts on `--path`, with `--amplitude-v`. |
| `--offset-v` | | Center in volts on `--path`, with `--amplitude-v`. |
| `--amplitude-ma` | | Peak in mA on the 4-20 mA output (J9), 16-bit (firmware 3.9.1+). |
| `--offset-ma` | | Centre in mA on the 4-20 mA output, with `--amplitude-ma`. |
| `--offset-ma` | | Center in mA on the 4-20 mA output, with `--amplitude-ma`. |
| `--amplitude` | `127` | Half-scale amplitude in 8-bit levels, 0-127. |
| `--offset` | `128` | DC offset in 8-bit levels, 0-255. |
| `--duration` | `0` | How long to play, e.g. `2s` or `500ms`; `0` runs until the next command. |
Expand Down
4 changes: 2 additions & 2 deletions cmd/benchpod-cli/commands_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ func newGenerateCmd(g *globalFlags) *cobra.Command {
cmd.Flags().IntVar(&offset, "offset", 128, "DC offset in 8-bit levels 0-255")
cmd.Flags().StringVar(&path, "path", "", "DAC output for --amplitude-v/--offset-v: 3v3|5v|12v (firmware 3.9.1+)")
cmd.Flags().Float64Var(&amplitudeV, "amplitude-v", 0, "peak in volts on --path, played calibrated at 16 bits (firmware 3.9.1+)")
cmd.Flags().Float64Var(&offsetV, "offset-v", 0, "centre in volts on --path (with --amplitude-v)")
cmd.Flags().Float64Var(&offsetV, "offset-v", 0, "center in volts on --path (with --amplitude-v)")
cmd.Flags().Float64Var(&amplitudeMA, "amplitude-ma", 0, "peak in mA on the 4-20 mA output, 16-bit (firmware 3.9.1+)")
cmd.Flags().Float64Var(&offsetMA, "offset-ma", 0, "centre in mA on the 4-20 mA output (with --amplitude-ma)")
cmd.Flags().Float64Var(&offsetMA, "offset-ma", 0, "center in mA on the 4-20 mA output (with --amplitude-ma)")
cmd.Flags().DurationVar(&duration, "duration", 0, "how long to output, e.g. 2s or 500ms (0 = run until next command)")
cmd.Flags().IntVar(&durationMS, "duration-ms", 0, "duration in ms (0 = run until next command); same as --duration")
cmd.Flags().Var(newFrequencyValue(0, &sampleRateHz), "sample-rate", "FPGA sample-clock rate, e.g. 10MHz (omit to auto-pick)")
Expand Down
Loading