Changes for page LEGO Mindstorms with leJOS and SCCharts
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -52,14 +52,16 @@ 52 52 53 53 With the Eclipse plugin for leJOS installed, you can now use KIELER SCCharts for an model-based approach of programming. 54 54 55 -First check the environment settings for NXJ of the KIELER tool (//Window > Preferences > KIELER > Environments//). On the**Execute**tab,ensure thatonlythe commandsforyouroperatingsystemare checked.55 +First check the environment settings for NXJ of the KIELER tool (//Window > Preferences > KIELER > Environments//). Ensure that the commands of the execute tab have correct paths. They have to use the lib directory of your leJOS installation. 56 56 57 - Hit the //Variables// button and search for **nxj.home**. If the variable exists, yourgood. If it does not exist, create a new variable (//EditVariables... > New//) withthat name and point it to the base folderof your leJOS installation. Thevariable is referenced by the shell commands of the environment.57 +[[image:attach:lejos_nxj_environment.png]] 58 58 59 - [[image:attach:environments_preferences.png]]59 +Create a first project using the SCCharts project wizard (//File > New > Project > KIELER SCCharts > SCT Project//) and select the environment for leJOS NXJ. When pressing the finish button, the project wizard of the leJOS plugin will start. Set the project name and hit finish. The project will be created by the leJOS plugin and initialized by the KIELER plugin, giving it a model file and a file with wrapper code to initalize and run the model. 60 60 61 - **Note:**Ifyoualreadycreatedandlaunchedaproject, the settingsoftheenvironmentarecopiedtothe launchconfiguration. It is thusmay be necessary toalter settingsonthelaunch configurationas well astheenvironment.61 +When you choose //Debug As > KiCo Compilation// on the model, it is compiled by the KIELER Compiler to Java code and further compiled and deployed to the NXT brick using the commands from aforesaid environment. 62 62 63 +For a deeper understanding of the project launch and initialization, take a look at the [[wiki page for Prom>>url:http://rtsys.informatik.uni-kiel.de/confluence/pages/viewpage.action?pageId=13762626||shape="rect"]]. 64 + 63 63 ---- 64 64 65 65 == Using the Remote Console (RConsole) == ... ... @@ -78,7 +78,7 @@ 78 78 79 79 === Create a new project: === 80 80 81 -1. Choose //File > New > Project > KIELERSCCharts> SCChartsProject//83 +1. Choose //File > New > Project > SCCharts Project// 82 82 1. In the project creation wizard that opens, select //Mindstorms NXJ// as environment and hit //finish// 83 83 1. The project wizard from the leJOS plugin opens. Set the project name to //Flashlight// and click //finish//. 84 84 1. The project is created and the model file is opened in an editor (This might take a few seconds). ... ... @@ -114,5 +114,3 @@ 114 114 With the mouse over the SCT file in the project explorer, perform //Right Click > Run As > KiCo Compilation.// 115 115 116 116 A launch config is created, which compiles the model to Java code and creates wrapper code from the annotations in the model file. Afterwards this output is compiled and deployed to the Mindstorms brick, by using the shell commands that are defined in the Mindstorms NXJ environment. 117 - 118 -For a deeper understanding of the project launch and initialization, take a look at the [[wiki page for Prom>>url:http://rtsys.informatik.uni-kiel.de/confluence/pages/viewpage.action?pageId=13762626||shape="rect"]].
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -13763 5951 +13763409 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13763 595/LEGO Mindstorms with leJOS and SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13763409/LEGO Mindstorms with leJOS and SCCharts