on ethernetPacket
Open topic with navigation CAPL Functions » Ethernet » Function Overview » on ethernetPacketFunction Syntax
on ethernetPacket *; // form 1on ethernetPacket msgChannel<X>.*; // form 2on ethernetPacket ethernetPort::<Network>::<PortName>.*; // form 3
Description
The event procedure is called on the receipt of a valid Ethernet packet. To access the control information you would use selectors. The keyword this is available within an on ethernetPacket procedure, to access the data of the packet that has just been received. CAPL programs are by default not transparent to bus events. This means that a CAPL node in the evaluation branch of the measurement configuration will block the data flow to its right side. You must explicitly program the passing of messages in CAPL nodes in the evaluation branch. To make the CAPL node transparent to messages you would write:Parameters
- msgChannel
<X>: Ethernet channel number, range 1..32. - ethernetPort::
<NetworkName>::<PortName>: Ethernet port qualification.