impure functionLogicAnalyzer_record

Records the logic levels of the channels of a LogicAnalyzer at the current instant

Information

impure: called from a when at each level change. Called several times at the same instant (event iterations), only the last levels of the instant are written.

Inputs

TypeNameDefaultDescription
LogicAnalyzerCapturean
RealcurrentTime
Integer[:]levelsLogic level of each channel (0/1) - Integer, never Boolean, in an array passed to C

Outputs

TypeNameDefaultDescription
IntegercallsNumber of calls so far, so that the when clause has a variable to assign