//form 1
on start
{
dword result = 0;
result = SecurityLocalStartControlSimulationNode("DatabaseNode", "CAN", 2);
Write("SecurityLocalStartControlSimulationNode for network node with name DatabaseNode returned %i", result);
}
on stopMeasurement
{
dword result = 0;
result = SecurityLocalStopControlSimulationNode("DatabaseNode", "CAN");
Write("SecurityLocalStopControlSimulationNode for network node with name DatabaseNode returned %i", result);
}
//form 2
on start
{
dword result = 0;
result = SecurityLocalStartControlSimulationNode("MyNode", 2, "CAN", 2); //Use the node title, if the node is not declared in the database (Network Node is set to <<default>>)
Write("SecurityLocalStartControlSimulationNode for node with title MyNode returned %i", result);
}
on stopMeasurement
{
dword result = 0;
result = SecurityLocalStopControlSimulationNode("MyNode", 2, "CAN"); //Use the node title, if the node is not declared in the database (Network Node is set to <<default>>)
Write("SecurityLocalStopControlSimulationNode for node with title MyNode returned %i", result);
}