Access Simulink Real-Time scopes
public abstract class xPCScope : xPCApplicationNotficationObject
Syntax Language: C#
public abstract class xPCScope : xPCApplicationNotficationObject initializes
a new instance of the xPCScope class.
|Property||C# Declaration Syntax||Description||Exception|
Get or set a number
Get or set number of samples collected before or after
a trigger event. The default value is
Get or set number of contiguous samples captured during
the acquisition of a data package. The scope writes data samples into
a memory buffer of size
If the scope stops before capturing this number of samples, the scope has the collected data up to the end of data collection. It then has zeroes for the remaining uncollected data. Note what type of data you are collecting, it is possible that your data contains zeroes.
A numeric index, unique for each scope.
Indicate whether data is being acquired, the scope is
waiting for a trigger, the scope has been stopped (interrupted), or
acquisition is finished. Values are
Get or set
Get or set trigger level. If
Get or set trigger mode for a scope. Valid values are
returns the value
Get scope type as a character string.
For file scopes, the
works with the autorestart parameter.
Autorestart is on — When the scope triggers, the scope starts collecting data into a memory buffer. A background task examines the buffer and writes data to the disk continuously, appending new data to the end of the file. When the scope reaches the number of samples that you specified, it starts collecting data again, overwriting the memory buffer. If the background task cannot keep pace with data collection, data can be lost.
Autorestart is off — When the scope triggers, the scope starts collecting data into a memory buffer. It stops when it has collected the number of samples that you specified. A background task examines the buffer and writes data to the disk continuously, appending the new data to the end of the file.