Work in the editor¶
Use the PID demo for these exercises. Choose File → Save As... and work in a copy so you can return to the bundled example later. Press F with the canvas focused to fit the graph. Use the stage dropdown to highlight one stage at a time, and select (all) to see the whole pipeline.
Edit a member value¶
- Select
kp_bankand open Inspector. Under Members, thevaluefield is the default (1.0). The row labeledtightoverrides it with5.0. - Change the
tightoverride to3.0and press Enter. Run the pipeline in thetightprofile and changecommandin Live to see the effect. Theloosemode still uses the default.
To add an override, use + value for mode under the member. Piper starts the override with the current default. To add another mode to this node, enter its name under Modes and click Add mode.
Choose a mode in a profile¶
Open Profiles and expand loose. In the kp_bank row, select the tight
mode. Activating loose now gives kp_bank the tight value while ki_bank
and kd_bank still use loose. You can also edit a selected node's mode for
the active profile in the Inspector.
- Set active switches the current profile. The toolbar dropdown does the same thing.
- Set default chooses the startup profile saved in the pipeline file.
- Add profile creates a profile with each node's first mode selected.
Add an output probe¶
- Stop the pipeline. Right-click an empty part of the canvas and choose
Add node → external, then select
external_output<float>. Select the new node and set its primary stage toprobein the Inspector. - Drag from
plant.outto the new node'sinpin. The existing link toprobe_measuredcan stay wired to the same output. - Under External I/O in the Inspector, enter
plant_copyin the External name field and press Enter. - Click Run.
plant_copyshould show the same value asprobe_measuredin Live. Use Problems to inspect any reported graph issues, then save with Ctrl+S.
When you need an operation beyond the available node types, write a custom step.