8 running mixed configurations/functionalities, Running mixed configurations/functionalities – Teledyne LeCroy ST Automated Test Suite User Manual User Manual
Page 21

21
4.8 Running Mixed Configurations/Functionalities
For several port configurations, you can run Analyzer, Trainer, Host Emulator, Device Emulator, and
Infusion at the same time. For possible port configurations, refer to the Automation API Reference
Manual.
You can run Analyzer with all other functionalities.
Use the following examples of Analyzer-Host-Device and Trainer-Infusion to write your own mixture
configuration automation tests: (Note that error checking parts have been removed from these
examples.)
Analyzer-Host-Device
'--------- set port configuration to DEVICE_CONFIG_AHE_0_ADE_0 ---------
MySASAutomation.SetPortConfiguration 0, 100
'--------- Run an Analyzer/Exerciser project ---------
MySASAutomation.StartRecording("E:\AnalyzerHostDevice(AHE-0-ADE-0).sac")
'--------- Activate a Target Emulator project ---------
MySASAutomation.ActivateDevice "E:\Projects\DeviceOnly.std"
'--------- wait for 5 seconds ---------
WScript.Sleep(5000)
'--------- Deactivate device ---------
MySASAutomation.DeactivateDevice()
'--------- Stop recording and make trace file ---------
MySASAutomation.StopRecording(FALSE)
'--------- Open trace file and have access to its trace file, and later close it -------
--
Set SASTracer = MySASAutomation.OpenFile("E:\AnalyzerHostDevice(AHE-0-ADE-0).scs")
'--------- call a function to see how many packet there are in trace file ---------
MySTATS.ReportText ("Number of packets in trace file : " &
CSTR(SASTracer.GetPacketsCount()))
'--------- Close trace file ---------
SASTracer.Close()