FileFormats

It is possible to export parts of a configuration to text files.

What can be exported is:

Event - Command configuration

The event-command configuration will be exported to a tab separated text file called ##EventBrokerConfig_<time>.txt. An example of such a file is:

// File generated by Apis Snapins Configuration Export<br />

// ##version:2## (do not modify this line)

##EventBrokerConfiguration## (EventModuleName.EventID CommandModuleName.CommandID)

ApisCalculate 1.8000& ApisCalculate 1.8000

ApisJava1.110 ApisJava1.100

ApisJava1.8000 ApisJava1.8000

ApisJava1.8000 ApisJava1.120

ApisOPC1.8000 ApisOPC1.8000

Java.110 Java.100

Java.8000 Java.8000

The third line indicates that this is configuration for event-commands, and the following lines represent connections between events and commands.

The spaces between the events and command must be tabs.

Modules

There will be one file for each module in the configuration. The files will be named <NameOfModule>_##ModuleProperties_<time>.txt.

An example of such a file is:

// File generated by Apis Configuration Export

// ##version:2## (do not modify this line)

ModuleCLSID {d8e2d2c7-7bd5-4afa-8811-85e863c1d3a0}

ModuleName ApisCalculate 1

ModuleStorageCLSID {4c854c93-c667-11d2-944b-00608cf4c421}

##Module properties##

ExchangeRate TimeReferenceItem ExtItemCalculationSequence ExtItem pass-through quality UpdateInitvalsOnSave PersistValToInitVal Calculation&nbsp TraceToFile

100 200 300 400 1600 1650 1700 1900

0 0 64 False 0 True

The module properties are registered immediately below the <em>##Module properties##</em> line.

The first line contains the name of the property and is not actually used when importing.

The second line contains the ids of the properties.

The third line contains the values of the properties.

Items

There will be one file for each item type in each module. The files will be named <NameOfModule>_<NameOfItemType>_<time>.txt.

An example of such a file is:

// File generated by Apis Configuration Export

// ##version:2## (do not modify this line)

ModuleCLSID {983b4ae2-abb9-11d2-9424-00608cf4c421}

ModuleName ApisWorker1

ModuleStorageCLSID {4c854c93-c667-11d2-944b-00608cf4c421}

ItemType Signal [ID:1]

//##Module properties## (uncomment this and the next three lines to import module properties):

//ExchangeRate TimeReferenceItem ExtItemCalculationSequence ExtItem pass-through quality RandomizeItemAttribs UpdateInitvalsOnSave PersistValToInitVal

//100 200 300 400 1500 1600 1650

//2000 0 64 True False 0

//ItemID Amplitude Waveform Address Period Overidden quality Address2 Bias UALogger2 UALogger Type

0 10001 10002 5020 10004 10100 5021 10005 UALogger2 UALogger

Signal1 600 0 0 60 192 0 10 True False 4

Signal2 600 0 0 60 192 0 20 True False 4

Signal3 700 0 0 60 192 0 30 True False 4

Signal4 700 0 0 60 192 0 20 True False 4

Signal5 800 0 0 60 192 0 10 True False 4

Signal6 800 0 0 60 192 0 13 True False 4

Signal7 900 0 0 60 192 0 14 True False 4

Signal8 900 0 0 60 192 0 15 True False 4

The first part of the file is the same as for the modules, except it also contains a line for the item type, and that module properties are commented out.

The last part is a list of items. The columns are the properties of the item. The first column should always have id 0, and is the name of the item.

The spaces between the events and command must be tabs.

.