Teledyne LeCroyoffersawidearrayof toolsetsfor decodingand debuggingserialdatastreams.These
toolsetsmay bepurchased as optionalsoftware packages,orare provided standardwith some
oscilloscopes.
Thismanualexplainsthebasic proceduresforusingserialdatadecoderandtriggersoftware options.
Thereare alsosectionspertainingto the measure andgraphingcapabilitiesand eyediagramtests.
Whilesomeof theimagesin thismanualmay not exactlymatch what ison youroscilloscopedisplay—or
may showan exampletakenfrom another standard—beassuredthat thefunctionality isidentical,as
muchfunctionalityisshared.Product-specific exceptionswillbe noted inthetext.
It isassumed that youhavea basicunderstandingof the serialdataphysicalandprotocollayer
specifications,anda basic understanding of how tousean oscilloscope,specificallytheTeledyne LeCroy
oscilloscopeonwhichtheoptionis installed.Only featuresdirectlyrelated toserialdatatriggeringand
decodingareexplained inthismanual.
Teledyne LeCroyis constantlyexpandingcoverageof serial data standardsandupdatingsoftware.Some
capabilitiesdescribedinthisdocumentationmay onlybe availablewiththelatest version of our firmware.
You can downloadthefreefirmware update from:
Triggerand decode(-TD)optionsenableyoutotriggertheoscilloscopeacquisitionuponfindingspecific
messageframes,datapatterns,or errorsin serialdatastreams.Conditionalfilteringat different levels
enables youto target the trigger toa single messageora rangeof matchingdata.
Theinstallation of any-DMEor-TDMEoptionaddsa set of measurements designedfor serial data
analysisandprotocol-specific eyediagram teststothestandard triggeranddecoder capabilities.See
Measuringforinstructions onusingthemeasureand graphing capabilities.SeeEyeDiagram Tests for
instructionsonusingtheeyediagram tests.
About the CANbus and CAN FDbus Options
CANisa vehiclebusdesigned specifically forautomotive applications,but it isnow foundinother
applications,aswell. ThevariousCANspecificationsare maintainedbytheInternationalOrganization for
Standards(ISO) andcanbeobtained at www.iso.org.
CANbusTDsupports decodingstandardCAN(11-bit and extended29-bit).
CANFDbusTDsupports decodingstandardCANaswell as theadvancedfeaturesof CANFD:bitrate
increasefortheData segment and the extensionof thepossible Datapayloadfrom 8bytesto 64bytes. It
alsosupports ISOand non-ISOframes.
Bothoptionsenabletriggeringon CANmessages,FrameIDs,serialdatapatterns,or errors.Frame-level
andvalue-level filteringenableyouto target the trigger toa certaintypeof CANmessage,asingleframe ID
ordatapattern,or to arangeof data.
TheTDMEvariants of theseoptionsadd aset of CAN-specific measurement parameters,plots,andeye
diagramtests.
LINis alow-cost master/slavesystem designed forimplementationinvehicles,typicallyinwhat is
commonlyreferredtoas bodyelectronics. TheLINspecification ismaintained bytheInternational
StandardsOrganization (ISO)andcanbeobtained at www.iso.org.
Thealgorithmsdescribedhereat ahighlevelare usedbyallTeledyneLeCroy serial decoderssoldfor
oscilloscopes. Theydiffer slightlybetweenserialdatasignalsthat haveaclockembeddedin data and
those withseparate clock anddatasignals.
Bit-level Decoding
Thefirst software algorithm examinestheembedded clock foreach messagebasedon a default oruserspecifiedverticalthresholdlevel.Once theclocksignalisextractedor known,thealgorithm examinesthe
correspondingdatasignalat the predeterminedverticalleveltodeterminewhether a databit ishighor
low.The default verticallevelisset to50%,asdeterminedfrom a measurement of peakamplitudeof the
signalsacquiredby the oscilloscope.For most decoders,it canalsobeset toan absolutevoltage level,if
desired. Thealgorithm intelligentlyappliesahysteresistotherisingandfalling edgeof theserialdata
signal to minimizethechance of perturbationsor ringingon theedgeaffecting the databit decoding.
Note:Althoughthedecoding algorithm isbasedona clockextraction software algorithm usinga
verticallevel,theresultsreturnedare thesame asthose from atraditionalprotocolanalyzer using
samplingpoint-baseddecode.
Logical Decoding
Afterdeterminingindividualdatabit values,another algorithm performs adecodingof the serialdata
messageafter separationof theunderlyingdatabitsinto logicalgroupsspecificto the protocol
(Header/ID,AddressLabels,DataLengthCodes,Data,CRC,ParityBits,Start Bits,StopBits,Delimiters,Idle
Segments,etc.).
Message Decoding
Finally,anotheralgorithm appliesa color overlay withannotationstothedecodedwaveform tomarkthe
transitionsin the signal. Decodedmessagedata isdisplayed intabular form belowthegrid.Various
compactionschemes areutilizedto showthedataduringalong acquisition(manyhundredsor thousands
of serialdata messages)or ashort acquisition(oneserialdata messageacquisition).Inthecaseof the
longest acquisition,onlythemost important informationis highlighted,whereasinthecaseof theshortest
acquisition,allinformationis displayedwithadditionalhighlightingof thecompletemessageframe.
User Interaction
Your interaction withthesoftware inmanywaysmirrorstheorderof the algorithms. You will:
l Assigna protocol/encodingscheme,aninput source,and aclocksource (if necessary)to oneof the
1. Connect your data andstrobe/clock lines(if used) totheoscilloscope.
2. Set upthedecoder using thelowest leveldecoding mode available(e.g.,Bits orNibbles).
3. Acquireasufficient burst of relevant data. Thedataburst shouldbe reasonablywellcentered on
screen,in bothdirections,withgenerousidlesegmentson both sides.
Note:See FailuretoDecodefor more information about the requiredacquisitionsettings.A
burst might contain at most 100000 transitions,or 32000 bits/1000 words,whichever
occursfirst. Thisismorea safetylimit for software engineeringreasonsthanalimit based
onanyprotocol.Werecommendstartingwith muchsmaller bursts.
6. Once youknow youarecorrectlydecodingtransitionsin onemode,continuemakingsmall
acquisitionsof fivetoeight bursts andrunningthedecoderinhigherlevelmodes(e.g.,Words). The
decodersettingsyouverifyona few burstswillbe reusedwhenhandling manypackets.
Use theDecodeSetupdialoganditsprotocol-relatedsubdialogstopreset decodersfor futureuse.Each
decodercanusedifferent protocolsand data sources,or haveothervariations,givingyoumaximum
flexibilitytocompare different signals orview the same signal from multipleperspectives.
Tip:After completingsetupfor onedecoder,youcan quicklystart setupforthe otherdecodersby
using thebuttonsat the left of the DecodeSetupdialogtochange theDecode# .
Enter theNominalBitrate(Arbitrationbitrate) of thebustowhichyouare connectedas preciselyas you
knowit.The value should becorrect within5%.Amismatchedbit rate willcause variousconfusingside
effectson thedecoding,soit is best to taketimetocorrectlyadjust thisfundamentalvalue.UsetheUp
andDownarrow buttonsto scrolla list of standard bitrates,or touchthefieldto enter thevalueusingthe
Adjust knobor theVirtualKeypad.
Tip:If unsure of thebitrate,applytheBit Rate measurement parameter toa short acquisition.
Select theCANVariantinuse:GMLAN,J1939,J1939+1,J1939+2or None(allothers).
CheckShowStuffBitstodisplaythestuff bitson each CANmessage frame.
CheckShowBitsIdxto display abit indexforeachbit,whichcan assist with analysisor debugging of the
decode.The bit indexstarts at 0 at thebeginningof the messageandincreasesmonotonouslytotheend
of themessage.Notethat thebit indexskipsthestuffbits.
CANFDdecoder,also:
Enter theDataBitrate.The sameprecautionsapplyas fortheNominalBitrate.
CheckISOif yoursignalcontainsISOframes.
SymbolicDecoding
If youhavepurchased oneof theSYMBOLICoptions,these additionalcontrolsrelated to symbolic
decodingwillappearon thedecoderset up dialogs:
l Choosetoview thedecoder resultswithjust Hexadecimalor withSymbolic translation.
l If Symbolic,select the SymbolFile to use.
Thedefaultsymbolfileislocatedin D:\Applications\<protocol>. Youmaycopyyourownsymbolfiletothis
directoryandbrowse to it foreasyselection. Symbolfiles must havethe.dbc or .arxml extension.We
recommend that youcopyandmodifythedefault.dbc filetoensurethesymbolfileisproperlyformatted.
Bydefault,ESIDominant Onlyisselected,which indicates thesignal alwayscontainsan ESI bit set to
dominant. Thisallowsthedecoder to operate ina modewhereit doesn't need samplingpoint information.
When it ispossible that signalcancontaina recessiveESIbit,thenenterthesamplingpoint information
manually.Clear ESI Dominant OnlytoenabletheNominalBit Time andData Bit Timefields andset the
samplingpoint.
For theBasic setup,enter thesamplingpoint asa percent of the UIin theRequestedPositionfields.
Note:For most users,thedefault Basicsampling point workssufficientlywell. However,an
incorrect RequestedSamplingPoint percentagemayresult infalseerrordetermination.If yousee
false errortriggersor errorframesin thedecoding,usetheAdvanced format to enter thevalues
manually.
For theAdvanced setup,manuallyenterthenumberof time quanta for the:
l Prop_Seg,part of thebit time usedto compensateforthephysicalnetworkdelaytimes.
l Phase_Seg1 Numberof timequantumsbeforethesamplingpoint.
l Phase_Seg2 Numberof timequantumsafter thesamplingpoint.
Thereisno fieldfor enteringtheSync_Seg,becausethesoftwarealwaysusesthevalue1.
Thesum of the Sync_Seg,Prop_Seg,Phase_Seg1andPhase_Seg2must beequaltotheavailable time
quantasin eachphaseforthesettingstoworkcorrectly.
When the decoder isenabled,theActualSamplingPoint levelsusedare displayedon the dialogin either
format.In the Advanced menu,youmayseethisvaluechangeas youchangethevalues ineach field.
Under Viewing,choosetoview/enter data ineitherBinaryorHex(adecimal) formats.
Enter theverticalLevelusedtodetermine the edgecrossingsof thesignal.Thisvaluewillbe usedto
determinethebit-level decoding.Forguidelines,see SettingLevelandHysteresis.
Enter theBitrateof the bustowhich youare connectedasprecisely asyouknowit.The valueshouldbe
correct within5%.Amismatchedbit ratewillcausevariousconfusingsideeffectsonthedecoding,soit is
best to taketimeto correctlyadjust thisfundamentalvalue. UsetheUpand Downarrows to scrolla list of
standardbit rates,or enter anyvaluebetween1 and20 kbit/s.
Tip:If youare unsureof thebitrate,applytheBit Rate measurement parameter toa short
acquisition.
ChoosetheLINVersion(standard) usedtoencode theinput signal.If youare unsureor don't care,choose
ALL.
Adjust theBitrate value tomatchtheoneon the bustowhichyouare connected.Touch thearrow buttons
toscrollthroughstandard bitrates(2.5,5.0 or10.0 Mb/s) and make aselection.Or,touchBitrateand
enter thevalueusingtheADJUSTknobor theVirtualKeypad.
Select theappropriateChannelto decode,ChannelAor Channel Bof the FlexRaybus.
Note:Decodingwillstilloccur if thewrongchannelis selected,but it willresult inCRCerrorsbeing
shownontheoverlay.
TheLevelsettingrepresentsthelogical level for bit transition,correspondingtothephysicalLow andHigh
distinction.Levelisnormallyset as 50%of waveform amplitude,but canalternatively beset asan
absolutevoltage (withreferenceto the waveform 0 level) bychangingtheLevelTypetoAbsolute.
Percent modeiseasyto set upbecausethesoftwareimmediatelydeterminestheoptimalthreshold,but
insome casesit might bebeneficialtoswitch to Absolutemode:
l Onpoor signals,wherePercent modecanfailandleadtobaddecodes
l Onnoisysignals orsignalswitha varyingDCcomponent
l Onverylongacquisitions,where Percent modeaddscomputationalload
Ablue marker aroundtheLevellineindicatesthearea of thehysteresisband.Aswith LevelType,
HysteresisType maybe either a percentageof amplitudeor anabsolute numberof vertical griddivisions.
Hysteresis set as40 percentof totalwaveformamplitude(left)andHysteresisset asequivalent of 1 griddivision(right)
aroundan absolute-200mVLevel setting.
Note:Usually,youcanset theLevelandHysteresisin thesame ordifferent modes.For a few
protocols,Hysteresiscanonlybeset as anumberof mVplus/minustheLevel.
Observethefollowingwhensetting Hysteresis:
l Hysteresis must be largerthanthemaximum noisespikeyouwish to ignore.
l Thelargest usable hysteresisvaluemust belessthanthedistancefrom theleveltotheclosest
Threeconditionsin particularmaycauseadecodertofail,inwhichcasea failuremessage willappearin
thefirstrowof the summaryresult table,insteadof inthemessagebaras usual.
All decoderswilltest fortheconditionToosmallamplitude.If thesignal’samplitudeistoosmallwith
respect tothefullADCrange,themessage “DecreaseV/Div”willappear.The requiredamplitudetoallow
decodingisusually oneverticaldivision.
If thedecoder incorporatesa user-defined bit rate(usuallytheseareprotocolsthat donot utilizea
dedicated clock/strobeline),thefollowingtwoconditionsare alsotested:
l Undersampled.If the samplingrate(SR) isinsufficient toresolvethesignal adequatelybasedonthe
bit rate(BR) setup or clockfrequency,themessage "UnderSampled"willappear.Theminimum
SR:BRratiorequired is4:1. It issuggestedthat youusea slightlyhigherSR:BRratioif possible,and
usesignificantlyhigherSR:BRratiosif you want to alsoview perturbationsor otheranomaliesonyour
serialdataanalogsignal.
l Tooshortacquisition.If the acquisitionwindow istooshort to allow anymeaningfuldecoding,the
message“TooShort Acquisition”willappear.The minimum number of bitsrequiredvariesfrom one
protocoltoanother,but isusuallybetween5 and50.
Inalltheabovecases,thedecoding isturnedoff toprotect you from incorrect data.Adjust your
acquisitionsettingsaccordingly,thenre-enable the decoder.
Note:It ispossible that severalconditionsare present,but youwillonlyseethefirst relevant
messageinthetable.If youcontinuetoexperiencefailures,try adjustingtheothersettings.
Serial Decode Dialog
Tofirst set up a decoder,gototheDecode Setup dialog. Once decodershavebeenconfigured,usethe
SerialDecode dialog toquicklyturnon/off a decoderor makeminormodificationsto the settings.
Toturnon decoders:
1. On the same row astheDecode #,checkOntoenablethedecoder.
AslongasOnischecked(andthereis avalidacquisition),a resulttableanddecodedwaveform
appear.Thenumber of rows of datadisplayedwilldependonthe Table#Rowssetting(on the
DecodeSetupdialog).
2. Optionally,modifythe:
l Protocolassociatedwiththedecoder.
l Data(Source) tobe decoded.
When adecoder isenabled,anannotatedwaveform appearsontheoscilloscopedisplay,allowing youto
quicklysee the relationshipbetweentheprotocol decodingand the physicallayer.Acoloredoverlaymarks
significant bit-sequencesinthesource signal:Header/ID,Address,Labels,DataLengthCodes,Data,CRC,
ParityBits,Start Bits,StopBits,Delimiters,Idlesegments,etc. Annotationsare customizedtotheprotocol
orencoding scheme.
Theamount of informationshown onanannotationisaffectedbythewidthof the rectanglesin the
overlay,whichis determinedby the magnification(scale)of the traceand thelengthof the acquisition.
Zoominga portionof the decodertrace willrevealthedetailed annotations.
CAN Waveform Annotations
Theseoverlaysappearona decodedstandard CANwaveform or its zoomtrace.
AnnotationOverlay Color (1)Overlay Text (2) (3)
IndexNavy Blue (behind other fields)< Std | FD > <
Frame IDBrick RedID=<
Reserved BitsAqua Blue< r0 | r1 >
Data Length CodeGreenDLC=<
Payload DataAqua BlueData = <
Cyclic Redundancy CheckRoyal BlueCRC=<
Stuff BitsGreySB
ACKTanACK = <
Start/End of FrameAqua Blue< SOF | EOF >
Protocol ErrorBright Red (behind other fields)Error=<
When ViewDecodeischeckedon theDecodeSetupDialogand a source signal hasbeendecodedusing
that protocol,atablesummarizing the decoderresultsappearsbelow the grids.Thisresult tableprovides
aview of dataasdecoded duringthemost recent acquisition,evenwhenthereare toomanyburstsforthe
waveform annotationtobe legible.
You can export result tabledatato a .CSVfile.SeealsoAutomatingtheDecoder.
Tip:If anydownstream processessuchas measurementsreferencea decoder,theresult table
doesnot have tobevisiblein orderforthedecodertofunction.Hidingthetablecanimprove
performance whenyouraim is to export data ratherthanviewthedecoding.
Table Rows
Eachrowof the tablerepresentsoneindexof datafoundwithinthe acquisition,numberedsequentially.
Exactly what thisrepresentsdependsontheprotocoland howyouhavechosento "packetize"thedata
stream whenconfiguringthedecoder(frame,message,packet,etc.).
Note:For somedecoders,it isevenpossibletoturn off packetization,in which case
allthedecodeddataappearsononerowof the table.
When multipledecodersare runat once,theindexrows are combinedina summarytable,ordered
accordingto theiracquisitiontime.The Protocol column iscolorizedto match the input sourcethat
resultedin that index.
You can changethenumberof rowsdisplayedon thetable at onetime. Thedefault isfiverows.
Swipethetableup/down oruse the scrollbarat thefar right tonavigatethetable.SeeUsingtheResult
Tableformoreinformationabout how tointeract with thetable rows to viewthedecoding.
Table Columns
When asingledecoderisenabled,the result tableshowstheprotocol-specific detailsof the decoding. This
detailedresulttablemaybecustomizedto show onlyselected columns.
Frame. It is only used in Standard CAN, not in CAN FD, but listed in case Standard CAN
frames are included in the signal. It will appear empty for CAN FD frames
DLCData Length Code bits
Data (Hexadecimal)Payload data bytes
Symbols (Symbolic)Symbolic interpretation of the signals in the message (e.g., Vehicle Speed = 12.4 m/s, or
Aircraft Pitch=12.3 degrees)
Signal (Symbolic)Input signal physical characteristics
SBCStuff Bit Counter. This column only appears when ISO frames are supported and ISO is
checked
CRCCyclic Redundancy Check Sequence bits
CLCRC Length, depending on the number of bytes in the payload either 17 bits for data
frames up to 16 bytes or 21 bits for data frames over 16 bytes
BitRateComputed transmission bit rate
BR DataData bit rate dynamically recomputed for every message, similar to the nominal BR
StatusDescription of all the errors in this message detected by the decoder
Sectionof CAN FDdetailed result table.
Note:Whenthereisa CRCerror,thevalueintheCRCcolumn isthevaluetransmittedat the endof
the(detected) frame,whilethevaluefollowing "CRCError:"in the Statuscolumn isthevalue
calculatedfrom the(expected)framebits.
Besidesdisplayingthedecodedserialdata,theresult tablehelpsyoutoinspect the acquisition.
Zoom&Search
Touchinganycellof the table opensa zoom centeredaroundthepart of the waveform corresponding to
theindex. TheZn dialogopenstoallow youto rescalethezoom,or to Searchtheacquisition.Thisis a
quickwayto navigate toeventsof interest intheacquisition.
Thetablerowscorrespondingto the zoomedarea arehighlighted,asis the zoomedareaof the source
waveform.The highlight colorreflectsthezoom that it relatesto (Z1yellow,Z2 pink,etc.). Asyouadjust
thezoom scale,the highlightedareamayexpandto severalrows of thetable,orfadetoindicatethat only
apart of that Indexisshown inthezoom.
When there aremultipledecoders running,each can haveitsown zoom of thedecoding highlighted onthe
summarytable at thesame time.
Note:Thezoom number isnolongertiedtothedecoder number. Thesoftware triesto match the
numbers,but if it cannot it uses the next zoom that isnot yet turnedon.
>, ≥, <, ≤NumericAll data that satisfies the operator
In Range, Out RangeNumericAll data within/without range limits
Equals Any (on List),
Does Not Equal Any (on List)
Contains, Does Not ContainTextAll data that contains or does not contain the string
TextAll data that is/is not an exact match to any full value on
the list. Enter a comma-delimited list of values, no spaces
before or after the comma, although there may be spaces
within the strings.
Note:Once the Operatorisselected,thedialog showstheformat that maybe enteredin Value for
that column of data.Numeric valuesmust bewithin.01%toleranceof aresult tobe considered a
match. Text valuesare case-sensitive,includingspaceswithinthestring.
Select Enabletoturnon thecolumnfilter;deselect it to turnoff thefilter. Use theDisableAllbuttonto
quicklyturn off multiple filters.The filtersettingsremainin placeuntilchanged andcan bere-enabledon
subsequent decodings.
Onsummarytables,onlytheTime,Protocol,andStatuscolumnscanbe filtered.
If youapplyfilterstoa singledecodertable,theannotationisapplied toonlythat portionof the waveform
correspondingtothefiltered results,soyou canquicklyseewherethose resultsoccurred.Annotationsare
not affected whena summarytableis filtered.
Also,eyediagrams aremodifiedtorepresent onlythefilteredresults,which canhelp to identifyexactly
which indicesof dataare thecauseof signalintegrityproblems.
ViewDetails
When viewinga summarytable,touchthe Indexnumberin thefirstcolumn to drop-in the detailed
decodingof that record.Touch theIndexcellagaintohidethedetails.
Ina single decodertable,touchtheIndexcolumnheader(top,left-most cellof the table) toopenthe
DecodeSetupdialog.Thisisespeciallyhelpful foradjustingthedecoder duringinitialtuning.
When inasummary table,theIndexcolumnheadercellopenstheSerialDecode dialog,whereyou can
enable/disable allthedecoders.Touch theProtocolcelltoopentheDecode Setupdialogforthedecoder
that producedthat indexof data.
Performancemaybeenhanced if youreduce thenumber of columnsintheresult tabletoonlythose you
needtosee.It is alsoespeciallyhelpfulif youplantoexport thedata.
1. On the DecodeSetuptab,touch theConfigureTable button.
2. On the ViewColumnspop-updialog,markthe columnsyouwant toappearandclearthose youwish
toremove. Onlythosecolumnsselectedwillappearon the oscilloscopedisplay.
Note:If acolumn isnot relevant to thedecoderas configured,it willnot appear.
Toreturnto the presetdisplay,touchDefault.
3. Touch theClosebutton whenfinished.
Onsomedecoders,youmayalsousetheView Columns pop-uptoset aBit RateTolerancepercentage.
When implemented,thetoleranceisusedtoflagout-of-tolerancemessages(messagesoutsidetheuserdefinedbitrate +-tolerance)bycolorizingin redtheBitrateshown inthetable.
You maycustomizethesizeof theresult tablebychanging theTable# Rowssetting on theDecodeSetup
dialog. Keep inmindthat thedeeperthetable,themorecompressed thewaveform displayon the grid,
especially if therearealsomeasurements turnedon.
Exporting Result Table Data
You can manuallyexport thedetailed result tabledatatoa .CSVfile:
1. Press the Front PanelSerialDecode button,orchooseAnalysis>SerialDecode,thenopentheDecode Setuptab.
2. Optionally,touch Browseandentera new FileNameandoutput folder.
3. Touch theExportTablebutton.
Export filesare bydefault created intheD:\Applications\<protocol>folder,althoughyoucanchooseany
other folder on the oscilloscope oranyexternaldriveconnectedtoahost USBport.Thedatawilloverwrite
thelast export file saved,unlessyouenter a newfilename.
TheSaveTablefeaturewillautomaticallycreate tabular datafileswitheachacquisitiontrigger.The file
namesare automaticallyincremented sothat data isnot lost.ChooseFile > SaveTable from the
oscilloscopemenu barandselect Decodexasthesource.
Using MsgToValue
MsgToValue enablesyou to applyoscilloscope featurestoa subset of the result table andisaimedat
protocolswith addressedpacketscontainingvarying types of data,likeCAN,LIN,MIL1553 andmany
others. With it,youcanfilter the tableby a particularIDtoextract andconvert decodeddatavaluesintoa
TouchingtheActiontoolbar Searchbuttonbuttonon theDecodeSetupdialogcreatesa 10:1zoom of the
centerof the decodersource trace andopenstheSearchsubdialog.
Touchingtheanycellof the result tablesimilarlycreates azoom andopensSearch,but of onlythat part of
thewaveform corresponding to theindex(plusanypadding).
OntheSearch subdialog,select what type of dataelement to Searchfor.Thesebasic criteriavaryby
protocol,but generally correspondtothecolumnsof datadisplayed onthedetaileddecoderresult table.
Optionally:
l CheckUse Value and enter theValue to findinthat column.If youdo not entera Value,Searchgoes
tothebeginning of the next data element of that typefoundintheacquisition.
l Enter aLeft/Right Pad,thepercentageof horizontaldivision aroundmatching data todisplay onthe
zoom.
l CheckShowFrame tomarkontheoverlaytheframeinwhichtheevent was found.
AfterenteringtheSearch criteria,usethePrevand Nextbuttonsto navigate tothematchingdatain the
table,simultaneouslyshiftingthezoom totheportionof thewaveform that correspondstothematch.
Decoderscanbe applied to SequenceModeacquisitions. Inthiscase,theindexnumbersontheresult
table arefollowedbythesegment in which theindexwasfoundandthenumberof thesamplewithinthat
segment:index(segment-sample).
Note:For someprotocols,theSerialTrigger doesnot support SequenceModeacquisitions,
althoughyoucouldstilldecodeSequenceModeacquisitionsmadeusinga different triggertype.
Intheexampleabove,each segment wastriggeredontheoccurrenceof ID0x400,whichoccurred only
once persegment,sothereisonlyonesampleper segment.TheTimeshown for each indexin a
Sequence acquisitionisabsolute timefrom thefirst segment triggertothebeginningof the sample
segment.
Otherwise,the resultsare thesame asforothertypesof acquisitionsand can bezoomed,filtered,
searched,or usedtonavigate. When aSequenceModetable isfiltered,thewaveform annotationappears
ononlythosesegmentsandsamples correspondingtothefiltered results.
Note:Waveform annotations can onlybe shownwhen theSequence DisplayModeisAdjacent.
Annotationsare not adjustedwhena SequenceModesummarytableisfiltered,onlytheresult
table data.
Multipledecoderscanbe runonSequenceModeacquisitions,but ina summarytable,eachdecoderwill
havea first segment,secondsegment,etc.,andtheremaybeany numberof samplesin each. As inany
summarytable,thesampleswillbe interleavedandindexed accordingto their actualacquisitiontime. So,
youmay find(3-2)of onedecoderbefore (1-1) of another.Filteron theProtocol column toseethe
sequentialresultsfor onlyone decoder.
Note:For someprotocols,theSerialTrigger doesnot support SequenceModeacquisitions,
althoughyoucouldstilldecodeSequenceModeacquisitionsmadeusinga different triggertype.
Paralleltest usingmultipleoscilloscopechannels.Up-to-fourdecoders canrun simultaneously,each using
different dataor clockinput sources. Thisapproach isstatisticallyinterestingbecausemulti-channel
acquisitionsoccurin parallel.The processingisserialized,but thedecoding of each input onlyrequires
20%additionaltime,whichcanlessenoveralltimefor productionvalidationtesting,etc.
Avoidoversampling. Toomanysamplesslowtheprocessingchain.
Optimizeforanalysis,not display.Theoscilloscope hasa preferencesetting(Utilities>Preference Setup>
Preferences)to controlhow CPUtime isallocated. If youare primarilyconcernedwithquicklyprocessing
data forexport toothersystems(such as AutomatedTest Equipment)ratherthanviewingit personally,it
can helptoswitch the OptimizeFor:settingtoAnalysis.
Turnofftables,annotations,andwaveform traces.Aslongas downstream processessuchas
measurementsor Pass/Failtests referenceadecoder,thedecodercanfunctionwithout actually
displayingresults.If youdo not needtoseetheresults but onlyneedtheexported data,youcan deselect
View Decode,or minimize thenumber of linesina table.Closinginput tracesalsohelps.
Decreasethenumberofcolumnsintables.Onlytheresult tablerowsand columnsshown areexported. It
isbest toreduce tables to onlytheessentialcolumnsif the data istobe exported,asexport time is
proportionaltotheamount of data exchanged.
n:=1 to4
RowA:=0 to K(0=Row IndexNumber)
ColA:=0 to L(0=ColumnHeader)
RowB:=0=MeasuredValue,1=StartTime,2=StopTime
ColB:=0 to M
Complicatingthematterof accessingthetableis that thereare twotypesof cellthat mayappearinthe
Result table,SimpleCellandTableCell,whichare accessedin slightlydifferent ways,andthat some
columns arealwayshiddenfrom view,yet theyarestillcounted amongthecolumnswhenquerying.
Reading the Structure of the Result Table
Inorder to successfullyaccessthedata,it isnecessaryto first ascertain howmanyrows andcolumnsare
actuallyin yourdecoderresult table,andwhat celltypeis usedfor the columnof datayou wishto read.
Todo this,we haveprovidedthescript,ExampleTableSerialDecode.vbs,whichbydefault installsinto
oscilloscope:C:\LeCroy\XStream\Scripts\Automation\ExampleTableSerialDecode.vbs.
Tip:Thisscript may alsobe usedas abasisforyourown remote controlprograms,orusedas isto
readdecoder table data.
Withthedecodertable populated,run the script from theoscilloscope (ora remotePCif youhaveaDCOM
connectiontotheoscilloscope).The script will generate the comma-delimitedfile,
ExampleTableSerialDecode.txt,whichmaybeimported into Excelor other spreadsheet softwaretoshow
thetable structure.
Examplespreadsheet after importingExampleTableSerialDecode.txt.
Thefirst tworowsof theimported file willshowthetotalnumber of rows andcolumnsinthetable,inthis
example8 rowsand34 columns. Thisindicatestherangeof your RowAandColAkeys.
Thethirdrow of theimported filewillreplicatethecolumnheadersof the Result Table(0),withindividual
records(frames,messages,etc.,dependingon how youhave"packetized"the decoding)appearingin
subsequent rows (1-n).
Countingfrom 0 at thefarleft (RowIndexNumber),findthecolumn of thedata youwish toaccess.That
willbetheColAkeyinyourscript.
Note:Donot confuse the number/letter of thecellsintheimported filewith the rows/columnsof
theResult Table.
Hiddencolumns(whether hidden byyouor thesoftware) must stillbecounted,so,in the exampleabove,
PRIOiscolumn3,makingID column 4,and so forth. So,if youwished to accesstheIDof record6,thefirst
argument of your querywouldbe:(6,4)
Withineach column,SimpleCellscontaina singlevaluethat appearsat the specified locationin the table.
Intheaboveexample,columns0 through2 areSimpleCells.SimpleCellVBSaccesssyntax is:
vbs?'return=app.SerialDecode.Decode1.out.Result.cellvalue(RowA,ColA)'
However,manycellsof the Result Tableare theTableCelltype,nestedtablesthat maycontainmultiple
"B"columnsand alwaysthree"B"rowsthat,whencoupledwith the columnkey,each return adifferent
componentof the measurement:(0,ColB)=MeasuredValue,(1,ColB)=StartTime,(2,ColB)=StopTime.
Thesecellscanbe identified bythelist of semi-colondelimited values withinthem. The first threevaluesin
thelistare Col0,thesecondthreevaluesareCol1,and soforth.
ToaccessTableCells,the(RowB,ColB)argument issent in a secondparenthesis,followingtheA
"locators":
row nestedtable.To readthe valuesfrom such columns,youwouldadd the argument (0,0) following your
"locators":(RowA,4),(0,0)and(RowA,6),(0,0) respectively.
ReadingtheData column(RowA,12)ismorecomplicated,becauseit containsa multi-column,three-row
nestedtable,asindicatedbythelongerlist of values. ToaccessthefullData column valuefor each
record,allColBs must be calledbyyour script.
For example,if thesewere yourdecoder results:
ThefollowingtableshowsexampleVBSqueriesyoumight addtoa remotecontrol program toreaddata
from thedecoderresult table.
Remote Queries
vbs? 'return=app.SerialDecode.Decode1.out.Result.rows'8Number of table rows
Value in first 3 columns
of Row 6, including:
Index # in Row 6 Col 0
Time in Row 6 Col 1
Format in Row 6 Col 2
Row 6 Col 12
StartTime of Data in
ColB0 of Row 6 Col 12
(hidden)
ColB0 of Row 6 Col 12
Row 6 Col 12
StartTime of Data in
ColB1 of Row 6 Col 12
(hidden)
Modifying the Result Table
TheCVARapp.SerialDecode.Decoden.Decode.ColumnStatecontainsapipe-delimitedlist of allthetable
columns andtheircurrent state(visible=on,hidden=off). For example:
app.SerialDecode.Decode1.Decode.ColumnState= "Idx=On|Time=On|Data=On|..."
If youwish tohideor displaytablecolumns,sendthe fullstringwiththestate changedfrom "on"to"off",or
TDoptionsprovideadvancedserialdata triggering inadditiontodecoding. Serialdatatriggeringis
implementeddirectlywithinthehardwareof the oscilloscopeacquisitionsystem.The serial data trigger
scrutinizesthedatastream inrealtime torecognize"on-the-fly"theuser-definedserialdataconditions.
When the desiredpatternisrecognized,theoscilloscopetakes areal-time acquisitionof allinput signalsas
configuredin theinstrument'sacquisitionsettings.Thisallowsdecodeandanalysisof the signalbeing
triggered on,aswellasconcomitant datastreamsand analog signals.
Theserialtriggersupportsfairlysimpleconditions,suchas "triggerat the beginningof anypacket,"but the
conditionscanbe mademorerestrictivedependingon theprotocolandtheavailable filters,such as
"triggeronpacketswithID = 0x456". Themost complextriggersincorporate a double conditionon theID
anddata,forexample "triggeronpacketswithID= 0x456and whendata inposition27 exceeds1000".
Note:Thetriggeranddecode systems areindependent,although theyare seamlessly coordinated
intheuserinterfaceandthearchitecture. It istherefore possibletouse the serialtriggerwithout
decodingtheacquisition,or todecodeacquisitionsmadewithout usingtheserialtrigger.
Theserialtriggeronlyoperatesononeprotocol at a time.It isthereforeimpossible toexpressa condition
suchas "triggeronCANframeswithID=0x456followed byLINpacket with Adress0xEBC."
Whilethedecoderandthetriggerhavedistinct setsof controls,whenthelinkisactive,achangeto the bit
rate inthedecoderwillimmediatelypropagate tothetriggerandvice-versa.
l Touch the Triggerdescriptor boxor choose Trigger>TriggerSetupfrom theMenuBar.
l OntheTrigger dialog,touchtheSerialTypebutton,thentheCAN Stdor CANFDStandardbutton.
Workingfrom left toright,make thedesiredselectionsfrom thetriggersetupdialog.
Source Setup
InDATA,select thedatasource input channel.
Use theThresholdcontroltoadjust theverticallevelfor the trigger.MuchlikeanEdgetrigger,youmust
specify thelevel at whichtoprocesstheincomingsignaltodetermine whether theserialdatapattern
meetsthetriggercondition.
Tip:One wayto test that thethresholdis set correctlyisto initiallyset the TriggerTypetoAll.If you
seeadecodedmessage appeareach timetheoscilloscopetriggers,the leveliscorrect.
Frame Type
ThesecontrolsappearonlyforCANFDtriggers.Theyallowyoutospecifyinformationabout theframe
types to befoundinthedatastream.
l CheckISOFrameif thestream supportsISOframes.
l Choosea BRSelectof Both (X),Normal(0),or FD(1). Both examines frameswithor without a
bit rateswitch. NormalandFDexamineonlyframes withtherespectiveBRSbit values.
CAN Setup
If youhavenot linkedthetriggertoapre-set decoder,entertheNominalBitrate usedduringtheArbitration
sequence.UsetheUpand Downarrows to scroll the list of standardbit ratesand makea selection,or
touchBitrateanduse the Adjust knobor theVirtualKeypad toenter thevalue.
l Alltriggers uponfinding the first CANframe.
l RemotetriggersuponfindingmatchingFrameIDvaluesinRemoteframes (only).Completethe
FrameIDSetup describedbelow.
l IDtriggers uponfinding matchingFrame IDvalues inanytypeof frame.Complete the FrameID
Setupdescribedbelow.
l ID+DatatriggersuponfindingmatchingFrameIDvaluesand data patterns.Completeboththe
FrameIDSetup andData PatternSetupdescribedbelow.
l Errortriggerswhena protocolerror occurs.Select alltheerrors that canproduce a trigger from
belowErrorType.
Viewing Format
Choosetodisplay/enter valuesin Binary,Hex(adecimal)or Sym(bolic)format (depending onyour
capabilities).Thisselectionpropagates throughout thetriggersetup. Toggling formatsdoesnot result in
lossof information,but will transform theappearance of values.
Create aconditionstatement that describestheDatafield pattern upon which totrigger.Thisconditionis
addedto the FrameIDcondition.
1. Choosethe Data Condition(Boolean operator) that describestherelationship to thereferenceData
Value.To usea rangeof values,chooseInRangeorOut Range.
2. Set DLC(DataLengthCode)to any integervaluefrom 0 to 8.It shouldmatchtheDLCof theCAN
message(s)onwhichtotrigger.
3. Choosefrom eitherMotorola (default) or Intel Byte Order.
4. UseStartBit and# Data Bitstogethertodefinea stringof up-to-64contiguousdata bits (8data
bytes)startingfrom anylocationin the messagedata field. TheStart Bit canbe anyvaluefrom 0 to
63,it isnot limited to thestart of a fullbyteor anibble.TheStart Bit valueis alwaysin LSBformat,
thebit numberingshown onthedecodedwaveform,withbit 0 at thefarleft andbit 63at thefar
right. Make suretheStart Bit valuemakessenseinrelationtotheDLCvalue(e.g.,aStart Bit value
of 32 with aDLCValueof 4isnot goingto result inasuccessfultrigger).The total# DataBits can
beanyvaluefrom 1to 64.
5. Choosea SignTypeof signed orunsignedintegerformat.
6. Enter thereference Data Value.Whenusinga range,enterthestart Data Value.For Hexadecimal
format values,if desired,youcanprecedetheIDvaluewith 0x,but thisis not necessary.Besure to
enter aDataValue that matchestheDLCValue.
When using arange,enterthestopvalueinDataValue To.
TheSamplingPoint dialogappearsbehindthetriggersetupdialogfor enteringtheNominalBit Time(s) so
that the software can determinethebest samplingpoint. CANFDusersshould alsoset thedata phase
DataBit Time(s),which can runat different data ratesthanthearbitrationphase.
Note:If thetriggerislinked toa decoder,thesefieldswillalreadyreflect the entriesonthedecoder
Samplingsubdialog. Changing values herewillalsochangethedecoder.
IntheBasicformat,youneedonlyset theRequestedSamplingPoint position(s)withinthebit usedbyyour
nodes,expressedas apercentageof the UI.Accordingto thepercentage(s) entered,Prop_Seg,Phase_
Seg1,and Phase_Seg2timesare estimated by thesoftware.
Note:For most users,thedefault Basicsampling point workssufficientlywell. However,an
incorrect RequestedSamplingPoint percentagemayresult infalseerrordetermination.If yousee
false errortriggersor errorframesin thedecoding,usetheAdvanced menuformat toenterthe
values manually.
IntheAdvancedformat,youenter thenumberof time quantasfor the followingsegments,accordingto
yourDUT'sspecification:
l Prop_Seg,part of thebit time usedto compensateforphysicalnetworkdelaytimes.
l Phase_Seg1,numberof timequantumsbefore thesamplingpoint.
l Phase_Seg2,numberof timequantumsafter thesamplingpoint.
l SJW(SynchronizationJumpWidth).
Thereisno fieldfor enteringtheSync_Seg,becausethesoftwarealwaysusesthevalue1.
Thesum of the Sync_Seg,Prop_Seg,Phase_Seg1andPhase_Seg2must beequaltotheavailable time
When the triggerisenabled,theActualSamplingPoint levelsusedaredisplayed on thedialogin either
format.In the Advanced menu,youmayseethisvaluechangeas youchangethevalues ineach field.
l Touch the Triggerdescriptorboxor chooseTrigger>TriggerSetupfrom theMenu Bar.
l Touch the SerialTypebutton,and the LINStandardbutton.
Then,workingfrom left toright,makethedesiredselectionsfrom theLINdialog.
Source Setup
InDATA,select thedatasource input channel.
Use theThresholdcontroltoadjust theverticallevelfor the trigger.MuchlikeanEdgetrigger,youmust
specify thelevel at whichtoprocesstheincomingsignaltodetermine whether theserialdatapattern is
meetingtheset triggercondition.
LIN Setup
If youhavenot linkedthetriggertoapre-set decoder,entertheBitrate of the bustowhichyouare
connected.Thisbit rate selection isdynamicallylinked tothedecodingbit rate(theyare alwaysthesame
value). UsetheUpor Downarrowstoscrollthelist of standardbit ratesandmakea selection,or touchthe
controlandenterthevalueasclose aspossible to theactualbusrate.
Trigger Type
Theoscilloscopecanbeconfiguredtotriggerupona simpleLINStart of Frame(Break),a FrameIDvalue,
acombination of FrameIDvaluesand Datapatterns,or error.ChoosethedesiredTrigger Typeand
complete the remainingfieldsrequired to set thetriggercondition:
l Error,complete theChecksum ErrorSetup below.
l FrameID,complete theFrameIDSetup below.
l ID+Data,complete both FrameIDSetup andData PatternSetupbelow.
FrameIDSetup isusedtotriggeruponencounteringeithera specific IDvalueor anyvaluerelativetoa
referenceIDvalue(e.g.,greaterthanx).Usethesecontrolsto createa condition statement that
describesthe triggercriteria.
ChoosetheID Condition(Booleanoperator)that describestherelationshiptotheFrame IDvalue. Tousea
rangeof values,chooseInRangeor Out Range.
Enter thereferenceFrame IDvalue.Whensetting arange,enterthestart FrameID.
When settingarange,enterthestopvalueinToFrameID.
Data Pattern Setup
Create aconditionstatement that describestheDatafield pattern upon which totrigger.Thisconditionis
addedto the FrameIDcondition.
ChoosetheDataCondition(Booleanoperator)that describestherelationshiptothereferenceData Value.
Tousea rangeof values,chooseIn Range orOut Range.
Enter thereferenceDataValue. When usinga range,enter thestart Data Value.In Hexadecimalformat,
data must beentered asfullbyteseventhoughtheminimum requiredacceptableentryisa nibble. If less
thana fullbyteisentered,thena"don't care"(wildcard) Xprecedesthepatternvalues entered.Upto 8
bytesof data canbe entered asapatternvalue. If lessthan8bytesof dataisenteredforthepattern value,
thedata isassumedtobeginat DataByte 1intheLINmessage. If thisisnot desired,then addpreceding
ortrailingXnibblestothepattern value.
When using arange,enterthestopvalueinDataValue To.# DataBytesdefaults tothelength,in bytes,of the patternset in the Data Value.If youchangethelength
tobelessthanthisvalue,it wouldtruncate the beginningof the patternvalue.If youweretoincrease the
patternlength,it wouldadd "don't care"XXbytevaluestothebeginningof the pattern value.The
maximum numberof data bytesis8,per theLINstandard.
Checksum Error Setup
Enter theErrorFrameIDtosearch.
Checkalltheerrortypeson which totrigger: ChecksumError,HeaderParity,orSyncByte.
If Checksum Error isselected,also enter theLINSpec. (standard)usedtoencode the dataand the # Data
l Touch the Triggerdescriptorboxor chooseTrigger>TriggerSetupfrom theMenu Bar.
l Touch the SerialTypebutton,and the FlexRayStandardbutton.
Then,workingfrom left toright,makethedesiredselectionsfrom theFlexRaydialog.
Source Setup
Thesecontrolsare usebyalltriggertypes.
InDATA,select thedatasource input channel.
Use theThresholdcontrolstoset theHighandLow verticallevelfor the trigger. Much likean Edgetrigger,
If desired,usetheFindThresholdbuttonto set appropriatethresholds based ontheinput signal
characteristics.
FlexRay Setup
If youhavenot linkedthetriggertoapre-set decoder,entertheBitrate of the bustowhichyouare
connected.Thisvalueisdynamicallylinkedtothedecodingbitrate;theyare alwaysthesame.Touch the
arrow buttonstoscroll throughstandardbitrates(2.5,5.0 or10.0 Mb/s),or touchBitrateand enter the
value usingtheAdjust knobor theVirtualKeypad.
Trigger Type
Theoscilloscopecanbeconfiguredtotriggerupontheoccurrence of a simpleTransmit Start Sequence
(TSS),a Symbol,various Framecharacteristics (ID,CycleCount,or Qualifiers),or aFlexRayerror.Choose
thedesired TriggerTypeandcompletetheremaining fieldsrequiredtoset thetriggercondition:
l TSS,completeSetupFormat below.
l Frame,complete SetupFormat and FrameTriggerbelow.
l Symbol,complete theSymbolTriggerbelow.
l Error,complete Error Triggerbelow.
FrameIDSetup isusedtotriggeruponencounteringeithera specific IDvalueor anyvaluerelativetoa
referenceIDvalue(e.g.,greaterthanx).Usethesecontrolsto createa condition statement that
describesthe Frame IDcriteria.
ChoosetheCondition(Booleanoperator)that describestherelationshiptotheFrameIDvalue.To usea
rangeof values,chooseInRangeor Out Range.
Enter thereferenceValue. When settinga range,enter thestart FrameIDinValueandthestopFrameID
value inTo.
Tip:UseXasa wildcard ("Don't Care")inanyposition.To effectivelyexcludetheFrameIDas a
trigger condition,choosetheEqualconditionandthedefaultvalueof all Xs.
CycleCount
TheCycle Count isa decimal value between0 and63 correlatingtotheFlexRayCycleCount numbering
system. Thedefault CycleCount is 0. Youmay alsospecifya Repetition Factorto allow fortriggering when
Cyclemultiplexing isbeingused.ThisconditionisaddedtoanyFrame IDconditions.
When the CycleCount conditionisset to Equal,set a RepetitionFactorof 1,2,4,8,16,32or 64.
FrameQualifiers
DefinedintheFlexRayspecification,theoccurrence of PayloadPreamble,NullFrame,Sync Frame,or
StartupFramebits may beset astriggerconditions.TheseconditionsareaddedtoanyFrame IDorCycle
Count conditions.
Eachqualifier can beset to oneorzero,or omittedbyselecting"Don't Care".Thetriggerwillbe restricted
Akeyfeatureof TeledyneLeCroy trigger anddecodeoptionsis the integrationof thedecoder functionality
withthetrigger.Whileyoumaynot be interestedinthedecoded data perse,usingthedecodedwaveform
can helpwithunderstandingandtuningthetrigger.
Stop and Look
Decodingwith repetitivetriggerscan beverydynamic.Stop the acquisitionanduse the decodertools
suchas Search,or oscilloscopetoolssuch asTriggerScan,toinspect thewaveform forevents of interest.
Touch anddragthepausedtrace to showtimepre-or post-trigger.
Thedefaulttriggerpoint isat zero(center),marked bya smalltriangleof the samecolorastheinput
channelat thebottom of thegrid.Zoom smallareasaround the trigger point.The zoom willautomatically
expand tofit thewidthof thescreenona new grid.Thiswillhelpyoutosee that your triggerisoccurringon
thebits youspecified.
If youdrag atrace toofarleft or right of thetriggerpoint,themessagedecoding may disappearfrom the
grid.Youcanprevent "losing"the decodeby creatinga zoom of whateverportionof the decodeinterests
you.Thezoom trace willnot disappear when draggedand willshow muchmoredetail.
Themessage decodingandtheresult table aredynamic and willcontinuetochangeas long asthereare
newtriggerevents. Astheremaybemanytrigger events inlongacquisitionsor repetitivewaveforms,it
can bedifficult (if not impossible) toactuallyreadtheresults onscreen unless youstoptheacquisition.
You can preservedataconcurrent with the trigger byusingtheAutoSavefeature.
l AutoSave Waveform createsa.trc filethat copiesthewaveform at eachtriggerpoint. Thesefiles
can berecalled totheoscilloscopeforlaterviewing.ChooseFile> SaveWaveform and anAuto Save
settingof Wrap(overwritewhen drivefull)or Fill(stopwhendrivefull).The filesare saved in
D:\Waveforms.
l AutoSave Tablecreates a.csvfileof the result tabledataat eachtriggerpoint. Choose File > Save
TableandanAuto Save settingof Wrapor Fill. Thefilesare savedin D:\Tables.
Caution:If you havefrequent triggers,it is possibleyouwilleventuallyrun out of hard drivespace.
ChooseWraponlyif you're not concernedabout filespersistingon the instrument. If youchoose
Fill,plantoperiodicallydeleteor movefilesout of thedirectory.
Theinstallation of theMeasure/Graphpackage (includedwithany-DMEor-TDMEoption)addsa set of
measurementsandplotsdesignedfor serialdataanalysisto the oscilloscope'sstandardmeasurement
capabilities.Measurementscanbequicklyappliedwithout havingtoleavethewaveform ortabularviews
of thedecoding.
Note:Thisfunctionalitywasformerlyofferedaspart of -TDM options andtheProtoBusMAG
software option.The featuresdescribedinthissectionshouldbe present If youhaveeither of
these installedon youroscilloscope.
Serial Data Measurements
Thesemeasurements designed for debugging serialdatastreamscanbeappliedtothedecoded
waveform.Measurements appearina tabularreadout below thegrid(thesameasfor anyother
measurements)andare inaddition to theresult tablethat showsthedecodeddata.Youcan set upas
many measurements asyouroscilloscopehasparameter locations.
l Histogram-a barchart of the numberof datapointsthat fallintostatisticallysignificant intervalsor
bins. Barheight relatestothefrequencyat which data pointsfallinto each interval/bin.Histogram is
helpfultounderstand the modalityof a parameterand to debugexcessive variation.
l Trend-a plot of theevolutionof a parameterover time.The graph'sverticalaxisisthevalueof the
parameter;itshorizontalaxisistheorderin which thevalueswere acquired.Trendingdatacanbe
accumulated overmanyacquisitions. It isanalogousto achart recorder.
l Track-atime-correlated accumulationof valuesfora singleacquisition.Tracksaretime
Use theMeasure/GraphSetup dialog to applyserialdatameasurement parameterstothedecoded
waveform andsimultaneouslygraph the results.Thisdialogappearsbehind theDecodeSetupdialogand
isactivewhen measurementsaresupported.
1. Select theMeasurement to applyand theDestinationparameter(Pn)to which toassign it.
2. Theactivedecoderispreselected inSource 1,indicating the measurement willbeappliedtothe
decoderresults;changeit if necessary.If the measurement requires it,alsoselect anappropriate
Source2 (such as ananalogwaveform for comparison).
3. Optionally:
l Touch Graphtoselect aplot type. Also select a Destinationfunction(Fn) for theplot.
l Touch Apply&Configuretoset a filter,gateor otherqualifiersonthemeasurement.
Certain serialdecodemeasurements can befilteredto includeonlytheresultsfrom specifiedIDsor
specific datapatterns. As withallmeasurements,you canset a gate torestrict measurements toa
horizontalrangeof the gridcorrespondingtoa specific time segment of the acquisition.
Thisfilterrestrictsthemeasurement toonlyframes/packetswitha specificID value. Settingson this
dialog may changedependingon theprotocol.
1. On the Mainsubdialog,choosetoFilterbyIDor ID+Data.
2. On the IDsubdialog,choose toenter theIDinBinaryorHex(adecimal)format.
3. If thefieldappears,select the# BitsusedtodefinetheframeID.(ThiswillchangetheIDValuefield
length.)ForCAN,choosefrom standard11-bitor extended29-bit.
4. Using the IDConditionandIDValue controls,createa conditionstatement that describestheIDs
youwant included inthemeasurement. Toset a rangeof values,alsoenter theIDValueTo.
Tip:Onthevalueentrypop-up:usethearrow keystopositionthecursor;useBacktoclear
theprevious character(likeBackspace);useClear to clear allcharacters.
Data Filter
Thisrestricts measurementstoonlyframes containing extracted data that matchesthefilter condition.It
can becombinedwitha FrameIDfilter bychoosing ID+DataontheMainsubdialog.
Use thesame procedureas abovetocreate a condition describingtheData Value(s)toinclude inthe
measurement.Use"X"asa wildcard("Don't Care")inanyposition wherethevaluedoesn't matter.
Optionally,enter a Start Positionwithinthedata fieldbytetobeginseeking thepattern,and the # Bitsinthe
data pattern.The remainingdatafields positionswillautofillwith"X".
Note:For MsgtoMsgmeasurements,the dataconditionisenteredtwice:first for theStart
MessageandthenfortheEndMessage. Themeasurement computes the timeto find amatchto
each set of conditions.
Analog Settings
Themeasurements AnalogToMsgand MsgToAnalogallow youtousecrossinglevelandslopetodefine
theeventin theAnalogwaveform that istobe usedas thereferenceforthemeasurement.
Aswith the decoder,Levelmay beset asa percentageof amplitude(default),or asan absolutevoltage
level bychangingLevelIstoAbsolute. YoucanalsouseFindLeveltoallowtheoscilloscopetoset thelevel
tothemeanTop-Baseamplitude.
ASlope and Hysteresisselectionisalsooffered. Thewidthof theHysteresisband isspecifiedin milli-
divisions.SeeSettingLeveland Hysteresisformoreinformationonusingthesecontrols.
qualitativelytounderstand thequalityof the signalcommunicationspath.Signalintegrityeffectssuch as
intersymbolinterference,loss,crosstalkandEMI canbe identifiedby viewingeyediagrams,suchthat the
eyeistypicallyviewedprior toperforminganyfurtheranalysis.
Eachpixelintheeye takeson acolorthat indicates howfrequentlya signalhaspassedthrough thetime
andvoltagespecifiedforthat pixel.The eyediagram showsallvalues adigital signal takesonduringa bit
period.Abit period (alsoreferred to asunit interval,or UI)isdefinedby the data clock,whetherexplicit or
extrapolated dependingon theprotocol.
Eyediagramsshow the acquiredsignalthat iscurrentlybeingshownonthedecoderresult table.They are
not persistent,asare eyediagramsgenerated insome otherserialdataanalysis software;theeyewill
changefrom oneacquisitiontothenext andwhentheresult tableisfiltered. Ourrecommendedapproach
forusingthe eye diagramsisto:
l Make singleshot acquisitionswithdecoderandeyediagram enabled tocheckthat both areworking
correctly.
l Runa normal acquisitionwith MaskTestingand StopOnFailure enabled intheMaskFailure Locator,
orwith aPass/Failtest set on oneof theeyeparameters.
Eye Diagram SetupDialog
Create Eye Diagram
OpentheEye DiagramSetupdialogandselect the Decode for which tocreate aneyediagram.
Under Eye,checkEnabletodisplaytheeye diagram.
TheBitrate isautomatically readfrom thedecoder setup.Thisvalueislinkedtothedecoder bit rate
setting,andchangingit ineitherplace willupdate bothsettings.
TheUpsample factor increasesthenumber of samplepointsusedtocomposetheeyediagram.Increase
from 1toa highernumber (e.g.5) tofillin gaps.Gaps can occurwhenthebitrate isextremelyclose to a
submultipleof the samplingrate,suchthat thesamplingof thewaveform doesnot movethroughout the
entire unit interval.Gapscanalsooccurwhenusinga record length that doesnot samplea sufficiently
largenumber of unit intervals.
Automotive Protocols TDMEInstructionManual
TheEye Style may utilizecolor-graded oranalogpersistence:
l
Withcolor-gradedpersistence,pixels aregivenacolorbasedonthepixel'srelative population
andtheselectedEyeSaturation.Thecolor paletterangesfrom violet to red.
l
Withanalogpersistence,thecolorusedmimickstherelative intensity that wouldbeseenon an
analog oscilloscope.
Use theEye Saturationslidertoadjust thecolor gradingor intensity. Slideto the left to reduce the
thresholdrequiredtoreachsaturation.
Use thisdialogtoquicklysearch the acquisitionfor eyediagram masktest failures.
InTraceWidth,enter thenumber of UIssurrounding themaskviolationtodisplayas"padding."
CheckStopOnFailure to stopacquisitionwheneveran eyemaskfailureoccurs.
Enter theMaxFailurestoretainin theEyeMaskFailure list.
Select from theEye MaskFailurelist tomarkandzoom tothelocationof that failure.Yellowcirclesappear
overtheredfailureindicators toshowthelocationof the failure.
Touch Source1and choosethetransmitter test signal.
Note:TheSource1 signal isusedforSIVoting,EyeDiagram,andMaskTest functions. Source1
andSource2 arebothusedfortheMeasurement function.
Optionally,touchSource 2 andchoose thereceivertest signalfor physicallayermeasurements.
Enter theBitrateas closeaspossibleto the thebitrateof the bustowhichyouare connected.Usethe
SI Votingwasdevelopedas an alternativefor userswhofoundeyediagramsandmaskstoresult in failed
testson signalswhichwould actuallypassinpractice.SI Votingfilterseverybit patternof theform 00010
and11101 (i.e.,allsingle-bit pulses),thenmeasuresthebit-length betweena point onthefirst edgeanda
symmetrical point onthesecondedge,providinga set of timedeltasbetweenthetwo edges.The result is
thentested against the specificationconstraints onshortest and longest acceptablebit-length,maximum
acceptablebit-length variation,longest acceptableedgetime,and TopandBaselevels.
Note:SI Votingdisablestheapplicationanddisplay of FlexRayphysicallayermeasurements.
Mark SIVotingOntoenablevoting.
Mark each item on which tovote:
l Pos. BitsLength
l Neg.BitsLength
l FilteredInput
Eyediagramsare createdbyslicingthebitstransmittedin the FlexRaysignalandsuperimposing each bit
ontoan eyediagram.The signal isslicedbasedonmeasurements takenat the fallingedgeof the first
ByteStart Sequence (BSS)andthetime betweenconsecutiveBSSsymbols. Thesemeasurements allow
thealgorithm tocomputetherateof the embeddedclockand slicetheFlexRaywaveform in to subwaveformsthat are one bit inlength. Theclockusesa constant bitratespecifiedby the userandis
resynchronizedon everyBSS.Thesesub-waveforms arethenscaled tofill8 horizontaldivisionson the
oscilloscopeandrepresent 1Unit Interval(UI) intheeyediagram andsuperimposedontopof eachother.
TheresultingEyeDiagram behaves as detailedintheFlexRayspecification (ElectricalPhysical Layer
ApplicationNotes,Chapter 2.19)and producesaneye of allthebits ina messagebysynchronizing onthe
BSStransition.Then,it uses aconstant clocktoslice bitsup tothenext BSS.Masksare definedfor 2.5,
5.0,and10 Mb/s speeds.
FlexRayeyediagram.
Mark Eye Diagram Onto enable eyediagramming.
Note:It willtakemoretime to generate aneyediagram from longacquisitionsthanfrom short.
Mark Eye Violationtodisplayviolations.Maskviolationsappearasred failureindicatorswheretheeye
diagramintersectsthemask.
Mark StopOnViolationtostop theacquisitionwhenever aneyeviolationoccurs.Thiswill allow timeto
examinethedecodingcomparedtotheeye diagram violationand understandexactlywhere the violation
occurred.
Masktestingcanbe performedon aneyediagram withmasks definedat TP1 andTP11. Themaskis
aligned horizontallyby computingthetime for a single UIand centeringit on the display.The maskis
centeredverticallyaround0V.
Asexplained intheFlexRayElectrical PhysicalLayerSpecification,Chapter 7,themasktestmakesan eye
of thebitsfollowing anytransition(risingand falling)withno clockrecovery.Onlya 10 Mb/smaskis
definedin the specification,but assuming acontrollerpassingat 10 Mb/salsopassesat other bitrates,
other masksare providedfor different test pointsand setupconfigurations.
You can applyfour measurements definedin theFlexRayphysicallayerspecificationto characterizethe
timingpropertiesof the signal alongthecommunicationchannel. Resultsappearinthemeasurement
readout tablebelow thegrid.
ClearSIVotingOntoenablemeasurement selection.
Mark each measurement you wishtoapplytothetest signal:
l PropagationDelay,measuredon twopoints alongthecommunicationchannelfrom theemitternode
moduletothereceivernodemodule. PropagationDelaycharacterizes the propagationtime of the
signal using thefirsttransitionof the ByteStart Sequence (BSS).
l AssymetricDelay,measuredontwo points alongthecommunicationchannelfrom theemitternode