-
Notifications
You must be signed in to change notification settings - Fork 24
Description
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