Skip to content

Create CAN Signal Single Point I/O example #34

@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 Signal Single Point Input and CAN Signal Single Point Ouput examples to run simultaneously

XNET Create Session (Signal Input Single Point) using example database/signals on interface 1
XNET Create Session (Signal Output Single Point) using example database/signals on interface 2
Set Property (Interface:CAN:Termination) for both interfaces
XNET Start for both sessions
Loop{
Request input: Write new value or read current value
XNET Write (Frame CAN) Payload: Counter
XNET Read (Frame CAN) Display current value
}
XNET Clear

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions