@@ -927,7 +927,7 @@ To reset to the default mode you can reset/reprogram the FPGA or set it back wit
~~~~~~~~~~~~~~~~
### Generating pulse
### Generating a pulse and a train of pulses
The command is used in the following formats:
...
...
@@ -968,6 +968,33 @@ try the following commands in the slave SPEC device:
> ***Warning:*** You must ensure that WR date is synchronized with system one.
> See setsec command in [Generating pulse](#generating-pulse) section.
If the two optional parameters `[<period> <count>]` of the `pulse` command
are specified, a train of pulses is generated. The number of pulses can
be specified using `<count>`. If this parameter is set to -1, the pulses
are generated until new configuration is specified. Setting `<count>` to
zero stops pulse generation.
~~~~~{.sh}
## Starting now, generate train of 5 pulses on channel 4 with pulse with of 0.1 second period of 0.5 second
>:$ sudo wr-dio-cmd /dev/fmc-dio-1:0 pulse 4 .1 now 0.5 5
## Starting in the middle of the next second, generate an indefinite train of pulses on channel 4 with pulse width of 1 millisecond and period of 10 milliseconds