mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
67 lines
1.8 KiB
Text
67 lines
1.8 KiB
Text
|
||
To "models" folder of OPAL project folder copy:
|
||
folder: include
|
||
folder: src
|
||
file: s2ss.mk
|
||
|
||
----------------------------------------------
|
||
|
||
.llm file should contain the following:
|
||
note: path to libOpalAsyncApiCore.a depends on version of RT-Lab
|
||
|
||
[ExtraPutFilesComp]
|
||
C:\OPAL-RT\RT-LAB\v10.7.7.506\common\lib\redhawk\libOpalAsyncApiCore.a=Binary
|
||
include\config.h=Ascii
|
||
include\msg.h=Ascii
|
||
include\msg_format.h=Ascii
|
||
include\socket.h=Ascii
|
||
include\utils.h=Ascii
|
||
s2ss.mk=Ascii
|
||
src\msg.c=Ascii
|
||
src\s2ss.c=Ascii
|
||
src\socket.c=Ascii
|
||
src\utils.c=Ascii
|
||
|
||
|
||
----------------------------------------------------
|
||
|
||
In RT-Lab under Files tab, we should see the files listed above for .llm file
|
||
|
||
--------------------------------------------------
|
||
|
||
Development tab -> Compiler -> Compiler Command (makefile) add the following command
|
||
/usr/bin/make -f /usr/opalrt/common/bin/opalmodelmk
|
||
|
||
|
||
----------------------------------------------------
|
||
max umber of values in UDP packets:
|
||
there’s a „#define“ inside the AsyncIP implementation which must be changed accordingly.
|
||
The #define is in file: model_directory/include/config.h There you will find a directive called MAX_VALUES.
|
||
|
||
---------------------------------------------------
|
||
AsyncIP executable
|
||
|
||
- During ***Build the model*** a message should be printed:
|
||
### Created executable: AsyncIP
|
||
|
||
- After the simulation stop
|
||
AsyncIP may still stay alive after the simulation stop. You have to remove it manually because the next simulation start will not be able to start the new AsyncIP.
|
||
|
||
# Kill running AsyncIP on OPAL
|
||
|
||
1. Start putty.exe
|
||
|
||
2. Connect to OPAL by using the existing profiles
|
||
- make sure that you are in the proper folder by
|
||
$ ll
|
||
|
||
3. Kill all running processes with name 'AsyncIP'
|
||
|
||
$ killall AsyncIP
|
||
|
||
4. Logout from OPAL
|
||
|
||
$ exit
|
||
|
||
---------------------------------------------------
|
||
|