diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d08775a..46caf2b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -32,7 +32,7 @@ Check every value against Ocean Insight's protocol documentation for the model a
## If you have an instrument but do not write code
-Open Spektra, press **Connect HDX** and select your instrument. If it is not supported yet, Spektra shows a
+Open Spektra, press **Connect** and select your instrument. If it is not supported yet, Spektra shows a
report and an **Open a GitHub issue** button that fills in the issue for you; you can read everything before
submitting. If your instrument opens as *experimental*, please report whether spectra, wavelengths and
exposure look right. Someone with the hardware is needed to verify a profile anyway.
diff --git a/README.md b/README.md
index debb773..ee40818 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ Application: · Version 2.0.0 ([changelog
## Getting started
1. Open in Google Chrome or Microsoft Edge.
-2. Connect the HDX and press **Connect HDX**; select the instrument in the browser's device dialog.
+2. Connect the HDX and press **Connect**; select the instrument in the browser's device dialog.
3. Press **Live** for continuous acquisition or **Acquire** for a single spectrum.
On first start, Spektra checks the operating system and browser and lists any preparation still required
diff --git a/index.html b/index.html
index 849cdfc..f137e1e 100644
--- a/index.html
+++ b/index.html
@@ -57,9 +57,9 @@
No deviceSIMULATED
-
+
-
+
@@ -147,7 +147,7 @@
-
No spectrum yetConnect the HDX, then press Live or Acquire.
+
No spectrum yetConnect the spectrometer, then press Live or Acquire.
Getting started
@@ -156,7 +156,7 @@
- Connect the HDXPlug it in over USB and choose it in the browser’s dialog.
+ Connect the spectrometerPlug it in over USB and choose it in the browser’s dialog.
diff --git a/src/export.js b/src/export.js
index c9569b4..0524611 100644
--- a/src/export.js
+++ b/src/export.js
@@ -46,7 +46,7 @@ export function exportSpectrum() {
if (!S.frame) return;
const { wl, inten } = S.frame;
const { offset, factor } = energySpectrum(wl, inten);
- const lines = metaHeader("Spektra — HDX spectrum", [
+ const lines = metaHeader("Spektra — spectrum", [
"# intensity: counts per pixel",
`# intensity_per_mev: Jacobian conversion (intensity - ${offset.toFixed(1)} offset) / pixel width in meV, i.e. I(lambda)*lambda^2/hc`,
]);
@@ -80,7 +80,7 @@ export function exportPlotPng() {
export function exportPeaks() {
if (!S.frame || !S.peaks.length) return;
const range = S.sel ? `${S.sel.lo.toFixed(3)}-${S.sel.hi.toFixed(3)} nm` : "whole spectrum";
- const lines = metaHeader("Spektra — HDX detected peaks", [
+ const lines = metaHeader("Spektra — detected peaks", [
`# search_range: ${range}`,
perMev()
? "# measured_on: energy axis, Jacobian-converted (height in counts/meV, area in counts)"
diff --git a/src/main.js b/src/main.js
index 65ed567..132bc1b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,4 +1,4 @@
-// Spektra, browser software for the Ocean Insight HDX: live uPlot spectrum, nm/eV axis, range selection and peak detection.
+// Spektra, browser software for Ocean Insight spectrometers (verified on the HDX): live uPlot spectrum, nm/eV axis, range selection and peak detection.
// Entry point: connects the page controls to the modules and starts the app.
import { acquireOnce, applyIntegration, clearDark, connect, takeDark, toggleLive, watchDevice } from "./acquisition.js";
diff --git a/src/ui/controls.js b/src/ui/controls.js
index 1c46ac4..dfaac65 100644
--- a/src/ui/controls.js
+++ b/src/ui/controls.js
@@ -16,7 +16,7 @@ export function updateUi() {
// Opening the device can take a few seconds (longer on phones): say so on the button itself
const connecting = S.busy && !c;
$("connectBtn").classList.toggle("busy", connecting);
- $("connectText").innerHTML = connecting ? "Connecting…" : 'Connect HDX';
+ $("connectText").innerHTML = connecting ? "Connecting…" : "Connect";
$("disconnectBtn").hidden = !c;
$("conn").classList.toggle("on", c);
$("led").className = `led${c ? " on" : ""}${S.live ? " live" : ""}`;
diff --git a/src/ui/diag.js b/src/ui/diag.js
index 580ee6b..fc2ece3 100644
--- a/src/ui/diag.js
+++ b/src/ui/diag.js
@@ -68,7 +68,7 @@ function draw(canvas, series) {
let report = null;
async function run() {
- if (!S.dev) { toast("Connect the HDX first", "bad", 3000, "diag"); return; }
+ if (!S.dev) { toast("Connect the spectrometer first", "bad", 3000, "diag"); return; }
if (S.live || S.busy) { toast("Stop Live first", "bad", 3000, "diag"); return; }
S.busy = true;
$("diagRun").disabled = true;
diff --git a/src/ui/environment.js b/src/ui/environment.js
index 99b7a90..1d55031 100644
--- a/src/ui/environment.js
+++ b/src/ui/environment.js
@@ -1,4 +1,4 @@
-// Start-up system check: detects the OS and browser and explains what is still needed to reach the HDX.
+// Start-up system check: detects the OS and browser and explains what is still needed to reach the spectrometer.
import { MOCK, STORE_ENV } from "../config.js";
import { usbSupported } from "../device/index.js";
@@ -18,7 +18,7 @@ function detectPlatform() {
return { os, browser };
}
-/** What this computer and browser still need before the HDX can be used. */
+/** What this computer and browser still need before the spectrometer can be used. */
function environmentNotes({ os, browser }) {
const notes = [];
if (os === "iOS") {
@@ -44,17 +44,17 @@ function environmentNotes({ os, browser }) {
if (os === "Android" && usbSupported()) {
notes.push({
level: "setup", title: "Android: connect over USB OTG",
- html: "
Connect the HDX (on its own power supply) with a USB-C (OTG) adapter or cable, "
- + "and hold the phone sideways.
",
+ html: "
Connect the spectrometer with a USB-C (OTG) adapter or cable, and hold the phone sideways. "
+ + "The HDX runs on its own power supply.
then run sudo udevadm control --reload-rules && sudo udevadm trigger and replug the HDX.
",
+ + "
then run sudo udevadm control --reload-rules && sudo udevadm trigger and replug the spectrometer. For a model other than the HDX, use its product ID or leave ATTR{idProduct} out.
This browser supports WebUSB and this system needs no driver. Plug in the HDX and press Connect.
";
- $("envTitle").textContent = blocking ? "This browser cannot connect to the HDX" : notes.length ? "Before you connect" : "System check";
+ : "
Ready
This browser supports WebUSB and this system needs no driver. Plug in the spectrometer and press Connect.
";
+ $("envTitle").textContent = blocking ? "This browser cannot connect to the spectrometer" : notes.length ? "Before you connect" : "System check";
$("envHideRow").hidden = blocking || !notes.length;
- // A browser that cannot reach the HDX at all: the notice stays until the page is opened elsewhere
+ // A browser that cannot reach the spectrometer at all: the notice stays until the page is opened elsewhere
$("envDlg").dataset.blocking = blocking ? "1" : "";
$("envActions").hidden = blocking;
$("envDlg").showModal();