Установите осциллограф на триггерный режим программного обеспечения и затем обеспечьте его, чтобы инициировать. Моделью является xpcosc
.
Установите время остановки на бесконечность.
Сконфигурируйте осциллограф, чтобы получить 'Integrator1'
на триггере программного обеспечения.
sc1 =
Simulink Real-Time Scope
Application = xpcosc
ScopeId = 1
Status = Interrupted
Type = File
NumSamples = 250
NumPrePostSamples = 0
Decimation = 1
TriggerMode = Software
TriggerSignal = 4 : Integrator1
TriggerLevel = 0.000000
TriggerSlope = Either
TriggerScope = 1
TriggerSample = 0
FileName = unset
WriteMode = Lazy
WriteSize = 512
AutoRestart = off
DynamicFileName = off
MaxWriteFileSize = 536870912
Signals = 4 : Integrator1
Запустите осциллограф.
ans =
Simulink Real-Time Scope
Application = xpcosc
ScopeId = 1
Status = Pre-Acquiring
Type = File
NumSamples = 250
NumPrePostSamples = 0
Decimation = 1
TriggerMode = Software
TriggerSignal = 4 : Integrator1
TriggerLevel = 0.000000
TriggerSlope = Either
TriggerScope = 1
TriggerSample = 0
FileName = c:\sc1Integ.dat
WriteMode = Lazy
WriteSize = 512
AutoRestart = off
DynamicFileName = off
MaxWriteFileSize = 536870912
Signals = 4 : Integrator1
Запустите приложение реального времени и инициируйте осциллограф.
ans =
Simulink Real-Time Scope
Application = xpcosc
ScopeId = 1
Status = Acquiring
Type = File
NumSamples = 250
NumPrePostSamples = 0
Decimation = 1
TriggerMode = Software
TriggerSignal = 4 : Integrator1
TriggerLevel = 0.000000
TriggerSlope = Either
TriggerScope = 1
TriggerSample = 0
FileName = c:\sc1Integ.dat
WriteMode = Lazy
WriteSize = 512
AutoRestart = off
DynamicFileName = off
MaxWriteFileSize = 536870912
Signals = 4 : Integrator1
Остановите приложение реального времени и осциллограф.