Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
testWaitScopeGetMessageBits
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
A CAN message stored in the scope buffer will be parsed. For each bit of the message, the signal voltage levels, the bit length, and the bit type will be returned.Parameters
- msg: The message the bits are fetched.
-
setup: The parameter is used to configure the signal parser and has the following format.
ScopeAnalysisSetup Selectors
- samplePoint: Sample point in percent. At this point, the signal level will be measured.
- Classic CAN: Value will be used for all bits of the message.
- CAN FD: Value will be used for the bits of the arbitration phase.
- samplePointDataPhase: Sample point in percent. At this point, the signal level will be measured.
- Classic CAN: Value will not be used.
- CAN FD: Value will be used for the bits of the data phase.
- samplePoint: Sample point in percent. At this point, the signal level will be measured.
-
arraySize:
- [in] the size of the arrays signalData1, signalData2, and signalData3
- [out] the number of bits parsed and stored in the signalData-arrays.
-
signalData1, signalData2, signalData3: If the function was successful, the three arrays will contain information of all bits of the message.
- signalData1: The data of each bit for CAN high
- signalData2: The data of each bit for CAN low
- signalData3: The data of each bit for CAN diff (CAN high - CAN low, or CAN low – CAN high as configured in the scope configuration).
- type: Type of the bit
- typeEx: 0: data bit, 1: stuff bit
- bitValue: Logical bit value (0, or 1)
- startTime: Time stamp of bit start in ns
- bitLength: Length of the bit in ns
- signalVoltage: Signal voltage at the sampling point
- signalPolarity: Signal polarity:
- 0 = CAN high - CAN low
- 1 = CAN low - CAN high
Return Values
- 1: success
- 0: timeout
- -1: general error
- -2: scope drift compensation error
- -3: scope has no measurement data
- -100: bit analyzer parser error
- -105: array size too small