In this page we’ll see what to do in order to set up and execute a new project for LLExec Ubuntu x64 OSADL after having downloaded LogicLab and LLExec from the liks above.
Install procedure – LLExec
Install procedure – LogicLab
First steps using the IDE
At start up, LogicLab allows the user to choose if create a new program or open an already existing one; for this example, we’ll be creating a new project:
Create and assign a new program
The new project is created with already a program named “Main”, but for our example we’ll create a new one:
Edit the program code
The main elements of a program are the variables editor and the code editor.
To create a new local variable: open the program by double-clicking it in the project tree, then select menu Variables -> Insert
As you can see, the variables editor, allows to user to specify several attributes of the variable; for now, let’s just create a variable with name “n” and type “INT”.
To edit the program code, just place the cursor inside the code editor and enter your code; for our example we’ll make a counter, so let’s write “n := n + 1;”
Connect to the target
Compile, download and verify
To compile the project, select from menu bar Project -> Compile or simply press the shortcut F7.
In the output window you should see 0 warning and 0 error messages.
To download the project, select from menu bar Project -> Download or simply press the shortcut F5.
A progress bar will appear to indicate the status of the download; a dialog may appear to warn you that variables values will be resetted and asking your confirmation to proceed.
After the download you should see in the right-bottom border of LogicLab window the information CONNECTED and SOURCE OK.
To verify your code effectiveness, you can use the watch window, select the variable you wish to check (in our example the variable “n”) and select from menu Debug -> Add symbol to watch or simply press the shortcut F8.
You will now see, inside the watch window, the variable “n” and its value changing. The speed of the counter is related to the task frequency; if you assign the same program to the task slow, you’ll see the value of variable “n” raising slower.