Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Function useSignalData

    • A hook for extracting signal data from the measurement context.

      Parameters

      • id: number

        The unique id of the view.

      • subscriptionName: string

        The subscription name for the data. Must be unique per view.

      • subscribedSignals: { qualifiedName: string; sourceId?: string }[]

        The signals to extract data for. To avoid unnecessary re-renders, memoize this object.

      Returns ISignalData[]

      The extracted signal data. If an empty array is returned, all previously received data is invalid and should be discarded.

      This hook buffers incoming frame data during initialization (before frame keys and historical data are ready) and merges it with historical data once available.