Added focus velocity control
This commit is contained in:
parent
45e26b33af
commit
59136b8b12
1 changed files with 10 additions and 3 deletions
|
|
@ -14,10 +14,12 @@
|
||||||
<button type="button" onclick="getStagePositions();">Update</button>
|
<button type="button" onclick="getStagePositions();">Update</button>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="stageVelocityInput">x-y stage velocity:</label>
|
Velocity:
|
||||||
<br>
|
<br>
|
||||||
<input type="range" name="stageVelocityInput" min="50" max="200" value="100" oninput="updateStageVelocity(this.value);">
|
x-y: <input type="range" name="stageVelocityInput" min="50" max="200" value="100" oninput="updateStageVelocity(this.value);">
|
||||||
<input type="text" id="stageVelocityText" value="100" disabled>
|
<input type="text" id="stageVelocityText" value="100" size="3" disabled>
|
||||||
|
z: <input type="range" name="focusVelocityInput" min="10" max="100" value="20" oninput="updateFocusVelocity(this.value);">
|
||||||
|
<input type="text" id="focusVelocityText" value="20" size="3" disabled>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Scroll focus: <input type="checkbox" id="scrollFocusCheck" checked>
|
Scroll focus: <input type="checkbox" id="scrollFocusCheck" checked>
|
||||||
|
|
@ -58,6 +60,11 @@
|
||||||
stageVelocity = val;
|
stageVelocity = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateFocusVelocity(val) {
|
||||||
|
document.getElementById('focusVelocityText').value = val;
|
||||||
|
focusVelocity = val;
|
||||||
|
}
|
||||||
|
|
||||||
function updateStagePositions(response) {
|
function updateStagePositions(response) {
|
||||||
document.getElementById('x_abs').value = response["x"];
|
document.getElementById('x_abs').value = response["x"];
|
||||||
document.getElementById('y_abs').value = response["y"];
|
document.getElementById('y_abs').value = response["y"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue