Skip to content

Commit

Permalink
Mention serverMode in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Feb 10, 2022
1 parent ce24caa commit 7d2ec0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ makedocs(
"Cluster" => "cluster.md",
"Data Acquisition" => "acquisition.md",
"Signal Generation" => "generation.md",
"Client" => "client.md",
"SCPI Interface" => "scpi.md",
"Client Library" => "client.md",
"Examples" => Any["Simple" => "examples/simple.md",
"Waveforms" => "examples/waveforms.md",
"SlowADC" => "examples/slowADC.md"],
"SCPI Interface" => "scpi.md",
"FPGA Development" => "fpga.md",
"Development Tips" => "devtips.md",
#"Getting Started" => "overview.md",
Expand Down
7 changes: 6 additions & 1 deletion docs/src/scpi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# SCPI Interface

For communication betten the server and the client an [SCPI](https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments) with custom commands is used. The following table gives an overview of availalbe commands:
For communication betten the server and the client an [SCPI](https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments) with custom commands is used. In the following tables an overview of the available commands and their behaviour is given. The Julia [Client](client.md) library encapsulates these commands into function calls, abstracting their communication details and also combining commands to manage a cluster of RedPitayas at the same time.

As a safe guard the server has different modes and certain commands are only available in certain modes. As an example, during an acquisition changing the sampling rate would result in unclear behaviour. To stop such a scenario the decimation can only be set in the `CONFIGURATION` mode and an acquisition can only be triggered in the `ACQUISITION` mode. The available modes are `CONFIGURATION`, `ACQUISITION` and `TRANSMISSION`. The former two are set by the client and the latter is set by the server during sample transmission.

After each SCPI command the server replies with `true` or `false` on the command socket depending on whether the given command was successfully excecuted. The exception to this rule are the commands which themselves just query singular values from the server which are then the only reply.

## ADC Configuration

| Command | Arguments | Description | Mode | Example |
Expand Down

0 comments on commit 7d2ec0a

Please sign in to comment.