Who can use Workbench
- Workbench shows in the sidebar when your organization has the Workbench feature and you have access to it. An owner or admin controls this access. See Members and invitations.
- Members can open Workbench and see each instrument and its nets.
- Only owners and admins can send commands to an instrument, flash firmware, or open a UART console. Stout refuses these actions for members.
- Members can run tests on the boxes that they can access. See Select Test.
Select a box
- In the sidebar, select Workbench. You can also select the Workbench tab on the page of a box, which opens Workbench on that box.
- In the Box field, type part of a box name, an IP address, or a group name.
- Select the box in the list.
Control instruments
Select Control Instruments to show the instruments of the box. Workbench shows one card for each instrument. Each card shows whether the box detects the instrument now. Select an instrument card to open a panel for each of its nets. An instrument can have more than six nets of two or more types. Then Workbench puts its panels into collapsed sections, such as ADC and Power. Workbench refreshes the instrument list every 30 seconds, and also when the box reports a change. If the box detects an instrument that has no net, the card of the instrument shows Add nets. This button opens the Nets tab of the box page. Workbench does not create nets. See Nets and templates. If the box does not detect an instrument now, its card does not show the panels. Connect the instrument again to drive its nets.This concept comes from Lager, the open-source
runtime that Stout sits on top of. For the full reference, see the Lager
documentation.
Panels by net role
Stout limits a measurement window to 30 seconds. Stout refuses an SPI or I2C transaction with more than 4,096 data bytes.
On a power supply panel, the More actions menu has Clear OCP trip and Clear OVP trip. The battery simulator panel also has Clear all trips.
For the Lager commands and Python API behind each panel, see Interacting with nets in the Lager docs.
Locked boxes
When another person holds the lock on a box, Workbench refuses most panel commands. This rule applies to every role, owners and admins included. These reads still work on a locked box: the status of power supply, battery, and USB hub panels, and the battery model list and export. To drive the box, ask the lock holder to release the lock. An owner or admin can also force the lock open. See Box locks.Battery custom models
A battery simulator panel can export a saved custom model to a CSV file. It can also create a model from a CSV file. These actions need Lager 0.31.12 or later on the box. To export a model:- On the battery simulator panel, open More actions and select Export model to CSV….
- In Model slot, select a slot.
- Select Export CSV.
<net>-model-slot-<N>.csv. The file has a voc,resistance header row and one row for each point. An export does not change the active model.
To create a model:
- On the battery simulator panel, open More actions and select Create model from CSV….
- In Model CSV, select the file. Workbench checks the file and shows a preview of the curve.
- In Destination slot, select a slot from 1 to 9.
- If the slot holds a model, select Overwrite slot N.
- Select Save model. For an occupied slot, the button is Overwrite slot N.
The same file format works with
lager battery model-create and lager battery model-export. See the Lager battery commands.
Flash firmware
Adebug or arm net drives a debug probe, such as a J-Link. The Debug (J-Link) panel flashes firmware to the target MCU.
Before you flash, set the channel of the net to the part number of the MCU, for example STM32F407VG. Set the channel on the Nets tab of the box page. Until you do, the panel does not let you flash.
- Select Choose file and select a
.hex,.elf, or.binfile. - For a
.binfile, enter the Load address. The default is0x08000000. - Select the options that you need: Verbose, Skip erase, and Halt after flash.
- Select Flash.
- Stout connects to the probe.
- Stout erases the target, unless you selected Skip erase.
- Stout writes the file to the target.
- If you selected Halt after flash, Stout resets the target and halts it.
UART console
Auart net opens a serial console in the browser.
- In the baud rate list, select a rate from 9600 to 921600. The list starts at the saved baud rate of the net, or at 115200.
- Select Connect.
- Type a line in the input field.
- Select a line ending: LF, CRLF, CR, or None.
- Select Send.
Webcams
View Webcams opens the Webcams tab of the box page. See Webcams.Open Workbench from a box
On the Nets tab of a box page, Control in Workbench opens Workbench with that box selected. The Control button in the heading of an instrument, or in the row of a net, also opens the panels of that instrument. You can also open these URLs directly:Select Test
Run a Lager test from your repository on the selected box.
Box locks
Take a lock before you drive a shared bench.