0% found this document useful (0 votes)
80 views59 pages

Int Labview

for labview user

Uploaded by

ogata
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views59 pages

Int Labview

for labview user

Uploaded by

ogata
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 59

Integration with LabView

TRACE32 Online Help

TRACE32 Directory

TRACE32 Index

TRACE32 Documents ...................................................................................................................... 

3rd Party Tool Integrations ........................................................................................................... 

Integration with LabView ........................................................................................................... 1

Overview .................................................................................................................................. 3

Installation and Configuration VIs for TRACE32 .................................................................. 4

Virtual Instruments for TRACE32 Description ...................................................................... 7


Trace32_Init.vi 7
Trace32_Terminate.vi 9
Trace32_AddBreakpoint.vi 10
Trace32_ClrBreakpoint.vi 12
Trace32_ControlBreakpoint.vi 14
Trace32_MemoryRead.vi 16
Trace32_MemoryWrite.vi 19
Trace32_ReadCpuRegister.vi 21
Trace32_WriteCpuRegister.vi 22
Trace32_ReadVariable.vi 24
Trace32_WriteVariable.vi 26
Trace32_ReadVariableFloat.vi 27
Trace32_WriteVariableFloat.vi 29
Trace32_ReadVariableDouble.vi 31
Trace32_WriteVariableDouble.vi 32
Trace32_GetState.vi 34
Trace32_GetSymbol.vi 35
Trace32_GetSymbolFromAddress.vi 37
Trace32_GetAddressFromFile.vi 39
Trace32_GetSourceFileName.vi 40
Trace32_PracticeCmd.vi 42
Trace32_PracticeScript.vi 44
Trace32_PracticeGetState.vi 46
Trace32_RunControl.vi 47
Trace32_System.vi 49
Trace32_Quit.vi 52

Additional Controls for TRACE32 .......................................................................................... 54


Trace32_RunCmd.ctl 54
©1989-2016 Lauterbach GmbH
Integration with LabView 1
Trace32_SystemCmd.ctl 54
Trace32_OperationBreakpoint.ctl 55
Trace32_State.ctl 56
Trace32_Error.ctl 56

Quick Start ............................................................................................................................... 58

©1989-2016 Lauterbach GmbH


Integration with LabView 2
Integration with LabView

Version 24-May-2016

This document describes the installation process and the basic use of the LabVIEW Virtual Instruments
(version 8.3 and later) for TRACE32.

Overview

The LabVIEW Virtual Instruments for TRACE32 contains an interface that gives the LabVIEW internal VIs
access to external hardware debuggers. Virtual Instruments for TRACE32 allows the LabVIEW application
to interact with the program running on the embedded target.

The TRACE32 Software contains an interface for external control of TRACE32. Virtual Instruments for
TRACE32 give the LabVIEW application possibility to control the hardware debugger and program run by
the debugger.

The LabVIEW application makes use of the Virtual Instruments for TRACE32 through the T32_LabView.dll
providing the TRACE32 API interface. The DLL contains the TRACE32 function calls via UDP/IP socket
interface to the specified TRACE32 instance, after processing them, returns them using the same way.

Standard architecture for TRACE32 Virtual Instruments:

The library with Virtual Instruments for TRACE32 contains several block diagrams to communicate directly
with TRACE32 and several controls simplifying the use of the Virtual Instruments.

©1989-2016 Lauterbach GmbH


Integration with LabView 3 Overview
Installation and Configuration VIs for TRACE32

Follow these steps to install the VIs for TRACE32 and configure TRACE32:

1. Close TRACE32.

2. Close LabVIEW.

3. In the TRACE32 installation directory, browse to the subdirectory demo\env\labview.


Unpack the contents of the virtual_instruments_for_trace32.zip file to the directory with user
library files in your LabVIEW installation. The user library files are located in the following
directory: C:\Program Files\National Instruments\LabVIEW\user.lib\. Localization of the
user.lib directory can be different, depending on the LabVIEW installation directory.

4. Start LabVIEW.

5. Open the new blank VI file and select the Window -> Show Block Diagram from menu. Click
the right mouse button to see the functions palette and next select User Libraries and Virtual
Instruments for TRACE32.

©1989-2016 Lauterbach GmbH


Integration with LabView 4 Installation and Configuration VIs for TRACE32
Now, all Virtual Instruments for TRACE32 are available in LabView.

6. VIs for TRACE32 communications with TRACE32 through T32API over UDP local port.

Choose free port (for example 20000 - default for T32_Init.vi) and set it as below.

In case of using more than one TRACE32 simultaneously, please remember to set different API port
numbers for each TRACE32 configuration.

If, for some reason T32Start is not used, API port number can be set in “config.t32“ configuration file.
This file can be found in local TRACE32 directory. Please add following lines to this file:

RCL=NETASSIST
PACKLEN=1024
PORT=20000

Due to internals issues, please place empty lines between added section and other sections (entries)
in this file.

©1989-2016 Lauterbach GmbH


Integration with LabView 5 Installation and Configuration VIs for TRACE32
Now TRACE32 and LabView are properly configured.

©1989-2016 Lauterbach GmbH


Integration with LabView 6 Installation and Configuration VIs for TRACE32
Virtual Instruments for TRACE32 Description

The following section contains detailed descriptions of all elements included in Virtual Instruments for
TRACE32.

Trace32_Init.vi connects LabVIEW to TRACE32 and creates a “T32_Handle”. Ensure that all subsequent
TRACE32 VIs are connected to this handle; especially take care in conditional executions, that the handle
connections are continuous. TRACE32 VIs for LabVIEW older than 2011 may break, if no handle is
connected. VIs for LabVIEW version 2011 and above check the handle and throw an error if the handle is
missing.

Trace32_Terminate.vi closes the connection between TRACE32 and LabVIEW. Call this in any case; an
attempt to call Trace32_Init.vi without having the connection closed before will throw an error.

Trace32_Init.vi

Creates a connection between LabVIEW and TRACE32. Must be called before any other VI will try to
connect to TRACE32.

Connector Pane

Controls and Indicators

u32 Device - specifies TRACE32 device. Currently there are only two values defined:

0x0 - Basic operating system of the TRACE32 (“::“); disables all device specific
commands.

0x1 - Debugger (“E::“ or “B::“), including basic OS command (default).

u32 Port - defines the UDP port to use. If omitted, the default value (20000) is set. Be
sure that these settings fit to the RCL settings in the “config.t32“ file.

u32 Package length - specifies the maximum data package length and can not be
bigger than 1024 and must fit to the value defined in the “config.t32“ file. Default
value is 1024.

©1989-2016 Lauterbach GmbH


Integration with LabView 7 Virtual Instruments for TRACE32 Description
Node - defines the UDP host name, on which the TRACE32 display driver runs.
Default is “localhost” (TRACE32 and LabVIEW are running on the same machine).

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

T32_Handle - TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 8 Virtual Instruments for TRACE32 Description
Trace32_Terminate.vi

Deletes connection between LabView and TRACE32. It is called when connection to TRACE32 should be
terminated. After this operation T32_Handle is no longer valid.

Connector Pane

Controls and Indicators

T32_Handle - TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32. After this operation is no longer valid.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 9 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_AddBreakpoint.vi

Sets breakpoints on specified absolute address or symbol name.

Connector Pane

Controls and Indicators

Source select - specifies breakpoint source.

False - absolute address (default).

True - symbol name.

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - absolute address value.

©1989-2016 Lauterbach GmbH


Integration with LabView 10 Virtual Instruments for TRACE32 Description
Symbol - symbol name.

u32 Breakpoint type - specifies type of breakpoint.

0x0 - default TRACE32 type of breakpoint (default).

0x1 - onchip type of breakpoint.

0x2 - hardware type of breakpoint.

0x3 - software type of breakpoint

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 11 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_ClrBreakpoint.vi

Clears breakpoint on given absolute address or symbol name.

Connector Pane

Controls and Indicators

Source select - specifies breakpoint source.

False - absolute address (default).

True - symbol name.

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - absolute address value.

©1989-2016 Lauterbach GmbH


Integration with LabView 12 Virtual Instruments for TRACE32 Description
Symbol - symbol name.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 13 Virtual Instruments for TRACE32 Description
Trace32_ControlBreakpoint.vi

Controls behavior of the breakpoint given by absolute address or symbol name.

Connector Pane

Controls and Indicators

Source select - specifies breakpoint source.

False - absolute address (default).

True - symbol name.

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - absolute address value.

Symbol - symbol name.

u32 Breakpoint type - specifies type of breakpoint.

0x0 - default TRACE32 type of breakpoint (default).

0x1 - onchip type of breakpoint.

0x2 - hardware type of breakpoint.

0x3 - software type of breakpoint

©1989-2016 Lauterbach GmbH


Integration with LabView 14 Virtual Instruments for TRACE32 Description
u32 Operation - specifies operation to execute.

0x0 - add breakpoint.

0x1 - delete breakpoint.

0x2 - enable breakpoint.

0x3 - disable breakpoint.

0x4 - delete all breakpoints.

0x5 - disable all breakpoints.

0x6 - enable all breakpoints

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 15 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_MemoryRead.vi

Reads data from target memory. The size of the data block is not limited.The access parameter defines
the memory access class and access method.

Connector Pane

Controls and Indicators

Emulation memory access - Set for emulation memory access (E:, dual port
access).

False - Disable emulation memory access (default).

True - Enable emulation memory access.

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - target memory address to start read.

©1989-2016 Lauterbach GmbH


Integration with LabView 16 Virtual Instruments for TRACE32 Description
u32 Size - number of bytes to read.

u32 Memory class - memory access class, values as defined below.

Generically used memory access class values (independent of CPU architecture):

0 Data access, D:

1 Program access, P:

12 AD

13 AP

15 USR

Additional memory access class values for ARM CPUs:

2 CP0

3 ICEbreaker

4 ETM

5 CP14

6 CP15

7 ARM logical

8 THUMB logical

9 ARM physical

10 THUMB physical

11 ETB

14 DAP

Additional memory access class values for PowerPC CPUs:

2 SPR

3 DCR

©1989-2016 Lauterbach GmbH


Integration with LabView 17 Virtual Instruments for TRACE32 Description
4 TLB

5 PMR

6 P: real mode address

7 P: virtual mode address

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u8 data - block of output data.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 18 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_MemoryWrite.vi

Writes data to target memory. The size of the data block is not limited. This function should be used to
access variables and make other not time critical memory writes. The access flags define the memory
access class and access method.

Connector Pane

Controls and Indicators

Emulation memory access - Set for emulation memory access (E:, dual port
access).

False - Disable emulation memory access (default).

True - Enable emulation memory access.

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u8 data - data area to write

©1989-2016 Lauterbach GmbH


Integration with LabView 19 Virtual Instruments for TRACE32 Description
u32 Address - target memory address to start read.

u32 Memory class - memory access class, see ’Trace32_MemoryRead.vi’.

Enable verify - Set to enable verify after write.

False - Disable verify.

True - Enable verify.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 20 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_ReadCpuRegister.vi

Reads numerical value from the CPU register. Use the same register names as in TRACE32 CPU registers
window.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Register name - Name of the CPU register. Use the same register names as in
TRACE32 CPU registers window.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

©1989-2016 Lauterbach GmbH


Integration with LabView 21 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred before this VI or function ran or
FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u32 Register value - Contains value read from CPU register.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_WriteCpuRegister.vi

Writes numerical value to the CPU register. Use the same register names as in TRACE32 CPU registers
window.

©1989-2016 Lauterbach GmbH


Integration with LabView 22 Virtual Instruments for TRACE32 Description
Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Register name - Name of the CPU register. Use the same register names as in
TRACE32 CPU registers window.

u32 Register value - Contains new value to write to the CPU register.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 23 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_ReadVariable.vi

Returns the contents of the hll expression as an integer. Use the same variable names as in application
on TRACE32.

Connector Pane

Controls and Indicators

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

©1989-2016 Lauterbach GmbH


Integration with LabView 24 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred before this VI or function ran or
FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

i32 Variable value - Contains value read from variable.

u32 Variable address - Contains address of the variable.

u32 Variable size - Contains size of the variable in bytes.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 25 Virtual Instruments for TRACE32 Description
Trace32_WriteVariable.vi

Writes numerical value to the variable. Use the same variable names as in application on TRACE32.

Connector Pane

Controls and Indicators,

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

u32 Variable value - Contains new value to write to the variable.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 26 Virtual Instruments for TRACE32 Description
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_ReadVariableFloat.vi

Returns the contents of the hll expression as a float. Use the same variable names as in application on
TRACE32.

Connector Pane

Controls and Indicators

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

©1989-2016 Lauterbach GmbH


Integration with LabView 27 Virtual Instruments for TRACE32 Description
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

SGL Variable value - Contains value read from variable.

u32 Variable address - Contains address of the variable.

u32 Variable size - Contains size of the variable in bytes.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 28 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_WriteVariableFloat.vi

Writes numerical float value to the variable. Use the same variable names as in application on TRACE32.

Connector Pane

Controls and Indicators,

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

©1989-2016 Lauterbach GmbH


Integration with LabView 29 Virtual Instruments for TRACE32 Description
SGL Variable value - Contains new value to write to the variable.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 30 Virtual Instruments for TRACE32 Description
Trace32_ReadVariableDouble.vi

Returns the contents of the hll expression as a double. Use the same variable names as in application on
TRACE32.

Connector Pane

Controls and Indicators

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 31 Virtual Instruments for TRACE32 Description
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

DBL Variable value - Contains value read from variable.

u32 Variable address - Contains address of the variable.

u32 Variable size - Contains size of the variable in bytes.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_WriteVariableDouble.vi

Writes numerical double value to the variable. Use the same variable names as in application on TRACE32.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 32 Virtual Instruments for TRACE32 Description
Controls and Indicators,

Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.

DBL Variable value - Contains new value to write to the variable.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 33 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_GetState.vi

Use this VI to get the main state of the ICE. TRACE32 ICE can have four different states.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

©1989-2016 Lauterbach GmbH


Integration with LabView 34 Virtual Instruments for TRACE32 Description
code - is the error or warning code. The default is 0. If status is TRUE,
code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u32 State - State can have four different values.

0x0 - General Information

0x1 - System is halted, CPU makes no cycles

0x2 - Emulation is stopped

0x3 - Emulation is running

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_GetSymbol.vi

Evaluates hll expression to address and symbol size.

©1989-2016 Lauterbach GmbH


Integration with LabView 35 Virtual Instruments for TRACE32 Description
Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Symbol - Name of the symbol. Use the same symbol names as in application on
TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u32 Symbol address - Contains address of the symbol.

©1989-2016 Lauterbach GmbH


Integration with LabView 36 Virtual Instruments for TRACE32 Description
u32 Symbol size - Contains size of the symbol in bytes.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_GetSymbolFromAddress.vi

Evaluates absolute address to symbol name.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - Contains address of the symbol.

©1989-2016 Lauterbach GmbH


Integration with LabView 37 Virtual Instruments for TRACE32 Description
Memory class - memory access class.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 Symbol size - Contains size of the symbol in bytes.

Symbol name - Name of the symbol at address.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 38 Virtual Instruments for TRACE32 Description
Trace32_GetAddressFromFile.vi

Evaluates source file name and line number to address.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

File - File name of the source file.

u32 Line number - Line number in the source file.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 39 Virtual Instruments for TRACE32 Description
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u32 Address - Contains address of line.

u32 Size - Contains size of the line.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_GetSourceFileName.vi

Evaluates absolute address to the source file name with path and source file line number.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 40 Virtual Instruments for TRACE32 Description
Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Address - Address from which source line should be found.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

u32 Symbol size - Contains size of the symbol in bytes.

File name - Name of the source file with path.

©1989-2016 Lauterbach GmbH


Integration with LabView 41 Virtual Instruments for TRACE32 Description
u32 Line number - Line number in source file.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_PracticeCmd.vi

With this VI a PRACTICE command is passed to TRACE32 for execution. Any valid PRACTICE command is
allowed, including the start of a PRACTICE script (*.cmm) via the DO command.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

©1989-2016 Lauterbach GmbH


Integration with LabView 42 Virtual Instruments for TRACE32 Description
Command - PRACTICE command to execute.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI , error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 43 Virtual Instruments for TRACE32 Description
Trace32_PracticeScript.vi

Starts to execute PRACTICE script.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

Script name - PRACTICE script name with path.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 44 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 45 Virtual Instruments for TRACE32 Description
Trace32_PracticeGetState.vi

Returns the run-state of PRACTICE. Use this command to poll for the end of a PRACTICE started via
’Trace32_PracticeCmd.vi’ or ’Trace32_PracticeScript.vi’.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

Practice message - Contents the last TRACE32 message from the message line.

©1989-2016 Lauterbach GmbH


Integration with LabView 46 Virtual Instruments for TRACE32 Description
u32 Practice message type - The message types are currently defined as following
and can be combined.

1 - General Information

2 - Error

8 - Status Information

16 - Error Information

32 - Temporary Display

64 - Temporary Information

u32 Practice state- Returns the run-state of PRACTICE.

0 - Not running

1 - Running

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_RunControl.vi

Emulation control of the CPU.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 47 Virtual Instruments for TRACE32 Description
Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Instruction- Emulation control command.

0 - Step

1 - Step over

2 - Go next

3 - Go return

4 - Go up

5 - Go

6 - Break

7 - Mode

8 - Reset

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 48 Virtual Instruments for TRACE32 Description
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

Trace32_System.vi

System control of the TRACE32.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 49 Virtual Instruments for TRACE32 Description
Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.

u32 Instruction - System control command.

0 - System Down

1 - System Up

2 - System No Debug

3 - System Go

4 - System Attach

5 - System Stand By

6 - Set CPU

CPU - CPU name, require for “Set CPU” command.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 50 Virtual Instruments for TRACE32 Description
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 51 Virtual Instruments for TRACE32 Description
Trace32_Quit.vi

Quits Trace32. After this operation T32_Handle is no longer valid.

Connector Pane

Controls and Indicators

u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32. After this operation is no longer valid.

error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.

status - is TRUE (X) if an error occurred before this VI or function ran or


FALSE (checkmark) to indicate a warning or that no error occurred before
this VI or function ran. The default is FALSE.

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.

©1989-2016 Lauterbach GmbH


Integration with LabView 52 Virtual Instruments for TRACE32 Description
status - is TRUE (X) if an error occurred or FALSE

code - is the error or warning code. The default is 0. If status is TRUE,


code is a nonzero error code. If status is FALSE, code is 0 or a warning
code.

source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.

©1989-2016 Lauterbach GmbH


Integration with LabView 53 Virtual Instruments for TRACE32 Description
Additional Controls for TRACE32

Controls can be used by the special VIs in order to simplify usage of instructions or commands, where they
are required.

Trace32_RunCmd.ctl

Instructions for TRACE32_RunControl.vi.

Connector Pane

Controls and Indicators

u32 Instruction- Emulation control command.

0 - Step

1 - Step over

2 - Go next

3 - Go return

4 - Go up

5 - Go

6 - Break

7 - Mode

8 - Reset

Trace32_SystemCmd.ctl

Instructions for Trace32_System.vi.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 54 Additional Controls for TRACE32
Controls and Indicators

u32 Instruction - System control command.

0 - System Down

1 - System Up

2 - System No Debug

3 - System Go

4 - System Attach

5 - System Stand By

6 - Set CPU

Trace32_OperationBreakpoint.ctl

Instructions for Trace32_ControlBreakpoint.vi.

Connector Pane

Controls and Indicators

u32 Operation - specifies operation to execute.

0x0 - Add breakpoint.

0x1 - Delete breakpoint.

0x2 - Enable breakpoint.

0x3 - Disable breakpoint.

0x4 - Delete all breakpoints.

0x5 - Disable all breakpoints.

0x6 - Enable all breakpoints

©1989-2016 Lauterbach GmbH


Integration with LabView 55 Additional Controls for TRACE32
Trace32_State.ctl

Indicators for Trace32_GetState.vi.

Connector Pane

Controls and Indicators

u32 State - TRACE32 State.

0x0 - General Information

0x1 - System is halted, CPU makes no cycles

0x2 - Emulation is stopped

0x3 - Emulation is running

Trace32_Error.ctl

Control used internally for identification of error.

Connector Pane

©1989-2016 Lauterbach GmbH


Integration with LabView 56 Additional Controls for TRACE32
Controls and Indicators

u32 Error - specifies type of error.

0 - Initialization failed.

1 - Termination failed.

2 - Memory read error.

3 - Memory write error.

4 - Add breakpoint error.

5 - Clear breakpoint error.

6 - Control breakpoint error.

7 - Get state failed.

8 - Get symbol failed.

9 - Write CPU register failed.

10 - Read CPU register failed.

11 - Write variable failed.

12 - Read variable failed.

13 - Practice script error.

14 - Practice command error.

15 - Practice get state failed.

16 - Emulation control error.

17 - System error.

18 - Source file name failed.

19 - Symbol from address failed.

20 - Address from file failed.

©1989-2016 Lauterbach GmbH


Integration with LabView 57 Additional Controls for TRACE32
Quick Start

In this quick start You will see how to create an application that will display content of memory from
embedded target.

1. Start LabView.

2. Create a new blank VI.

3. Create a front panel diagram similar to shown below.

4. Now, create a block diagram

©1989-2016 Lauterbach GmbH


Integration with LabView 58 Quick Start
5. Start TRACE32. Make sure that TRACE32 is properly connected and installed in PC. Download
and run the prepared application on embedded target (see ’Installation and Configuration VIs
for Trace32’

6. Run the SimpleReadMemory VI on LabView. LabView will read the four bytes from memory and
will display the contents of memory in Value indicator on Front Panel.

©1989-2016 Lauterbach GmbH


Integration with LabView 59 Quick Start

You might also like