vsTASKER 7 Tutorial
×
Menu
Index

Helisim Sample

 
This demo needs HLSIM 5.0 from Presagis. The setup is a little more complicated as the code must be linked with the HLSIM libraries.
If you do not have HLSIM and a valid license, you cannot run this demo.
 
1) The needed environment variables are set in file engine\hlsim\setup.cmd. Open it and change the HLSIM directory setting. Then, you can either copy all these environment variables to the systems one or work from a console window.
 
2) Open a console window. Type: cd D:\VirtualSim\4.1\vstasker
Then type: runtime\hlsim\setup.cmd
Then type: start /b vstasker
Then after that: start /b hlsimde (you need to have a valid license for HLSIM)
 
3) Go to vsTASKER and open the database hlsim.db (in D:\VirtualSim\vsTasker\7\data\db\integrations).
 
4) In the tree-list, select scenario Test and compile the scenario. In the build output window, the last line should be: link.exe @c:\temp\nma01876.  
If not, try to understand errors. Probably dues to bad HLSIM installation or an error in the HLSIM environment variables.
 
5) Launch the HLSIM_SIM generated executable. Two consoles should appear and one pops up a Malfunction Window (vsTASKER is in slave mode for this demo and thus, HLSIM DE must start the simulation).
 
6) Go to HlsimDE (you have started it previously from the command shell). In menu Helicopter, add a system. Select any system in the list (same window) then click button Add After. In the popup window, select vsTASKER_Model and click Ok then Close.
 
7) In menu Control, select Execution then click button Run. Set the focus in the Flight_Scene window and press space bar (do not touch the mouse for 1 second).
 
8) The helicopter should take-off and stabilize after hovering shortly.
 
9) Go back to vsTASKER and select scenario Test. Then double-click the magenta helicopter symbol then double-click the magenta triangle (take-off) running logic.
You are able to monitor the do-list.
 
10) Press the button Send Malfunction in the Malfunction window. You should see the helicopter spinning crazily and finally crash.
 
11) To restart this simulation. Just focus on the Flsim_Scene, press ESC (or press button Stop in the FlsimDE execution window and press Start again).