Settings reference¶
Open via the Settings button or menu. Four tabs: Measurement, Display, File, Output. All values are persisted per-user-profile in config.json (gitignored, in the working directory), except the three machine-local settings. Cross-references in this page link to Concepts for term explanations.
The tab layout below is the PySide6 window's. The desktop app edits the same profiles through the API, and the setting names in code font are the keys both of them, config.json and an API overrides dict use. Defaults come from DEFAULT_SETTINGS in resistamet_gui/constants.py; bounds from the models in resistamet_gui/schema/. A value outside its bounds in a stored profile still loads; it is reported as an issue, and an API run (POST /session/start) is refused with 422 until it is fixed.
Measurement tab¶
General instrument¶
| Setting | Default | Range / type | What it does |
|---|---|---|---|
GPIB Address (gpib_address) |
GPIB0::24::INSTR |
VISA resource string, not empty | Where to find the instrument. Detect Devices scans the VISA buses and offers the result in a picker. Machine-local. |
VISA backend (visa_library) |
"" (Automatic) |
"", @ivi, @py, or the path of a VISA library |
Which VISA implementation opens the bus. Automatic is pyvisa's own default: the vendor library (NI-VISA) when one is installed, otherwise pyvisa-py. @py forces pyvisa-py, which is the route to an NI GPIB-USB-HS on macOS or Linux, a Prologix adapter, or a serial link. See GPIB and VISA backends. Machine-local. |
GPIB interface (gpib_interface) |
"" (none) |
"", PRLGX-ASRL[board]::<device>::INTFC or PRLGX-TCPIP[board]::<host>[::port]::INTFC |
The interface resource of a Prologix-style adapter, opened before the instrument. pyvisa-py only; ignored with a logged warning under a vendor library. See GPIB → Prologix and AR488 for the grammar and for what does not work yet. Machine-local. |
| Sampling Rate | 10.0 Hz |
0.1 – 100 Hz |
Default readings per second. Each measurement tab has its own spinbox that overrides this. Each per-tab spinbox is dynamically capped based on the active (NPLC × auto-zero × filter × offset-comp) combination; if you commit a value above the cap the status bar reports the cap and suggests the cheapest single setting change to reach the requested rate. See Concepts → Rate-cap predictor. |
| NPLC | 1 |
0.01 – 10 |
Integration time per reading. Lower = faster + noisier; higher = slower + cleaner. |
| Settling Time | 0.2 s |
0 – 10 s |
Delay after output enable before the first reading. Lets DUT + instrument stabilize. |
The PySide6 Settings dialog has the three as GPIB Address, VISA Backend and GPIB Interface; the desktop app has them under Settings ▸ Instrument. In both, the scan (Detect Devices, Scan) goes through the backend and interface shown, as a run does.
Machine-local settings¶
gpib_address, visa_library and gpib_interface describe a PC and its cabling, not an operator. They are not stored in config.json at all. Each PC keeps them in a small file of its own, in the home directory of the user account that runs ResistaMet, beside the instrument locks:
What that means when one config.json is shared between PCs through a synced folder or a network drive:
- Operators, profiles and every other setting travel with
config.json. The address, the VISA backend and the GPIB interface stay on the PC, because its file is outside the shared folder. - When a profile is read, the three values of the current PC are filled into its
measurementsection, so a run, the API and both UIs see them as ordinary settings. When a profile is saved, they are taken back out and written tomachine.json; stale copies inconfig.jsonare removed. - The file is per user account, not per PC: two accounts on one PC each have their own.
- An empty
gpib_addressis never stored. An emptyvisa_libraryorgpib_interfaceis a real choice (Automatic, none) and is stored. - Through the API these three keys cannot be changed while a run is in progress (409), and
gpib_addresscan never be sent as a run override.
allow_agents (false by default) is kept in the same file: whether a backend on this PC lets AI agents connect (API → Agent access). It is read from machine.json only, never from config.json or an older version's entry, and anything there but true means off. Through the API only the ui role may change it (403 otherwise), also during a run, and a run request may not send it. It is not a setting of a run: resolved run settings, the run_started event and the data files leave it out. In the desktop app it is Allow AI agents to connect, under Settings → AI agents.
Coming from an earlier version. Versions up to 1.12 kept the address in config.json under machines.<hostname>. That broke whenever the hostname changed, which macOS does on its own depending on the network. The first time this version opens a config on a PC that has no machine.json, it copies that PC's old entry (or an even older shared measurement.gpib_address) into machine.json, skipping values that equal the default. The old entry is left in config.json, is still consulted for a key machine.json lacks, and is never written again, so an older ResistaMet opening the same file keeps working.
Resistance defaults¶
Applied to the Resistance tab on launch; the tab itself has live widgets that override these per-run.
| Setting | Default | Notes |
|---|---|---|
| Test Current | 1 mA |
DC current sourced through the DUT |
| Voltage Compliance | 5 V |
Maximum allowed across the DUT |
| Measurement Type | 2-wire |
Or 4-wire for Kelvin |
Voltage Source defaults¶
| Setting | Default | Notes |
|---|---|---|
| Source Voltage | 1.0 V |
Accepts negative values |
| Current Compliance | 100 mA |
|
| Duration (hours) | 0 (= run until stopped) |
Set non-zero for unattended runs |
Current Source defaults¶
| Setting | Default | Notes |
|---|---|---|
| Source Current | 1 mA |
Accepts negative values |
| Voltage Compliance | 5 V |
|
| Duration (hours) | 0 (= run until stopped) |
|
| Stop on compliance | False |
Auto-Stop when compliance is reached. Useful for protecting sensitive samples in source-V too. |
Advanced instrument settings¶
| Setting | Default | Notes |
|---|---|---|
| Enable Hardware Filter | True |
Use the Keithley's built-in averaging filter (see Concepts → Hardware averaging filter) |
| Filter Type | repeat |
repeat (N readings → 1 result, then repeat) or moving (running average) |
| Filter Count | 5 |
1 – 100 |
| Enhanced accuracy in Resistance mode | True |
Offset-compensated ohms. See Concepts → Enhanced R mode. |
Touch-safety warn threshold (safety_voltage_warn_v) |
30 V |
0 – 1100 V. Voltage at or above this triggers the warning before run start. 0 disables. It and the two silence keys below belong to the profile: an API run request cannot override any of them. See Concepts → Touch-safety warning. |
Suppress touch-safety warning for this profile (safety_voltage_warn_silenced) |
False |
Equivalent to clicking "Don't show again" on the modal. Checked too while a timed silence is in force, with its end shown; uncheck to re-enable, which also ends a timed silence. |
safety_voltage_warn_silenced_until |
null |
Unix time; the warning is silenced until then. Set by answering the desktop prompt "Don't ask again for 7 days" (or silence_for_days, API → Prompts); a time in the past is ignored. Desktop Settings ▸ Safety shows it while in force, with Clear. Neither silence applies to a run an AI agent started. |
Four-point sample outline and spot position¶
Seven settings describe the sample a four-point spot sits on and how its position is judged. They exist for the position check of a spot; they do not change any number in a data row.
| Setting | Default | Bounds | What it does |
|---|---|---|---|
fpp_sample_shape |
unbounded |
unbounded, circle, rectangle |
The outline a spot's position is checked against. unbounded means "use the legacy keys" (below). |
fpp_sample_diameter_mm |
0 |
0 – 1000 mm |
Circle diameter. 0 = not entered; a circle with no diameter is an error. |
fpp_sample_width_mm |
0 |
0 – 1000 mm |
Rectangle side along y, across the probe array at 0°. 0 = not entered. |
fpp_sample_length_mm |
0 |
0 – 1000 mm |
Rectangle side along x, along the probe array at 0°. 0 = not entered. |
fpp_array_angle_deg |
0 |
−360 – 360° |
Direction of the probe array on the sample, counterclockwise from +x. Used when a spot does not give its own angle. |
fpp_edge_warn_pct |
1.0 |
0 – 100 % |
A spot is flagged as near an edge when assuming a centered probe would cost more than this. The comparison is against the factor the rows really apply when there is one; see Data outputs → spot.*. |
fpp_position_correction |
warn |
warn only |
The position effect is reported in the file and as a warning, never applied. No other value is implemented: the API refuses one (422), and the PySide6 path ignores a hand-edited one with a log warning and still records warn in the file. |
Only the dimensions the chosen shape has are read: a width left over from a rectangle is ignored once the shape is a circle. Positions are in millimeters from the center of the sample.
Relation to fpp_geometry and fpp_diameter_cm. Those two older settings (Four-Point Probe tab: specimen shape and diameter) still drive the F₂ geometry factor (ASTM F84 Table 3 or the closed-form image solution; see Data outputs) behind every Rs_ohm_sq in the data rows. The fpp_sample_* keys feed only the position check. The two are tied together as follows:
- While
fpp_sample_shapeisunbounded, the outline is derived from the legacy keys, so an existing profile needs no change:circlewithfpp_diameter_cm= D gives a circle of diameter 10·D mm;square,rectangle_2,rectangle_3,rectangle_4give a rectangle whose width is 10·D mm and whose length is 1, 2, 3 or 4 times that;fpp_diameter_cm= 0 gives an unbounded sheet, for which no position check is made. - When
fpp_sample_shapenames a shape, that outline is used for the position check, with any aspect ratio. The rows still use the legacy keys. If the two describe different samples the run is allowed andPOST /settings/resolvereturns awarningissue onfpp_sample_shapesaying so; the file then shows the disagreement as a largespot.relative_error_rows.
The desktop app has the first six in the Sample group of the four-point settings panel. The PySide6 window has no fields for them at this commit; there, set them in config.json (or through PATCH /profiles/{user}). An API run can send them as overrides.
Four-point current finder¶
| Setting | Default | Bounds | What it does |
|---|---|---|---|
Auto-select current (fpp_autoselect_current) |
False |
on / off | Before the run, probe the sample and choose the source current. fpp_current (Source current) is then the current the probe is made at, not necessarily the one the run uses. |
Target sig figs (fpp_autoselect_sigfigs) |
4 |
1 – 6 |
Significant figures the finder aims for: a sense voltage of 10ⁿ times the noise floor the probe measured. |
With the setting on, a four-point run starts with a current-reversal probe at fpp_current: nine +I / −I pairs, the first thrown away, which give V/I and, as the noise floor, the scatter of the eight pair values (never taken as less than 1 µV). The run then sources the smallest current, not below 1 µA, whose sense voltage reaches the target; the current is capped where the sense voltage would pass half of fpp_voltage_compliance, at the connected model's current limit, and where current × compliance would pass fpp_power_stop_w. When the target is met inside those caps the run goes on at that current without asking. Otherwise it asks Proceed / Abort with the output off (prompt fpp_current_decision through the API): when the capped current falls short of the target, when it gives less than one significant figure, and when the sample is too resistive, meaning 1 µA would already need more than half the compliance voltage or the source is still in compliance at 1 µA. Abort, or no answer within the prompt's timeout, ends the run before a data file is opened.
The file name and params.source_current_A carry the current the run used; the header also records the one asked for (Data outputs → Four-Point Probe). The PySide6 window has both fields on the Four-Point Probe tab, the desktop app in the Auto-select current group of the four-point panel. Checked against the simulator only at this commit.
I-V sweep compliance¶
sweep_compliance limits the quantity the sweep measures, so its unit follows sweep_source:
sweep_source |
sweep_compliance is a |
Bounds | Default |
|---|---|---|---|
voltage |
current limit | 1e-7 – 3.15 A |
0.1 |
current |
voltage limit | 1e-7 – 210 V |
0.1 |
3.15 A is the compliance ceiling of the 3 A class (2420, 2425) and 210 V that of the 2400's 200 V range. They are the family's envelope, not the connected model's; the instrument rejects what it cannot do. The value is not converted when you switch the source: 0.1 means 0.1 A on a voltage sweep and 0.1 V on a current sweep. sweep_start and sweep_stop are bounded at ±200 and sweep_step at 200 for both sources.
Hazardous-voltage check. For a voltage-sourced sweep the voltage that counts is max(|sweep_start|, |sweep_stop|); for a current-sourced sweep it is sweep_compliance, because an open circuit drives the output to its voltage limit. When that value reaches the touch-safety threshold, the PySide6 window shows its warning dialog before starting, and a run started through the API stops at a safety_voltage_ack prompt before the instrument is opened (see API → Prompts). POST /settings/resolve reports the same check as hazard without starting anything.
Auto-Zero lives on each tab, not in Settings
Pre-v1.10 it was here, but per-tab makes more sense: 4PP and vdP force auto_zero='on' regardless; sensor modes (resistance, source_v, source_i) expose the knob on the tab itself so re-tuning the speed/accuracy trade doesn't require a Settings dialog detour.
Display tab¶
| Setting | Default | Notes |
|---|---|---|
| Enable Real-time Plots | True |
Disable for high-rate runs (>50 Hz) where rendering eats CPU |
| Resistance Plot Color | #D55E00 (Wong vermillion) |
Matches the V/I/R/P live-readout label colors |
| V Source Plot Color | #0072B2 (Wong blue) |
|
| I Source Plot Color | #009E73 (Wong green) |
|
| Data Buffer Size (points) | 0 (Unlimited) |
0 = no cap. pyqtgraph downsamples on render (peak-mode + clipToView) so a 17-hour / 270k-sample run is ~13 MB and stays smooth. Set a finite cap only if RAM is tight. |
Pre-v1.10 buffer-size default was 1000
Old configs that explicitly set buffer_size to a small number silently truncated the live trace on overnight runs. New default is unlimited; existing configs override unless you reset.
File tab¶
| Setting | Default | Notes |
|---|---|---|
| Auto-save Interval | 60 s |
How often to flush data to disk during a measurement. Lower = less data loss on crash, but more I/O. |
| Data Directory | measurement_data |
Root for run output. A subdirectory is created for each user. Browse... button opens a folder picker. |
Output tab¶
See Data Outputs for the full format reference; this tab just selects which backend to use.
| Setting | Default | Notes |
|---|---|---|
| Output format | csv |
One of: csv (default, single .csv with #-prefixed metadata header), hdf5 (requires h5py), csv+legacy_json (pre-2.0 dual emit for back-compat with downstream pipelines) |
| Compression | never |
Applies only to the csv backend. never / always / auto. Default is never because Excel, Origin, and most lab tools can't open .csv.gz directly. HDF5 is always internally gzip-compressed regardless. |
| Auto-compression threshold | 5 MB |
Only used by the auto compression policy |
HDF5 grayed out?
If h5py isn't installed, the HDF5 option is disabled with a tooltip explaining why. pip install h5py and restart to enable it.
Agent limits¶
The most a run started by an AI agent may put on the device (API → Agent limits). They are a section of the profile of their own, agent_limits, beside measurement; the desktop app edits them under Settings → AI agents, and the PySide6 window does not show them. They never apply to a run a person starts.
| Setting | Default | Notes |
|---|---|---|
max_voltage_v |
30 V |
Largest voltage an agent's run may source, or allow as compliance. 30 V is the touch-safety threshold's default, the IEC 61010-1 SELV bound. |
max_current_a |
none | Largest current an agent's run may source, or allow as compliance. |
max_power_w |
none | Largest voltage times current an agent's run could deliver. |
None (an empty field) means no cap beyond the instrument's own limits; a cap is a number greater than 0. Only the window can change them: through the API a role other than ui gets 403, and a run request may not send them as overrides.
Raising max_voltage_v does not take the person out of the loop. Every agent-started run at or above the profile's touch-safety threshold waits for a person to acknowledge it at the window, even on a profile where the warning was silenced: safety_voltage_warn_silenced applies only to runs a person starts (API → An agent's run always asks).
Configuration storage¶
Settings are kept in config.json in the working directory (gitignored — per-user, not portable). Structure mirrors the four Settings tabs:
{
"measurement": {...},
"display": {...},
"file": {...},
"output": {...},
"agent_limits": {...},
"users": ["alice", "bob"],
"last_user": "alice",
"user_settings": {
"alice": {"measurement": {...}, ...},
"bob": {"measurement": {...}, ...}
}
}
When a user is selected, their per-user overrides deep-merge on top of the global defaults, and the current PC's machine-local values are filled in from ~/.resistamet/machine.json. The file is written atomically (temporary file, fsync, then rename), so a crash during a save leaves the previous file intact. A save takes an operating-system lock on config.json.lock, re-reads the file and applies only what this program changed, so the PySide6 window and a backend on the same PC do not undo each other's edits (two users added from two programs are both kept; the same key changed in both ends with the later value). The lock does not reach across a file-sync service: between two PCs sharing the file that way, the last sync still wins. Editing this file by hand works but is error-prone — prefer the dialog. A config.json that cannot be read (a half-synced file, say) is left exactly as found: ResistaMet runs on the defaults in memory, and copies the unreadable file aside before the first deliberate save writes over it. To start over, delete the file and ResistaMet will recreate it from DEFAULT_SETTINGS (in resistamet_gui/constants.py).
Profiles menu¶
The top-level Profiles menu has two entries that operate on the currently-active tab (Resistance / Voltage Source / Current Source / Four-Point Probe — Sweep and vdP are excluded):
- Save Profile for Current Mode... writes the active tab's measurement settings to a
.jsonfile (suggested name<mode>_profile.json). Useful for "sensor A typical run" vs "sensor B typical run" templates that you swap between samples. - Load Profile to Current Mode... reads a
.jsonand applies known fields to the active tab's widgets. Unknown fields are ignored. Legacyfpp_thickness_cmis auto-converted tofpp_thickness_umfor backward compatibility.
These are file-level profiles distinct from the per-user settings stored in config.json. They don't move the GPIB address (which is machine-local).
Results Viewer tab¶
A 7th tab "Results Viewer" is included by default. It lets you:
- Open any v2.0
.csvor.csv.gzfile produced by ResistaMet GUI (also accepts older legacy CSVs) - Pick any column from the dropdown to plot vs
elapsed_s - Read the trailing metadata (run mode, sample name, start time) into the status log
No write-back — it's strictly a post-run viewer.
Per-tab settings (not in this dialog)¶
Some settings live on the individual mode tabs because they're per-measurement-context, not session-wide:
- Auto Zero — Resistance / Voltage Source / Current Source tabs (each)
- Enhanced accuracy — Resistance tab (separate from the global Settings checkbox, which sets the default)
- Source Range Auto / Voltage Range Auto — every tab
- Cable null — Resistance tab
- Delta mode (current reversal) — Four-Point Probe tab Advanced section
- Auto-select current / Target sig figs — Four-Point Probe tab (see Four-point current finder)
- Geometry / dopant / temperature — Four-Point Probe tab (drive F84 corrections)
- Sample thickness — Four-Point Probe and Van der Pauw tabs
- Sweep start / stop / step / direction / per-step delay / measurement type — I-V Sweep tab (
sweep_measurement_type:2-wireby default, or4-wirefor remote sense)
These follow the same per-user persistence — they're written into the user's section of config.json when the user clicks Save Settings on the active tab.