Movicon Help on Line - Rel. 11.7.1301
The Execution properties are used to set the Trend/Data Analysis's data samplings.
To modify the Execution properties, select the object with the mouse and use the Movicon "Properties Window".
This edit box allows you to set the maximum number of samples to be managed by the Trend's sampler. This will determine the object's buffer's memory capacity. When this value is reached while sampling, the oldest data will be removed from the buffer to make way for new data (FIFO).
The max number of samples manageable is 10,000 for Trends when configured as "Horizontal", "Vertical" or "XY".
|
This value also determines the memory capacity for loading values of queries performed when the Trend is switched to Pause (stop) mode. Extracted values exceeding this limit will not be managed. |
When the Data Analysis object is used, this value defines the maximum number of points that can be displayed. The set value represents the maximum number of values to be retrieved from the database (default = 36000). This limit is needed to contain memory use and must be set to a value that adapts to the computer's memory capacity.
If a very high value is set, a "Out of memory" or "Insufficient memory for executing operation" error may appear while data from the database is being retrieved. |
This value is also used by Web Clients to retrieve data from the Server application.
This property is used to set the sampling time desired for the Trend. This value can be set in Hours, Minutes, and Seconds.
The resulting value will be the one used to sample data that will be buffered in memory and displayed according to the modality set.
This property is used for setting the sampling time in milliseconds.
As you can see, Movicon also allows sampling times to be set in milliseconds, which will required a more demanding CPU performance of the PC which is the programmer's responsibility to evaluate. |
This edit box is used for setting the Trend object's sampled data refresh time. The number set here will correspond to the number of samples executed before refreshing data in the Trend.
The disparity between measured and displayed values could be advantageous in optimizing resource commitment without compromising sampling accuracy and precision.
This edit box is used to set the timeframes to be viewed in the Trend area in both Start and Stop mode.
The timeframe set will determine the number of samples, indicated in the "# Visible Samples" box, to be viewed.
There is no limit on the amount of time that can be set and what the Trend can display on any one page. Therefore, any time can be set in "dd:hh:mm:ss" which will be used by the Trend at runtime to display each of its pages. Any recording "holes" in the data logger will be represented with grey zones (without data), and not with lines. This will enable the Trend page to always display a data range equal to the time set in the "View Timeframe" property.
The Trend uses one a specific algorithm to display large amounts of data on one page only and which also allows curves to be represented without applying approximations to avoid altering their appearance.
This read only property shows the number of samplings to be displayed in the Trend area. This value depends on the Trend's window size in pixels and the "View Timeframe" settings.
The Trend's data recording function is activated when this selection is enabled. In this case, the object will record the data it has sampled on file in ".CSV" format according to the sampling modalities set.
The recording of samples on ".CSV" files by the Trend is executed by the object only when it is active in memory. In order to keep the Trend object always active, you will need to make sure the screen it is in does not get destroyed and unloaded from memory when changing pages. This can be done by selecting the "Not Destroyable" option in the screen's general properties. |
If this property is enabled when opening the Trend, the data will be read from a linked text file each time the Trend is switched to pause mode.
When the Trend is set to record on file, it will be able to retrieve the data's history from the text file to which it is linked. Unlike before, cached historical data is now unloaded onto text files when the project is stopped while in runtime mode so that the Trend can be loaded and displayed.
When the Record On File property is enabled with the "Create New File" left disabled, the Trend will record data in one unique ".csv". file. However, since the size of the file cannot be controlled in this case, and increases each time Movicon adds records to it, the programmer will need to implement methods to prevent the file from getting too big. This can be done by deleting records that are obsolete and making regular backups. If the file gets too big, an "Insffuicient Memory" message will appear while loading.
As an alternative to using ".csv" files for the Trend to record on, you can add a new DataLogger to record in the IMDB format. This will allow the Trend to record and save variable value data in text files set with a maximum data lifecycle to enable Movicon to automatically recycle the oldest data when expired with new data.
The name you wish to use for the recording in output of data sampled by the Trend object is declared here. The data will be recorded on file in standard .CSV format only when the "Record On File" has been enabled as described above. The date and time of the recording will be added to the suffix if the 'New File' property has been enabled.
This edit box is used to configure the number of samples to be buffered in memory before unloading on file. This value can be set in function with the sampling time, and is needed to avoid accessive use of the RAM disk by freqent samplings.
When the number of samplings indicated in the box has been reached, the system will save the recordings from the memory cache to the disk.
This property is used to set the file's maximum length in KBytes. When reaching this size, the data will be recycled or a new file will be created according to the settings performed.
This property is used to set the number of files to be created when the "New File" property has been enabled. When this number has been reached, the data will be recycled starting with the oldest file first.
This selection determines the recording behaviour in output of sampled data on file when restarted. Recording restarts when the trend object is reloaded in memory or the screen or project it is in is restarted. If this box is enabled, a new file will be created when the object is restarted, causing the old one to be overwritten by deleting the previous data. When this function is disabled, the data will be recorded at the end of the old data in the same file. If you enter a number that is higher than one set in the "Max. # Files" property, a new file will be created when the the object starts processing.
If you activate the 'Always Create New File' option, you must disable the 'Read Data In Background' option. |
This field is used to enter a separator character which will be used by the Trend for recording data on ".csv" files. When this field is left empty, the default "TAB" character will be used instead.
This property allows you to insert the name of the Movicon network server. In this way, instead of using the local project Data Logger's DBMS connection, the Trend/Data Analysis will be able to use the Movicon Server to retrieve historical data and, therefore, historical data from remote Data Loggers and display it on the PC.
To enable the Trend/Data Analysis to retrieve historical data from remote Data Loggers, the following properties will need to be set in the Trend object:
The data logger connected to the Trend/Data Analysis must also be configured in the local project. However, its "Enable" property should be disabled to prevent recordings from being executed in the local database.
Network Backup Server
See paragraph "Drawings and Controls common Execution Properties".
This property is used to set the number of records to be loaded from the remote Data Logger when the "Network Server" property is active.
The value entered in the "Samples" property in Web Clients will be considered instead of the one set here. |
This property allows the user interface to be used in the normal way to allow user interaction with other objects on the same screen while data is being loaded in the Trend or Data Analysis object.
When the Separate Thread is running, the progress bar will display while data is being loaded. In addtion, some events within the Data Analysis or Trend object's Basic Script context which notify data loading, query executions and moving from one record to another in the referenced recordset object will be disabled. These events are:
OnImportStart
OnImportNext
OnImportEnd
OnErrorRecordset
OnRecordsetQueryStart
OnRecordsetMoveNext
OnRecordsetQueryEnd
See the paragraph on "Execution Properties" in Drawings and Controls.
Name of the "Symbol Configuration File" in which the Trend/Data Analysis's configuration settings are saved or loaded during RunTime is entered here.
The configuration file, set in this property, is automatically loaded when the Trend/Data Analysis is displayed, and automatically saved when pen properties are changed by using the appropriate window.
See the paragraph on "Execution Properties" for Drawings and Controls.
See the paragraph on "Execution Properties" for Drawings and Controls.
By using this command, the configuration file settings selected in the "Configuration File" property will be loaded and applied to the Trend/Data Analysis object.
See the paragraph on "Execution Properties" for Drawings and Controls.
By using this command, all the Trend/Data Analysis object's settings in the configuration file selected in the "Configuration File" property will be saved.
See the paragraph on "Execution Properties" for Drawings and Controls.