WeSpice Schematic Editor
Lindentree Software
How To
- Pan and zoom - With two fingers. If a zero-size item is active (like "Text"), one-finger pan also works.
- Add stuff - The list on the right selects what to add. Tap where you want to add it.
- Change instance type - In the instance edit dialog, which pops up when you add or edit an instance.
- Select stuff - Long press on one item. Next items can be selected with short press or dragging (for area selection).
If "Select" is active, short press and area selection are directly active.
- Edit an item - Double-tap on it (if it's not a sub-circuit). Or select it and choose EDIT.
- Edit more items - If all selected items are instances of the same component, you can edit the whole group by choosing EDIT.
The attributes defined in this dialog will be changed for all instances. All other attributes will remain unchanged.
- Edit even more items - If the selected items are mixed, EDIT will let you change the color of all instances and wires selected.
You can also change the library of all instances (tricky, better make a copy before) - in the overflow menu.
- Push into a sub-circuit - Double-tap on it. Or select it and choose "Hierarchy push into".
- Pop from a sub-circuit - Back button, or top-left WeSpice icon, or choose "Hierarchy pop".
- Use a netlist as a sub-circuit - Menu > Use SPICE netlist.
You can choose which file in the circuit folder to use (nothing appears if there are no eligible files).
The first sub-circuit in the file will be used as the content of this schematic.
Parameters defined in the .SUBCKT line are recognized.
Everything between ".SUBCKT foobar" and ".ENDS foobar" will end up in the final simulation netlist (as a renamed sub-circuit).
This includes for example models declared inside the sub-circuit.
Examples: most circuits in /xanalib (vgain, opamp, etc).
- Use parameters - Place a "Params" item in the schematic. This is a special text field with lines of the form "param=default_value".
These parameters can be used in "brace expressions" as values for attributes of components.
When you instance this circuit as a sub-circuit, you can define per-instance values for these parameters.
If this is the top schematic, the parameters translate into a .PARAM spice line.
Parameters defined in the .SUBCKT line of a netlist sub-circuit are recognized.
The values can be "brace {} expressions" as defined in the NGSPICE manual.
Examples: /samples/param, /samples/sigmadelta*
- Smoother dragging - Turning off the grid helps.
Hints and tricks
- Connect components with wires (not directly pin over pin).
- You can also connect by name (same name on two wires).
- Define a ground net (usually in the top schematic). It has to have the name "0" (zero) or "GND", or connect /syslib/gnd to it.
- Check the log warnings after you save the schematic. When things are auto-corrected, you'll also get highlights in the schematic.
- Use Stretch, Dup(licate) and group editing - these are powerful tools to make editing easier.
- Save! (Or enable autosave in settings.) The other modules will only use the saved schematic.
Files
- The schematic is saved in "Schematic.sys".
- Temporary and undo information is maintained in "Schematic.wip.sys"