Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

This chapter guides you through a very simple tutorial to understand onCore's basics.


Aims of this Tutorial:

  1. Adding → Units to an empty Workflow.
  2. Adding a → Trigger Unit.
  3. Connecting → Cables between Units.
  4. Setting → Unit attributes.
  5. → Running the Project.
  6. Using the → Message Log to see Unit output.


Adding Units

Visual Instructions

Instructions

Notes

  • Click the Library tab in the Inspector.

You can access the Library quickly by using the option + space shortcut.

  • Use the search field to find Units.
    Look for "print".
  • Double click on the Print String Unit to add it to the Workflow View.

After entering a search term you can directly jump to the list of found Units by using the tabulator key. Select the desired Unit and add it to the Workflow View by pressing the enter key.

  • The Print String Unit is now visible in the Workflow View.


  • Now add the Trigger on Start Unit.

After entering a search term you can directly jump to the list of found Units by using the tabulator key. Select the desired Unit and add it to the Workflow View by pressing the enter key.

  • Both Units are now visible in the Workflow View.

You can also use the Align & Distribute functions of onCore to reorder Units in the Workflow View.

  • Reposition the Units by dragging them.


Connecting Units

Visual Instructions

Instructions

Notes

  • Click on the Out Port of the Trigger on Start Unit.
  • Connect the Cable to the In Port of the Print String Unit by clicking on the In port.

By connecting the Trigger Ports you make sure that the Print String Unit gets executed after starting (= running) the Project.

For detailed information about Cables, please refer to the chapter → Cables.
For detailed information about Unit Triggers, please refer to the chapter → Unit Triggers & Events.

Modifying Unit Attributes

Visual Instructions

Instructions

Notes

  • Double click the "String:" Port on the Print String Unit.

Instead of modifying the Unit directly in the Workflow View you can also use the Inspector in the Project Panel. For more info refer to the chapter → Unit Attributes.

  • Enter "Hello World" and press the enter key.

You have now modified one of the attributes of the Print String Unit. The text you defined previously will alter be printed to the Message Log.

For detailed information about Unit Attributes, please refer to the chapter → Unit Attributes.

Running the Project

Visual Instructions

Instructions

Notes

  • Open the Project menu.

  • Select Run Project.

The shortcut to run Projects is command + R.

For detailed information about running onCore Projects, please refer to the chapter → Running an onCore Project.

Project Running Indicator: This indicator is visible as soon as you run a Project.

Message Log Entry: The Message Log shows the value which you have specified on the Print String Unit.

  • No labels