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.

stop

Stop a logging task

Syntax

stop(GObj)

Description

stop(GObj) stops all logging tasks associated with the dagroup object GObj. GObj can be a dagroup object or a vector of dagroup objects. When the function stops a logging task, it sets the object's Logging property value to 'Off', and triggers execution of the object's StopFcn callback.

A dagroup object also stops running when the logging task has acquired all the requested records. This occurs when RecordsAcquired equals RecordsToAcquire.

The object's EventLog property records the Stop event.

Examples

Configure and start a logging task for 30 seconds of data:

da = opcda('localhost','Matrikon.OPC.Simulation');
connect(da);
grp = addgroup(da,'ExOPCREAD');
itm1 = additem(grp,'Triangle Waves.Real8');
itm2 = additem(grp,'Saw-Toothed Waves.Int2');
grp.LoggingMode = 'memory';
grp.UpdateRate = 0.5;
grp.RecordsToAcquire = 60;
start(grp);

Stop the logging task after 5 seconds:

wait(5);
stop(grp);

See Also

|

Introduced before R2006a

Was this topic helpful?