CAPL Script

Can Set Channel Output

Note This function can only be used with Vector drivers. Thevcndrvms.DLLmust be at least Version 4.2.40.

Syntax

long canSetChannelOutput(long channel, long silent);

Function

Defines the response of the CAN controller to the bus traffic and sets the ACK bit.The CAN transmitter of the channel is switched off. SoCANoedoes not generate an Ack bit here, and messages can no longer be sent. It is still possible to receive messages.

Parameters

CANchannel

silent

Return Values

0: ok

!=0: error

on key 's'{long channel =2;long silent =0;canSetChannelOutput(channel,silent);Write("silent set to %d",silent);}

canSetChannelAcc | canSetChannelMode