sltest.xil.framework.TestVariable Class
Namespace: sltest.xil.framework
Add-On Required
This class requires that you Install and Set Up the Simulink Test Support Package for ASAM XIL Standard.
Description
Use the sltest.xil.framework.TestVariable methods to read the current value
of a variable from or write a value to the test bench. Before reading or writing a test
variable, use the addTestVariableMapping method of the
sltest.xil.framework.FrameworkConfiguration class to map the test variables
to variables on the test bench. Then, use the createVariable method of the
sltest.xil.framework.Framework class to create an instance of the
variable.
When you use addTestVariableMapping, you can also specify a task for
the variable. Tasks are the rates at which data logging, which is controlled through the
Acquisition class, occurs for the variable. If you don't specify a task for a
variable, it is logged using the first task value returned by the
displayAllTaskInfo method of
sltest.xil.framework.Framework.
The sltest.xil.framework.TestVariable class is a handle class.
Creation
You cannot create an sltest.xil.framework.TestVariable object. The
createVariable method of the
sltest.xil.framework.Framework object creates the
TestVariable objects.
Methods
Examples
Version History
Introduced in R2022a