7 activating device emulator, Activating device emulator – Teledyne LeCroy ST Automated Test Suite User Manual User Manual
Page 20

20
'--------- Stop scenario on port 1 board 0 ---------
MySASAutomation.StopScenario 0, 1
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
Else
MySTATS.ReportText ("Scenario is stopped on port 1")
End If
4.7 Activating Device Emulator
To activate/deactivate Device Emulator projects, call the ActivateDevice and DeactivateDevice
functions from the SASAnalyer automation object, using as parameter the device emulator project.
Use the following code to activate/deactivate a device emulator:
'--------- Activate a Target Emulator project ---------
MySASAutomation.ActivateDevice "E:\Projects\DeviceOnly.std"
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
Else
MySTATS.ReportText ("Device is activated")
End If
WScript.Sleep(5000)
'--------- Stop recording and make trace file ---------
MySASAutomation.DeactivateDevice()
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
Else
MySTATS.ReportText ("Device is deactivated")
End If