|
Reactis for C V2019 Released
Instrumentation CodeThe new instrumentation code feature of V2019 lets you virtually insert snippets of C code into your program. When Reactis compiles an application that includes instrumentation code, it automatically integrates the instrumentation code with the application code. The instrumentation code and its location within your program are stored in the Reactis build file, so your source code need not be modified. Adding an assertion to a cruise control (to check that the brake always deactivates the cruise control) can be achieved as follows.
The reactis_assert macro is defined in cruise_validator.h. If the argument to the macro (a C expression) ever evaluates to zero then an assertion violation is reported.
In addition to supporting the use of assertions and user-defined targets, instrumentation code can also be used to craft your test harness to include a plant or hardware emulation layer, or to specify dependencies between top-level inputs. Revamped User-Guided SimulationThe user-guided simulation mode of Reactis Simulator lets you specify the top-level inputs to your code as it executes. This type of stepping is useful for debugging as well as for interactively constructing tests. As shown in the screenshot below, V2019 offers an enhanced Next Input Values dialog for controlling user-guided stepping.
Buttons for controlling the stepping are now available directly in the dialog. You can also now choose to include only a subset of the inputs in the dialog, or choose to add specified outputs, test points, or configuration variables to the dialog. Scopes can easily be opened for any subset of the signals in the dialog.
To specify the next value an input should have, you can now give either a concrete value (previously supported) or an expression that can reference the previous values of inputs or the simulation time. This offers a convenient way to generate various types of signals. For example, to generate a ramp for input X, simply specify pre(X) + 1. Here pre(X) denotes the value X had in the previous simulation step. To generate a sine wave, just specify sin(t) (t is the simulation time). Open Scopes from Test Suite BrowserFor easier visualization of test data, you can now open scopes directly within the Test Suite Browser for any signals (inputs, outputs, test points) contained in a test suite.
Monitoring Values of Structure and Array ElementsIndividual structure members and array elements can now be added to the watched variable panel. The value of each selected element is displayed on a separate line the panel and is highlighted with a yellow background when it changes. Alternatively, you can select the entire structure or array and watch it as a single aggregate value. Reactis is a registered trademark of Reactive
Systems, Inc.
Best Regards,
|
![]() |