Skip to main content
Open topic with navigation CAPL Functions » MOST » mostGenerateLightError

mostGenerateLightError

Valid for: CANoe DE Note
This functionality is available for VN2600/VN2610/VN2640 hardware and OptoLyzerOL3150o (firmware version >= V1.5.3).

Function Syntax

long mostGenerateLightError(long channel, long lightofftime, long lightontime, long repeat);

Description

Starts (repeat > 0) or stops (repeat = 0) generation of Light-ON-OFF transitions. For OptoLyzerOL3150o: The stress network interface controller (NIC) must have active bypass or bypass opened (see mostSetStressNodeParameter).

Parameters

  • channel: Channel of the connected interface.
  • lightofftime: Time during which no light is emitted (in ms).
  • lightontime: Time during which modulated light is emitted (in ms).
  • repeat:
    • 0: Stop Light-Off-On transitions
    • >0: Number of Light-Off-On transitions
    • 0xFFFF: Generate Light-Off-On transitions continually

Return Values

See error codes

Example

mostGenerateBusloadAsyncmostGenerateBusloadCtrlmostGenerateLockErrorOnMostStressmostGetChannelon mostLightLockError