WAVE-RT developed models may be incorporated into Simulink via the Export function of WaveBuild (wb). As part of the SimWB code generation and build process, a scan for WAVE-RT components is made. When found, various files required for compilation on the SimWB target machine will be copied into the model source directory and then tranferred along with the model-derived source code to SimWB. No user intervention is required. In the following discussion Linux file/directory references are followed by their Windows counterparts in square brackets, i.e. /tmp [C:\tmp]. The example is using the tut_wrt_ExportReady.wvm model, which can be found in the Products/WAVE/Tutorials/Advanced/WAVE-RT [Products\WAVE\Tutorials\Advanced\WAVE-RT] folder of your Ricardo installation.
The Run-time Parameters tab settings should look like this, but with a WAVE-RT Timestep set to whatever you prefer.
The Compile Parameters tab settings should look like this, but with the WAVE-RT model file name set to the name you specified during the Export from WaveBuild. This file must be in the same directory as the Simulink model file.
The libraries used when running a WAVE-based simulation may have been compiled for the executing platform using different compilers (e.g. Windows vs. Linux) or even different version of the same compiler (e.g. gcc 4.8.2 vs. 4.3.4). This can lead to slightly different results for the same simulation when run in different ways (e.g. Simulink on your PC vs. within SimWB on Linux). Be aware of this when comparing results. The differences will be small, but noticable.
User Programs... | Launch MATLAB |