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

    Interface SignalValue

    A message that holds a signal's value.

    interface SignalValue {
        decimals?: number;
        doubleValue: number;
        name: string;
        qualifiedName: string;
        stringValue?: string;
        unit: string;
    }
    Index
    decimals?: number

    Number of decimals (0-9) that the signal's scaling can express exactly, intended for formatting double_value. Since a physical value is computed as raw * factor + offset in double precision, printing it unrounded exposes artefacts such as 123.00000000000001 for a factor of 0.1; rounding to this many decimals removes them without losing real precision. Absent when the scaling does not determine the count, which is the case for float and double signals that carry their fractional precision in the payload rather than in the scaling.

    doubleValue: number

    Numeric representation of the signal value.

    name: string

    Name of the signal.

    qualifiedName: string

    Qualified name of the signal.

    stringValue?: string

    Text representation of the signal value if this is an enumeration signal.

    unit: string

    Unit of the signal.