Archived
deploy.
This commit is contained in:
@@ -0,0 +1,207 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Cycle-Line Charts | HiAPI-C# 2025 </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Cycle-Line Charts | HiAPI-C# 2025 ">
|
||||
|
||||
|
||||
<link rel="icon" href="../../img/HiAPI.favicon.ico">
|
||||
<link rel="stylesheet" href="../../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../../public/main.css">
|
||||
<meta name="docfx:navrel" content="../../toc.html">
|
||||
<meta name="docfx:tocrel" content="toc.html">
|
||||
|
||||
<meta name="docfx:rel" content="../../">
|
||||
|
||||
|
||||
|
||||
<meta name="loc:inThisArticle" content="In this article">
|
||||
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
||||
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
||||
<meta name="loc:tocFilter" content="Filter by title">
|
||||
<meta name="loc:nextArticle" content="Next">
|
||||
<meta name="loc:prevArticle" content="Previous">
|
||||
<meta name="loc:themeLight" content="Light">
|
||||
<meta name="loc:themeDark" content="Dark">
|
||||
<meta name="loc:themeAuto" content="Auto">
|
||||
<meta name="loc:changeTheme" content="Change theme">
|
||||
<meta name="loc:copy" content="Copy">
|
||||
<meta name="loc:downloadPdf" content="Download PDF">
|
||||
|
||||
<script type="module" src="./../../public/docfx.min.js"></script>
|
||||
|
||||
<script>
|
||||
const theme = localStorage.getItem('theme') || 'auto'
|
||||
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
|
||||
<header class="bg-body border-bottom">
|
||||
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
||||
<div class="container-xxl flex-nowrap">
|
||||
<a class="navbar-brand" href="../../index.html">
|
||||
<img id="logo" class="svg" src="../../img/HiAPI.logo.png" alt="">
|
||||
|
||||
</a>
|
||||
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="bi bi-three-dots"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navpanel">
|
||||
<div id="navbar">
|
||||
<form class="search" role="search" id="search">
|
||||
<i class="bi bi-search"></i>
|
||||
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container-xxl">
|
||||
<div class="toc-offcanvas">
|
||||
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
||||
<div class="offcanvas-header">
|
||||
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<nav class="toc" id="toc"></nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="actionbar">
|
||||
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
||||
<i class="bi bi-list"></i>
|
||||
</button>
|
||||
|
||||
<nav id="breadcrumb"></nav>
|
||||
</div>
|
||||
|
||||
<article data-uid="Anatomy-CycleLineCharts">
|
||||
<h1 id="cycle-line-charts">Cycle-Line Charts</h1>
|
||||
|
||||
<p>The cycle-line charts visualise a <strong>per-step, per-cycle detail view</strong> of force / moment signals around the currently-selected step. They are re-fetched whenever the step selection changes, so the operator can zoom into one spindle revolution (or the configured cycle window) while scrubbing through the mission timeline on the strip charts.</p>
|
||||
<p>They sit in the Step Info column of the <a href="index.html">Execution Page</a>, below Step Properties and CWE. The anatomy covers four, all sharing <code>BaseCycleLineChart.vue</code>, in the order the column stacks them:</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Chart</th>
|
||||
<th>Source Data</th>
|
||||
<th>Cycle parameter</th>
|
||||
<th>Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Sim Cutting Force Cycle</td>
|
||||
<td><code>MachiningStep.ForceToWorkpieceOnProgramCoordinate</code> or <code>ForceToToolOnToolRunningCoordinate</code></td>
|
||||
<td>spindle angle (deg)</td>
|
||||
<td>Header dropdown picks between the two flag values; swaps the <code>fetcher</code> prop so <code>BaseCycleLineChart</code> refetches.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sim Spindle Moment Cycle</td>
|
||||
<td><code>MachiningStep.MomentsToToolAboutObservationPointOnSpindleRotationCoordinate_Nm</code></td>
|
||||
<td>spindle angle (deg)</td>
|
||||
<td>Simulated moment from the physics model. Carries the locus (dartboard) mode.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sensor Cutting Force Cycle</td>
|
||||
<td><code>IForceShot</code> via <code>TimeMapping.GetShots(stepIndex)</code></td>
|
||||
<td>time (s)</td>
|
||||
<td>Dynamometer-measured force. Returns an empty shape when there is no dynamometer data.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sensor Spindle Moment Cycle</td>
|
||||
<td><code>IMomentShot</code> via <code>MachiningProject.TimeMapping.GetShots(stepIndex)</code></td>
|
||||
<td>time (s)</td>
|
||||
<td>Sensor-measured moment. Rendered as a sibling card to the sim chart rather than a twin overlay, which keeps the two uplot instances independent. Carries the locus (dartboard) mode.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>The parameter split is the reason the two pairs never share a cursor: a simulated cycle is indexed by phase, a measured one by clock.</p>
|
||||
<p>Key Model: <a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html">MachiningProject</a>.<a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html#Hi_MachiningProcs_MachiningProject_TimeMapping">TimeMapping</a> + the selected <a class="xref" href="../../api/Hi.MachiningSteps.MachiningStep.html">MachiningStep</a>.</p>
|
||||
<h2 id="layout">Layout</h2>
|
||||
<p>Each cycle-line chart is a collapsible panel:</p>
|
||||
<ul>
|
||||
<li>Header Row
|
||||
<ul>
|
||||
<li>Title label.</li>
|
||||
<li>Flag picker (Sim Cutting Force chart only) — a <code><q-btn-dropdown></code> between <code>ForceToWorkpieceOnProgramCoordinate</code> (default) and <code>ForceToToolOnToolRunningCoordinate</code>.</li>
|
||||
<li>Mode picker (<code>enableLocus</code> charts only — the two spindle-moment charts) — <code>Line</code> / <code>Dartboard</code>.</li>
|
||||
<li>Value-boundary dropdown — <code>Auto</code>, or <code>Fixed</code> with a ± bound that pins the y range symmetrically so two steps can be compared without the axis moving. Its label reads the bound when one is set.</li>
|
||||
<li>Reload.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Body — <code>UplotChart.vue</code> rendering three series (X / Y / Z channels) over the cycle parameter <code>ts</code>, or <code>XyLocusChart.vue</code> in dartboard mode, which plots the same samples as a locus in the plane. The line-mode legend width is shared by every line-mode cycle chart, as the strip charts share theirs; the locus view has no legend divider and is unaffected.</li>
|
||||
<li>Empty-state overlay — <code>No step selected</code> with nothing picked, <code>Not ready</code> before the payload arrives, <code>No data for step</code> when the step carries none. The underlying series still carry a shape-preserving <code>ts=[0,360]</code>, <code>xs/ys/zs=[NaN,NaN]</code> payload so the canvas does not jump. The two sensor charts read <code>No data for step</code> for every step of a project with no <code>TimeMapping</code> shot data, which is the normal state of a project that has not been measured.</li>
|
||||
</ul>
|
||||
<h2 id="behavior">Behavior</h2>
|
||||
<ul>
|
||||
<li><strong>Step-driven refetch.</strong> <code>BaseCycleLineChart</code> accepts a <code>fetcher: () => Promise<CycleLineResponse></code> prop. The step-selection push arrives on <code>/clStripHub</code> as <code>StepSelected</code>; the fetcher is re-invoked and the chart re-renders.</li>
|
||||
<li><strong>Server-resolved step.</strong> The cycle-line endpoints resolve “currently-selected step” from <code>LocalProjectService.ClStrip.GetSelectedPos()</code> rather than accepting <code>stepIndex</code> as a query parameter. This keeps the contract simple and matches the event-driven model used by the rest of the execution plumbing.</li>
|
||||
<li><strong>Toolbar slot.</strong> The optional <code>#toolbar</code> slot lets callers embed per-chart controls (such as the force chart's flag picker) without subclassing.</li>
|
||||
<li><strong>Shared cursor mark, in two groups.</strong> Clicking a point publishes that sample's cycle <em>parameter</em> — not its index — to a module-scoped mark shared by the group: <code>sim</code> for the two simulated charts (spindle angle), <code>sensor</code> for the two measured ones (seconds). Each chart draws the mark as a vertical line in line mode and a highlighted point in dartboard mode, and the mark survives both a mode switch and a change of selected step. The split is deliberate: a click on a simulated chart must not move a sensor-side cursor, because the two axes are not the same quantity.</li>
|
||||
<li><strong>The <code>sim</code> mark reaches outside the chart family.</strong> The CWE panel of the <a href="index.html">Execution Page</a>'s Step Info column watches it and pushes the angle to its own displayee, so the flute overlay in the engagement view rotates to the phase clicked on a force or moment chart. The angle persists on that displayee across steps — the server re-applies it with each step's spin direction — so it is pushed only on (re)connect and on a new click.</li>
|
||||
</ul>
|
||||
<h2 id="source-code-path">Source Code Path</h2>
|
||||
<p>See <a class="xref" href="../index.html">HiNC App Anatomy</a> for git repository links.</p>
|
||||
<p>HiNC-2025-webservice (Quasar CLI SPA):</p>
|
||||
<ul>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/BaseCycleLineChart.vue</code> — shared cycle-line skeleton.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/UplotChart.vue</code> — uplot wrapper (shared with the strip charts).</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/XyLocusChart.vue</code> — the dartboard (locus) renderer used in place of the uplot chart in that mode.</li>
|
||||
<li><code>wwwroot-src/src/composables/useCycleSyncMark.ts</code> — the two module-scoped cursor marks and their group keys.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/StepVolumePanel.vue</code> — the CWE panel that follows the <code>sim</code> mark to rotate its flute overlay.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/ForceCycleLineChart.vue</code> — force cycle-line chart with the flag picker.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/SimSpindleMomentCycleLineChart.vue</code> — simulated spindle moment.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/SensorSpindleMomentCycleLineChart.vue</code> — sensor-measured spindle moment.</li>
|
||||
<li><code>wwwroot-src/src/components/execution/charts/DynamometerForceCycleLineChart.vue</code> — dynamometer force.</li>
|
||||
<li><code>Execution/ExecutionChartsController.cs</code> — cycle-line endpoints:
|
||||
<ul>
|
||||
<li><code>GET /api/execution/cycle-line/force?flag=ForceToWorkpieceOnProgramCoordinate|ForceToToolOnToolRunningCoordinate</code></li>
|
||||
<li><code>GET /api/execution/cycle-line/sim-spindle-moment</code></li>
|
||||
<li><code>GET /api/execution/cycle-line/sensor-spindle-moment</code></li>
|
||||
<li><code>GET /api/execution/cycle-line/dynamometer-force</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>All four endpoints return <code>{ hasData, ts, xs, ys, zs }</code> flattened for direct uplot consumption. Empty payloads use a shape-preserving <code>ts=[0,360]</code>, <code>xs/ys/zs=[NaN,NaN]</code> fill.</p>
|
||||
<h2 id="see-also">See Also</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">Execution Page</a> — the page whose Step Info column hosts these charts</li>
|
||||
<li><a href="strip-charts.html">Strip Charts</a> — windowed mission-timeline charts that share the same <code>uplot</code> engine and drive step selection</li>
|
||||
<li><a href="../../manual/run/inspecting-a-step.html">Inspecting a Step</a> — the task these charts serve, with the two scales and the shared mark read as a procedure</li>
|
||||
</ul>
|
||||
|
||||
</article>
|
||||
|
||||
<div class="contribution d-print-none">
|
||||
</div>
|
||||
|
||||
<div class="next-article d-print-none border-top" id="nextArticle"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="affix">
|
||||
<nav id="affix"></nav>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="container-xxl search-results" id="search-results"></div>
|
||||
|
||||
<footer class="border-top text-secondary">
|
||||
<div class="container-xxl">
|
||||
<div class="flex-fill">
|
||||
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user