Class FPGADataPortClassicPeriodicUpdateTimer

Class representing a timer that periodically updates WireOuts and TriggerOuts and dispatches events to notify subscribers of changes.

Implements

Constructors

Properties

_CancelTimeout?: (() => void)

Function that cancels the timeout used to wait for the next update period.

Type declaration

    • (): void
    • Returns void

_FPGADataPort: IFPGADataPortClassic

FPGA Data Port interface that provides access to WireOuts and TriggerOuts.

_IsRunning: boolean = false

Flag indicating whether the timer loop is currently running.

_IsStopPending: boolean = false

Flag indicating that the timer loop should exit on the next iteration.

_TriggerOutValuesChangedEvent: FPGADataPortClassicEvent = ...

Event that notifies subscribers when TriggerOut values change.

_UpdatePeriodMilliseconds: number

The period in milliseconds between updates.

_UpdateTimer: null | Promise<void> = null

Reference to the update timer loop used to identify when the timer loop has started and when it has exited.

_WireOutValuesChangedEvent: FPGADataPortClassicEvent = ...

Event that notifies subscribers when WireOut values change.

_WorkQueue: WorkQueue

WorkQueue instance used to manage asynchronous tasks.

Accessors

Methods

  • Starts the update timer loop if it is not already running.

    Returns Promise<boolean>

    true if the timer loop was successfully started; false if the timer loop was already started.

  • Stops the update timer loop and returns a promise that resolves when the loop has exited.

    Returns Promise<void>

    A promise that resolves when the timer loop has exited.

  • The main loop for the update timer. It periodically updates WireOuts and TriggerOuts, and dispatches the events.

    Returns Promise<void>

    A promise that resolves when the timer loop has exited.

  • Updates the TriggerOuts and dispatches the TriggerOutValuesChangedEvent.

    Returns Promise<void>

  • Updates the WireOuts and dispatches the WireOutValuesChangedEvent.

    Returns Promise<void>