HLA - Analyzer Frame Format

Documentation for output produced by Saleae's built-in Analyzers
Python High Level Analyzers allow users to write custom code that processes the output of an analyzer. The below list of pre-installed low level analyzers can be immediately used with high level analyzers (HLAs).

Adding HLA Support for More Analyzers

We've released documentation on our FrameV2 API below, which can be used to add HLA support for any low level analyzer that is not listed above, including custom analyzers that were created using our Protocol Analyzer SDK.

Writing an HLA

In order to write a high level analyzer, the data format produced by the connected source analyzer must be understood.
For example, a high level analyzer which consumes serial data needs to understand the serial analyzer output format in order to extract bytes, and this code is very different from the code required to extract data bytes from CAN data.
# Reading serial data
def decode(self, frame):
# Reading CAN data
def decode(self, frame):
if frame.type == 'identifier_field':
elif frame.type == 'data_field':
elif frame.type == 'crc_field':
To write a Python high level analyzer for a specific input analyzer, navigate to the section for that analyzer.
There is one page for each analyzer that is compatible with python HLAs. Each analyzer produces one or more frame types. These frame types have string names and will be in the type member of the frame class.
Each frame type may have data properties. The documentation page will list the data properties for that frame type, along with the data type and a description. These can be accessed from the dictionary.
Here is an example of you you might handle different frame types from I2C:
def decode(self, frame):
if frame.type == 'address':
if['read'] == True:
print('read from ' + str(['address']))
print('write to ' + str(['address']))
elif frame.type == 'data':
elif frame.type == 'start':
print('I2C start condition')
elif frame.type == 'stop':
print('I2C stop condition')