Data Sheet
TeledyneLeCroyCorporation TrafficGenerationFiles
534 USBProtocolSuiteUserManual
11.5 Traffic Generation Files
ThesystemgeneratesUSB2.0trafficfromtrafficgenerationfiles(*.utg)whicharetext‐
basedscriptfilesthatinstructtheGeneratorhowtogenerateUSB2.0traffic.Thesescript
filescanbeeditedwitheitherasimpletexteditorsuchasNotepadorwiththe
Script Editorutilityprovidedbytheapplication.TheScriptEditorutilityhasseveralaidsto
simplifytheprocessofwritingandeditingscripts:tool‐tips,drop‐downmenus,and
coloredfields.
Thescriptexamplebelowshowsthebeginningofatrafficgenerationfilecreatedthrough
theExportcommand.Thiscommandprovidesaneasywaytocreateagenerationfile‐
youopenatracefile,thenruntheExportcommand.Thetraceservesasablueprintfor
thetrafficgenerationfile.Theexamplebelowshowsseveralcommentedlinesfollowed
bysomeinstructions.
Figure 11.9: Script example of a Traffic Generation File.
Thisgenerationfilecausesthesystemtosimulateahubandtogenerate24,320packets.
See“DeviceEmulation”onpage 544fordetailsabouttheformatoftrafficgeneration
files.
11.6 Creating Traffic Generation Files
Ifyouchoosetowriteascriptwithatexteditor,agoodwaytostartistoeditanexample
generationfile.
ForWindows7andWindows8,anexamplesuchas:
FS_Enum_Break_Wrap_Sample.utg,HS_Hub_Sample.utginthedirectory
C:\Users\Public\Documents\LeCroy\USB Protocol Suite\Examples\2.0HostEmulation
orSampleDeviceEmulationThumbDriveFS.utginthedirectoryC:\Users\Public\
Documents\LeCroy\USB Protocol Suite\Examples\2.0DeviceEmulation.
ForWindows10,anexamplesuchas:FS_Enum_Break_Wrap_Sample.utg,
HS_Hub_Sample.utg,orSampleDeviceEmulationThumbDriveFS.utg,inthedirectory
C:\ProgramFiles\LeCroy\USBProtocolSuite\Examples\2.0HostEmulationor
C:\ProgramFiles\LeCroy\USBProtocolSuite\Examples\2.0DeviceEmulation.
YoucanopenagenerationfilewithNotepadorothereditorandthenaddorremovetext
asneeded.