EasyManua.ls Logo

Topcon OPUS A6G2 - Page 547

Topcon OPUS A6G2
800 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
547
OPUS Projektor Manual
JavaScript
var result = multimediaCommand(mmpID, "play");
if (result == true)
{
print("Play command successfully sent");
}
else
{
print("Error sending play command to MultimediaPlayer with
ID " + mmpID);
}
//From here we ommit the handling of the return value (to save
some space in the example code)
//Pause playback of the current file
multimediaCommand(mmpID, "pause");
//Jump to next file in playlist
multimediaCommand(mmpID, "next");
//Jump to 1 minute and 30 seconds in the current file
multimediaCommand(mmpID, "set position", 90);
//Add another file to the playlist
multimediaCommand(mmpID, "add to playlist",
"/disk/usbsda1/mySong.mp3");
//Remove all files from playlist:
multimediaCommand(mmpID, "clear playlist");
//Add the content of a directory to the playlist:
multimediaCommand(mmpID, "add directory to playlist",
"/disk/usbsda1/music/");
//Get the complete playlist and show all pathes in a table
(with ID 55)
var playlistEntries = new Array();
playlistEntries = multimediaCommand(mmpID, "get playlist");
setProperty(55, "Table Data", playlistEntries);
Please note that the example above is not meant to be executed (makes no sense to execute
the commands in that order in one script).
save2DGraphHistory - Save the value history of a 2D Graph (to external media)
The value history of a 2D Graph object is stored in binary ring buffers on the non-volatile
memory of the device. In order to process the data on a PC (e.g. spreadsheet application), it
needs to be copied to an external media (e.g. usb drive).
As soon as this function is called, the copy process will start. The progress can be observed
in the Copy Progress Variable of a 2D Graph. While copying is in progress all new values
of the 2D Graph will be buffered and will not get lost. After the copy has finished (Copy
progress variable value is 100), the external media can be removed and the data can be
processed with the Graph History Tool on a PC.
Prototype:
var result = save2DGraphHistory(number Graph-DDO-ID, string targetPath);
The result of this function is true if the copy process could be started (correct object ID and
target path was provided). This does not mean that the copy process has successfully
finished.
Example (copy to USB drive):
//Get path of mounted USB drive:
var usbMountPath = getVariableValue("@USBMountPath");
451
459

Table of Contents