Busname, Celltype, Cellvalue – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 43: Overview
C
HAPTER
T
WO
Overview
BusName
Applies to: Digital
Description: Name of the bus, which can be configured via the user interface or by the automation property
app.LogicAnalyzer.Digital1.BusName
Example:
Dim BusName As String
BusName = app.LogicAnalyzer.Digital1.Out.Result.BusName
CellType
Applies to: Table
Description: Datatype for the selected cell in a table.This is used in order to properly readout the CellValue. .
Arguments:
Row: 0-based index of the row containing the cell. Use the Rows property to determine the maximum
number of rows.
Column: 0-based index of the column containing the cell. Use the Columns property to determine the
maximum number of columns.
Result type: Enumerated, with the following definitions:
0: Variant
2: Param result interface
(other values exist, but do not apply to the Table interface)
Example:
‘Returns CellType for row 1, column 1
Dim CellType As Integer
CellType = app.SerialDecode.Decode1.Out.Result.CellType(1, 1)
CellValue
Applies to: Table
Description: The value for the selected cell in a table. The method for reading back CellValue depends on the
cell’s CellType property. For cells where CellType = 0 (variant), then CellValue contains the cell’s value. For
CellType = 2, CellValue becomes a Param result interface with its own value property. See the example for more
information.
Arguments:
Row: 0-based index of the row containing the cell
Column: 0-based index of the column containing the cell
Example:
Dim CellValue
‘ When the CellType for the cell = 0, read out the value directly, as shown
below.
' This call often returns "Idx", which is the header for column 0
CellValue = app.SerialDecode.Decode1.Out.Result.CellValue(0, 0)
' The code below demonstrates how to readback the
‘ cell value when the CellType for the cell = 2:
Dim DecoderTableResult As Object
Set DecoderTableResult = app.SerialDecode.Decode1.Out.Result
Dim CellValueOb As Object
916435 RevA
2-7