Skip to content

Create Frame Stream I/O Example #33

@lilesj

Description

@lilesj

Ideally we want the examples to work straight out of the box with most devices in a loopback configuration. This will be a slightly modified version of the CAN Loopback Example which can be used as a starting point. It will effectively combine the CAN Frame Stream Output and CAN Frame Stream Input examples to run simultaneously

This will take #27 and add Output to it.

XNET Create Session (Frame Input Stream) using in-memory database on interface 1
XNET Create Session (Frame Output Stream) using in-memory database on interface 2
Set Property (Interface:CAN:Termination) for both interfaces
Set Property (Interface:CAN:Baudrate) for both interfaces since we are using in-memory database
XNET Start for both sessions
Loop{
XNET Write (Frame CAN) Payload: Counter
XNET Read (Frame CAN) Display scrolling frame data we transmit
}
XNET Clear
XNET Frame Type CAN
Timestamp

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions