Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

LoggingMode

Specify destination for logged data

Description

LoggingMode can be set to 'disk', 'memory', or 'disk&memory'. If LoggingMode is set to 'disk', DataChange events (records) are stored to a disk file as specified by LogFileName. If LoggingMode is set to 'memory', records are stored to memory (the buffer). If LoggingMode is set to 'disk&memory', records are stored to memory and to a disk file. LoggingMode defaults to 'memory'.

The disk file or memory buffer contains data logged from the time you issue the start command, until the time you issue a stop command or the number of records specified by the RecordsToAcquire property has been logged. Each DataChange event constitutes one record, containing one or more items. Only items that change value or quality are included in a DataChange event. The logged data includes the ItemID, Value, TimeStamp, and Quality for each item that changed.

Note that when you issue a refresh command while the toolbox is logging, the results of that operation are included in the log, since a refresh forces a DataChange event on the OPC server.

You extract data from memory with the getdata function. You can return the data stored in a log file to the MATLAB® workspace with the opcread function.

Characteristics

Access

Read-only while logging

Applies to

dagroup

Data type

character vector

Values

[ 'disk' | 'disk&memory' | {'memory'} ]

Was this topic helpful?