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, CycleSamplingMode, string, GetTimeShotByFileDelegate, IDictionary<int, List<ITimeShot>>, SessionMessageHost, CancellationToken?)

public static void GetStepToShotsDictionaryByActualTime(ClStrip clStrip, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, string timeShotRelFile, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc, IDictionary<int, List<ITimeShot>> dstStepToShotsDictionary, SessionMessageHost sessionMessageHost, CancellationToken? cancellationToken)

Parameters

clStrip ClStrip
cycleSamplingMode StepTimeShotUtil.CycleSamplingMode
timeShotRelFile string
getTimeShotByRelFileFunc StepTimeShotUtil.GetTimeShotByFileDelegate
dstStepToShotsDictionary IDictionary<int, List<ITimeShot>>
sessionMessageHost SessionMessageHost
cancellationToken CancellationToken?

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.