Software & code /

DIFFATONCE / SPECTROMETER CALIBRATION · 1.0

Calibrate before you measure.

Prepare the instrument, fit the 90° pulse and calibrate the DOSY scale through a TopSpin interface. Review every step while retaining original templates and data.

Self-contained script · PDF manuals · Instrument-free demonstration

One workflow from preparation to results · Simulated demonstration
Real interface · Simulated dataOne workflow from preparation to results

Five tabs, a language selector and controls for reviewing context before execution.

01 / PREPARATION

A stable sample.
A working copy.

First confirm the context: sample, probe, solvent, channel, power and temperature.

01

Retain the template

Create a parameter-only copy, for example 1050 from experiment 1000. Existing destinations are rejected and originals are retained.

02

Prepare the instrument

Enable LOCK, ATMA tuning and matching, and TOPSHIM separately according to hardware and configuration. Review lock and line shape after execution.

03

Review temperature

Query the controller and set the temperature demand within explicit limits. Allow the sample to equilibrate: stored TE does not establish its actual temperature.

The copy does not automatically update your P1 and DOSY templates. Review which experiment you will use and retain the originals.

02 / 90° PULSE

Find the first null.
Keep the sign.

Start from experiment 1000 with a reviewed zg template. Vary P1 while retaining RF power, RG, NS, D1 and phase. Integrate the same isolated signal throughout the series.

First 180° nullP90 = P180 / 2Simulated example: 22 µs / 2 = 11 µs

The curve should include a positive maximum, first null and negative signal. Review the fit and residuals before applying P1 to a new EXPNO.

Read the complete procedure ↗
The sign reveals the first null · Simulated demonstration
Real interface · Simulated dataThe sign reveals the first null

Simulated example: first 180° null at 22 µs and fitted P90 of 11 µs. The result depends on the channel and power used.

A reference for the DOSY scale · Simulated demonstration
Real interface · Simulated dataA reference for the DOSY scale

Simulated ramp and fit with Dref = 1.15 × 10⁻⁹ m²/s and b100 = 2 × 10⁹ s/m². These are demonstration values.

03 / DOSY CALIBRATION

One standard signal.
A traceable scale.

Select the integration region, reference D, its temperature and its source. The series retains the pulse sequence, gradient shape and diffusion timings.

Fit ln(I/Imax) against (GPZ6/100)²b100 = |slope| / DrefDref in m²/s → b100 in s/m²

The fit uses positive signal integrals with common phase. Changing Δ, δ or the sequence requires another calibration or a verified model. The GUI prepares one diffusion condition per series.

The DOSY profile is saved for review. The spectrometer’s global calibration is not overwritten.

IN THE TOPSPIN COMMAND LINE

Open the interface.
Review before running.

Copy the self-contained script into your installation’s user-script folder, following your laboratory procedure.

<TopSpin>/exp/stan/nmr/py/user/
xpy spectrometer_calibration_gui.py

Requires the TopSpin Java/Jython environment with TopCmds and Swing. The demonstration uses run_demo.ps1 and an existing local runtime; it installs no dependencies.

  1. Read the current dataset

    Check communication from the GUI and verify the starting context. Opening the window starts no acquisition.

  2. Preview the plan

    Configure templates, parameters, ramps and unused destinations. Prepare series creates parameters only; Acquire and fit runs ZG/EFP.

  3. Review and save

    Inspect signals, fit and residuals. Retain JSON, CSV, journals and the DOSY HTML report. Analyze series uses already available spectra.

SOFTWARE + DOCUMENTATION

Download the complete workflow.

Version 1.0 · 3 October 2026.
The package includes the interface, manuals and demonstration.

ZIP · ES / EN

Spectrometer Calibration

Self-contained TopSpin script, source code, configuration, tests and bilingual documentation.

Download package ↓
PDF · ES

Spanish manual

28 pages with interface images, instrument preparation, a P1 example, DOSY calibration and troubleshooting.

Open ES manual ↗
PDF · EN

English manual

The same complete practical guide in English, with controls and interface images in that language.

Open EN manual ↗

File manifest and SHA-256

SCOPE AND VERIFICATION

What has been checked.

Software tests

51 / Jython

51 cases pass in Jython 2.7.2. CPython passes 41 and skips 10 Java-specific cases. Simulated API: copies, preservation, collisions, signs, fitting and stopping between points.

Native check

TopSpin 3.8.0

Launch and a CURDATA read were confirmed in the source GUI through CmdThread. The check issued no hardware commands, parameter writes or acquisitions.

Pilot required

TopSpin 3.6.4

Prepared for the requested workflow; real acquisition and complete compatibility remain to be checked on the target instrument. Review commands, return status, probe, power and experimental quality.

Scope: guided preparation, channel-1 P1 and standard-based DOSY scale. This does not include T1, other channels, service calibration or validation of actual sample temperature. Images on this page are renders of the real Swing interface with simulated data.

PRACTICAL QUESTIONS

Before your first series.

The manual brings together fields, examples and review criteria for every step.

Do I always divide P1 by two?

Only when that P1 is the first 180° null in an appropriate zg series. A 360° null is divided by four. The value is specific to channel and power; retain sign and phase when locating it.

Does the GUI generate three Δ values in one run?

This calibration GUI uses one template diffusion condition per series. To change Δ, prepare another series and verify its b scale. The three-ramp generator is a separate tool.

What does “Stop after point” mean?

It is a cooperative stop: the running ZG/EFP point finishes and the next point is not started. It is not an immediate RF-abort button.

What changes when I apply P1?

After result review, a new EXPNO receives a parameter-only copy with updated P1. Power and, when recorded, nucleus and probe are checked. The action acquires no data and retains the original.

Real interface screenshot · Simulated data · Not an experimental result

Open original image in a new tab ↗

DIFFATONCE / MOLECULAR DIFFUSION

Your next question
starts in the spectrum.

Explore the DiffAtOnce family ↗