Documentation Home Page ◇ RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
Using the File Menu
Using the File Menu
You can create new resources by using the File > New menu on the Workbench menu bar.
Start by creating a simple project as follows:
- From the menu bar, select File > New > RT-LAB Project...
- In the Project name field, type your name as the name of your new project.
- Do not use spaces or non-alpha-numeric (a-z, 0-9) characters in the project name.
Leave the box checked to use the default location for your new project.
Click Finish.
- If you sneak a peek at the navigation view, you see that it now contains the simple project we just created.
Using the Popup
Now that we have our project we create a model. We create our model using the Project Explorer view's popup menu.
- Activate the Project Explorer view and select the project MyProject.
- From the view's popup menu choose New > RT-LAB Model.
- In the New Folder wizard, your project name appears by default in the Project field. This is because we chose to create a new model from your project's context menu.
- In the Model name field, type a unique name for your new model. Depending on the platform you are running on, some characters are not allowed (for example, MyModel).
- In the Model type field, select the type of model you want to create.
- In the Model description field, type a description of your model.
- Leave the box checked to use the default location for your new model.
- Leave the box checked to use the default location for your new project.
- Click Next when you are done.
At this point, you can select a template model containing a skeleton for your new model. Select the Basic > model_1_subsystem template.
This template contains a model with one real-time subsystem and one console. This is a perfect model to run a simulation on one core target.
Click Finish when you are done.
The Project Explorer view updates to show your newly created model.
The Workbench has an editor capable of editing the properties of a model.
A Model editor is automatically opened on the newly created model.
Using the New Button
We have seen how to create resources using File > New and New from the context menu of one of the navigation views.
Now we'll create a target using the third alternative, the toolbar New button.
- Select the target object in the project explorer view.
- In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select RT-LAB Target.
- To activate the drop-down menu simply click on the down arrow.
In the Name field, type a unique name for a new target computer. Do not use spaces or special (non alpha-numeric) characters in this name (for example, MyTarget201).
It is a good practice to add the last number of the IP address of the target at the end of the name to help you to quickly identify your target.
- In the IP address field, type the IP address of your target computer.
- Use the following format for the IP address : ###.###.###.###, where # is a number between 0 and 9.
- At this point, you can verify that the target is up and running by clicking the Ping button.
Click Finish when you are done.
- In the Project Explorer view ensure your project is still selected and the view is active.
- Click New Wizard in the Workbench toolbar. Previously we clicked on the drop-down arrow of the New button. Here we clicked on the button itself which has the same effect as choosing File > New > Other...
- In the New wizard, select General > File. Then click Next.
- Once again, your project's name appears by default in the Enter or select the parent folder field.
- In the File name field, type a unique name for an .py file (Python script). Do not use any spaces or special characters in the file name (for example, MyScript.py). Click Finish when you are done.
By default, the Project Explorer view does not display generic files and folders of the file system.
Click the Filter Resources button of the Project Explorer toolbar to display the files and folders.
It is a toggle, so you can turn it off by clicking the button again.
Now that we have created our resources, the Project Explorer view shows our project, the model, the target and the Python script. To the right of the Project Explorer view is the text editor open on the file we created (MyScript.py).
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter