mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
asyncip: updated RT-LAB example project
This commit is contained in:
parent
5e3e79b398
commit
9447d791f4
18 changed files with 34 additions and 22 deletions
|
@ -1,14 +1,20 @@
|
|||
# Asynchronous Process interface to VILLASnode / GTNET-SKT
|
||||
|
||||
To "models" folder of OPAL project folder copy:
|
||||
folder: include
|
||||
folder: src
|
||||
file: villas.mk
|
||||
## Add AsyncIP to new project
|
||||
|
||||
----------------------------------------------
|
||||
#### Step 1
|
||||
|
||||
.llm file should contain the following:
|
||||
note: path to libOpalAsyncApiCore.a depends on version of RT-Lab
|
||||
Copy the following files to the _models_ folder of the RT-LAB project:
|
||||
|
||||
- Folder: `include/`
|
||||
- Folder: `src/`
|
||||
- File: `Makefile.mk`
|
||||
|
||||
#### Step 2
|
||||
|
||||
The `.llm` file should contain the following lines:
|
||||
|
||||
**Note:** path to libOpalAsyncApiCore.a depends on version of RT-Lab
|
||||
|
||||
```
|
||||
[ExtraPutFilesComp]
|
||||
|
@ -18,27 +24,32 @@ include\msg.h=Ascii
|
|||
include\msg_format.h=Ascii
|
||||
include\socket.h=Ascii
|
||||
include\utils.h=Ascii
|
||||
villas.mk=Ascii
|
||||
Makefile.mk=Ascii
|
||||
src\msg.c=Ascii
|
||||
src\main.c=Ascii
|
||||
src\socket.c=Ascii
|
||||
src\utils.c=Ascii
|
||||
src\compat.c=Ascii
|
||||
```
|
||||
|
||||
--------------------------------------------------
|
||||
#### Step 3
|
||||
|
||||
In RT-Lab under Files tab, we should see the files listed above for .llm file
|
||||
|
||||
--------------------------------------------------
|
||||
#### Step 4
|
||||
|
||||
Development tab -> Compiler -> Compiler Command (makefile) add the following command
|
||||
In RT-LAB model settings: Development tab -> Compiler -> Compiler Command (makefile) add the following command
|
||||
|
||||
```
|
||||
/usr/bin/make -f /usr/opalrt/common/bin/opalmodelmk
|
||||
```
|
||||
|
||||
--------------------------------------------------
|
||||
#### Step 5
|
||||
|
||||
max umber of values in UDP packets:
|
||||
there’s a „#define“ inside the 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.
|
||||
Maximum number of values in UDP packets:
|
||||
|
||||
There’s a `#define` inside the 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.
|
||||
|
||||
# Troubleshooting
|
||||
|
||||
|
|
|
@ -37,22 +37,23 @@ INTERNAL_IGN_SOURCE_FILE=sfun_gen_async_ctrl.c sfun_recv_async.c sfun_send_async
|
|||
INTERNAL_LIBRARY2=-lOpalAsyncApiR2013a
|
||||
INTERNAL_LIBRARY3=-lOpalAsyncApiCore
|
||||
[ExtraGetFilesComp_1_RT_LAB]
|
||||
s2ss=Binary|Async_Proc
|
||||
AsyncIP=Binary|Async_Proc
|
||||
[ExtraPutFilesComp]
|
||||
include\config.h=Ascii
|
||||
include\msg.h=Ascii
|
||||
include\msg_format.h=Ascii
|
||||
include\socket.h=Ascii
|
||||
include\utils.h=Ascii
|
||||
villas.mk=Ascii
|
||||
Makefile.mk=Ascii
|
||||
src\msg.c=Ascii
|
||||
src\main.c=Ascii
|
||||
src\socket.c=Ascii
|
||||
src\utils.c=Ascii
|
||||
src\compat.c=Ascii
|
||||
[ExtraPutFilesComp_1_RT_LAB]
|
||||
C:\OPAL-RT\RT-LAB\v11.0.2.410\common\lib\redhawk\libOpalAsyncApiCore.a=Binary|Other
|
||||
[ExtraPutFilesLoad_1_RT_LAB]
|
||||
.\send_receive_sm_model\OpREDHAWKtarget\s2ss=Binary|Async_Proc
|
||||
.\send_receive_sm_model\OpREDHAWKtarget\AsyncIP=Binary|Async_Proc
|
||||
[General]
|
||||
ATT_CHECKSUM1=1967915764
|
||||
ATT_CHECKSUM2=1071010712
|
||||
|
@ -71,7 +72,7 @@ AutoRetrieveRtlab=ON
|
|||
CompilerVersion=AUTOMATIC
|
||||
DESCRIPTION=
|
||||
DinamoFlag=OFF
|
||||
FILENAME=D:\svo\s2ss\clients\opal\udp\models\send_receive\send_receive.mdl
|
||||
FILENAME=D:\svo\s2ss\clients\opal\villas_udp\models\send_receive\send_receive.mdl
|
||||
FORCE_RECOMPILE=0
|
||||
IMPORTED_GLOBAL_VARIABLES=1
|
||||
LastCompileRtlabVersion=v11.0.2.410
|
|
@ -6,14 +6,14 @@
|
|||
<att_ip_address>134.130.169.90:25252</att_ip_address>
|
||||
<att_hashcode>C2357876-6DB6-422F-ABD4-AB47963523A2</att_hashcode>
|
||||
<att_autosave>ON</att_autosave>
|
||||
<att_filename>D:\svo\s2ss\clients\opal\udp\s2ss_tests.llp</att_filename>
|
||||
<att_filename>D:\svo\s2ss\clients\opal\villas_udp\villas_udp.llp</att_filename>
|
||||
</General>
|
||||
<Models>
|
||||
<Model>
|
||||
<Path>
|
||||
<Relative>models/send_receive/send_receive.mdl</Relative>
|
||||
<Absolute>D:/svo/s2ss/clients/opal/udp/models/send_receive/send_receive.mdl</Absolute>
|
||||
<UNC>//E265/D/svo/s2ss/clients/opal/udp/models/send_receive/send_receive.mdl</UNC>
|
||||
<Absolute>D:/svo/s2ss/clients/opal/villas_udp/models/send_receive/send_receive.mdl</Absolute>
|
||||
<UNC>//E265/D/svo/s2ss/clients/opal/villas_udp/models/send_receive/send_receive.mdl</UNC>
|
||||
</Path>
|
||||
</Model>
|
||||
</Models>
|
Loading…
Add table
Reference in a new issue