EBSILON®Professional Online Documentation
Data Transfer and Results Display / SRx - Interface / SRx EbsScript Access
In This Topic
    SRx EbsScript Access
    In This Topic

    Access to SRx from EbsScript


    General

    In the framework of the SR::EPOS system you usually use an EbsScript to access data stored in the SRx server. EbsScripts can be used to access SRx data points in office-environment as well.

    For the access, there are different possibilities:

    1.      It is possible to load a complete dataset for a specified time stamp from SRx into the Ebsilon model or to send a complete dataset from the model to SRx. This is done with the functions

    • readDatasetFromSRx
    • writeDatasetToSRx

    2.      It is possible to read or write a single data point. The data is passed as return value (when reading) or as argument (when writing). This is done with the function

    • readPointFromSRx
    • writePointToSRx
               

    3.      The value of a single tag can be read or written. The value is passed as an argument. These functions are used for this purpose.

                - readKeyFromSRx
                - writeKeyToSR

     

    4.      It is possible to retrieve and modify the configuration data within Ebsilon. This is done with the functions

    • getSRxInfo
    • setSRxInfo
    • removeSRxInfo
    • clearSRxInfo

    The usage of these functions is explained in the EbsScript help in the chapter EbsScript-Functions.


    Debug

    For diagnostic purposes, it is possible to activate debug-outputs at the SRx interface and the EbsScript compiler. The activation is done through the registry-entry

    HKEY_LOCAL_MACHINE\Software\Sofbid GmbH\Ebsilon 2000\Settings\Debug

    If this value is positive, debug-outputs are logged in a file in the local TEMP-folder (adjustable in the control panel under “System”, “Extended”, “environment variables”, User variables “TEMP”). This file is always newly created if EBSILON®Professional starts and is named:

    EbsilonProfessional.Lognn

    Where nn is a sequential numbering.