Configuration

This section details a step by step explanation of how to configure SIL Simulator.

dll_config.vcfg file

This file sets the simulation configuration, and it is common for both simulation options: Veronte Console and Veronte S-Function for Simulink.

dll_config.vcfg file indicates the location of the Veronte DLL and Veronte image and establishes some parameters of the simulation, as the hardware version to simulate or the ID of the virtual autopilot.

This is an example of dll_config:

# Path to DLL
\dll .\x64\VeronteDLL.dll

# Path to image file  (absolute or relative to dll)
\image .\..\Veronte_SD_Image.img

# Hardware version
\hwversion 4.8

# Autopilot ID
\idversion 2

Before configuring SIL Simulator, these are aspects of the dll_config.vcfg file to consider for a proper functioning of the simulation:

  • Location of dll_config.vcfg file: It must be placed in the same path as the executable code to run. Depending on the simulation option to use, it must be placed in:

    • VeronteConsole.exe path if using Veronte Console

    • .slx path if using Veronte S-function for Simulink

      Note

      .slx files store Simulink model information in a reduced size. As previously explained, users must program their own Simulink workspace according to their aircraft and simulation goal, but an example is provided in the SIL folder (mex_function_example.slx).

  • DLL and image files paths: It is crucial to precisely indicate the paths of DLL and image files.

white

Hardware version parameter

\hwversion version

Users can decide which hardware version to simulate:

4.0

hwversion 4.0

4.5

hwversion 4.5

4.8

hwversion 4.8

white

ID version parameter

\idversion index

Available Autopilot IDs vary depending on the selected hardware version. The index to be entered will be indicated by the following table:

idversion

0

1

2

3

4

5

hw v4.0

1008

1025

1128

1373

1559

1654

hw v4.5

1805

1862

1871

2375

2680

2821

hw v4.8

4041

4064

4065

4144

4146

4213

white

Step by step - Veronte S-Function

  1. Once decompressed, open the SIL folder.

../_images/sil_folder.png

SIL folder

  1. Ensure that the dll_config.vcfg file is in the same path as the .slx file.

    Note

    .slx files store Simulink model information in a reduced size. As previously explained, users must program their own Simulink workspace according to their aircraft and simulation goal, but an example is provided in the SIL folder (mex_function_example.slx).

  2. Configure the dll_config.vcfg file in the following cases:

    • If the hardware version to simulate differs from v4.0.

    • If the DLL and image files are not located in the paths specified in dll_config.vcfg.

    white

    Parameters to configure:

    • Path to DLL file VeronteDLL.dll (absolute or relative to the .slx file)

    • Path to image file Veronte_SD_Image.img (absolute or relative to DLL file)

    • (Optional) Hardware version to simulate

    • (Optional and dependent on hardware version) Autopilot ID to simulate

      Warning

      Autopilot ID parameter only can be chosen if hardware version is also specified. For more information about setting the ID parameter, consult dll_config.vcfg file section of the present manual.

  3. Open Simulink and configure the blocks explained below:

    • Add a S-function block, and point to Veronte_SIL.mexw64 code by editing the S-function name:

      ../_images/sfunction_configuration.png

      S-Function block parameters

    • Add a UDP serial communication block and connect it to USB data and length inputs of Veronte S-function.

    • Add a second UDP serial communication block and connect it to the USB outputs of Veronte S-function.

      ../_images/udp.png

      UDP Blocks

    • Configure the desired destination port.

      ../_images/port1.png

      Destination UDP Port

    • For extra information about Simulink configuration, consult the Simulink workspace section of this manual.

white

  1. In Veronte Link application, configure a UDP connection with the following parameters:

    Note

    For more information about configurating connections, please consult Connection section of the Veronte Link user manual.

    • Type of connection: UDP

    • IP: IP previously configured in Simulink workspace

    • Port: Port previously configured in Simulink workspace

  2. Run the simulation by running the Simulink model.

  3. Check that the Autopilot 1x appears in Veronte Link as Connected and Ready:

    ../_images/verontelink.png

    Veronte Link

    Note

    The autopilot may appear as Loaded with errors in Veronte Link for reasons not related to the simulation configuration. Refer to Loaded with errors in Veronte Link - Troubleshooting section of this manual.

  4. Once the simulation starts, user can proceed as with a physical autopilot:

  5. Important events or messages occuring within the simulation are registered on SIL.log.

white

Step by step - Veronte Console

  1. Once decompressed, open the SIL folder.

../_images/sil_folder.png

SIL folder

  1. Ensure that the dll_config.vcfg file is in the same path as VeronteConsole.exe.

  2. Configure the dll_config.vcfg file in the following cases:

    • If the hardware version to simulate differs from v4.0.

    • If the DLL and image files are not located in the paths specified in dll_config.vcfg.

    white

    Parameters to configure:

    • Path to DLL file VeronteDLL.dll (absolute or relative to VeronteConsole.exe)

    • Path to image file Veronte_SD_Image.img (absolute or relative to DLL file)

    • (Optional) Hardware version to simulate

    • (Optional and dependent on hardware version) Autopilot ID to simulate

      Warning

      Autopilot ID parameter only can be chosen if hardware version is also specified. For more information about setting the ID parameter, consult dll_config.vcfg file section of the present manual.

  3. In Veronte Link application, configure a UDP connection with the following parameters:

    Note

    For more information about configurating connections, please consult Connection section of the Veronte Link user manual.

    • Type of connection: UDP

    • IP: 127.0.0.1

    • Port: 12345

../_images/verontelink_udp_configuration.png

Veronte Link - UDP Connection for Veronte Console

white

  1. Run the simulation by executing Veronte Console.exe.

  2. Check that the Autopilot 1x appears in Veronte Link as Connected and Ready:

    ../_images/verontelink.png

    Veronte Link

    Note

    The autopilot may appear as Loaded with errors in Veronte Link for reasons not related to the simulation configuration. Refer to Loaded with errors in Veronte Link - Troubleshooting section of this manual.

  3. Once the simulation starts, user can proceed as with a physical autopilot: