Table of Contents

Class StepTimeShotUtil

Namespace
Hi.Mapping
Assembly
HiMech.dll

Utility methods for working with time-based shots (measurements) and mapping them to machining steps.

public static class StepTimeShotUtil
Inheritance
StepTimeShotUtil
Inherited Members

Methods

GetStepToShotsDictionaryByActualTime(ClStrip, Range<int>, CycleSamplingMode, string, GetTimeShotByFileDelegate)

public static Dictionary<int, List<ITimeShot>> GetStepToShotsDictionaryByActualTime(ClStrip clStrip, Range<int> stepSection, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, string timeShotRelFile, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc)

Parameters

clStrip ClStrip
stepSection Range<int>
cycleSamplingMode StepTimeShotUtil.CycleSamplingMode
timeShotRelFile string
getTimeShotByRelFileFunc StepTimeShotUtil.GetTimeShotByFileDelegate

Returns

Dictionary<int, List<ITimeShot>>

GetTimeShotByFile(string, Action<int>, CancellationToken?)

Gets time shots from a file, reading and parsing force acceleration data.

public static List<ITimeShot> GetTimeShotByFile(string file, Action<int> LineReaded, CancellationToken? cancellationToken = null)

Parameters

file string

The file path to read time shots from.

LineReaded Action<int>

Action to call when a line is read, providing progress feedback with the current line number.

cancellationToken CancellationToken?

Optional cancellation token to cancel the reading operation.

Returns

List<ITimeShot>

A list of time shots read from the file, or null if the file cannot be read or is invalid.