548
OPUS Projektor Manual
JavaScript
//Save history to target path. The 2D Graph has object ID 42
var result = save2DGraphHistory(42, usbMountPath);
if (true == result)
{
print("Copy 2D Graph history started");
}
else
{
print("Starting copy 2D Graph history FAILED");
}
delete2DGraphHistory - Delete the value history of a 2D Graph object
Use this function to completely delete the value history of a 2D Graph object. This will instantly
delete the binary ring buffer on the non-volatile memory and the currently shown value lines.
Prototype:
var result = delete2DGraphHistory(number Graph-DDO-ID);
The result of this function is true if a correct graph object ID was provided.
requestVariableValueFromOwner - Initiate a read request to the owner of a variable
(CANopen SDO Upload Request)
This function can be used as a trigger to send out a read request to the owner of a variable.
Currently this function can only be used to send out a CANopen SDO Upload Request. See
SDO Upload Request Support
This function can be called multiple times in one script for different variables. All requests will
be buffered and send out one after another after the equivalent SDO Upload Responses was
received (or after timeout).
Prototype:
var result = requestVariableValueFromOwner(string
NameOfCANopenVariable);
The result of this function is true if the variable is a CANopen variable and the Upload
Request was accepted by CANopen. It returns false if either the settings of the variable were
not correct (e.g. if it was no CANopen variable) or if the CANopen stack was not correctly
configured (e.g. no appropriate SDO Client Channel settings were made for the CANopen
ECU).
startTouchscreenCalibration - Start calibration of resistive touchscreen
Use this function to start the calibration process of a resistive touchscreen. Capacitive
touchscreens do not need calibration.
When this function is called, the calibration process is displayed but PClient will continue to
run (e.g. cyclic scripts, cyclic CAN messages) but won't accept touch events and will not paint
anymore until calibration is finished.
Prototype:
var result = startTouchscreenCalibration();
The result of this function is true if the touch calibration process was started successfully and
false if it is either not supported on the current device or an error occurred.
Important Notes:
·
On devices with capacitive touch the calibration process might start but will have no
effect. Capacitive touchscreens do not need calibration.
328