// Check that CANstress devices have been configured
if (CANstressAvailableDevices() < 2)
{
TestCaseFail();
Write("Number of configured CANstress devices is less than 2!");
}
// Establish connection to "cstCAN1"
deviceId1 = CANstressCreateServer("cstCAN1");
CANstressConnect();
// Establish connection to "cstCAN2"
deviceId2 = CANstressCreateServer("cstCAN2");
CANstressConnect();
// The following commands are executed on "cstCAN2"
CANstressOpen(".\\CANstress\\EngineData_BusOff.cst");
CANstressSetDevice(deviceId1);
// The following commands are executed on "cstCAN1"
CANstressOpen(".\\CANstress\\EngineData_BusOff.cst");