Skip to content

Commit

Permalink
Updated example README
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Jan 29, 2019
1 parent 11e0a60 commit 899ec2d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This folder contains a simple toolbox with a test block. It can be used as starting point to create a new toolbox based on the machinery provided by BlockFactory.

It is also the result of the tutorial [Toolbox Example](https://robotology.github.io/wb-toolbox/mkdocs/create_new_library/).
It is also the result of the tutorial [Toolbox Example](https://robotology.github.io/blockfactory/mkdocs/create_new_library/).

### Instructions
### Build the example

Execute the following commands to build the example:

Expand All @@ -16,13 +16,14 @@ cmake ..
cmake --build .
```

On a Linux distribution, you can test the Toolbox Example library as follows:
### Configure the environment

```bash
cd example/
export LD_LIBRARY_PATH=$(pwd)/build:$LD_LIBRARY_PATH
export MATLABPATH=$(pwd)/matlab:$MATLABPATH
matlab
```
Add the absolute path of the `build` directory to the `BLOCKFACTORY_PLUGIN_PATH` environment variable.

### Open Simulink

Launch Matlab, make the `matlab/` folder of this example the current directory, and then open the `Model.mdl` file.

You should see the following Simulink model:

Finally, open the `Model.mdl` file and run it.
![Model.mdl](/doc/mkdocs/data/images/TestSimulinkModelWithMask.png)

0 comments on commit 899ec2d

Please sign in to comment.