Building And Debugging Source Code; Overview - Building (Compiling) Code; Building The Workspace; Building The Selected Project - AMX NetLinx Studio Instruction Manual

Netlinx design v3.3 or higher
Table of Contents

Advertisement

Building and Debugging Source Code

Overview - Building (Compiling) Code

The options in the Build menu allow you to compile source code into executable code that the control system can
understand.
NetLinx Studio has the ability to compile and link all the source code (.axs and .axi) files at the Workspace, Project,
System or File level, plus the ability to compile a single file as either an Axcess or NetLinx type source code file.
To send the compiled code to the Master Controller, use the File Transfers option in the Tools menu.
The Preferences dialog provides the ability to configure both the Axcess and NetLinx compliers if desired:



Building the Workspace

One advantage to the Workspace concept employed by NetLinx Studio is that you can choose to build (compile) the
entire Workspace. That is, every Source Code, Include, and Module file contained within the open Workspace can be
compiled with a single command: Build Workspace.
There are several ways to access the Build Workspace command - via the Build menu, the Workspace context menu (in
the Workspace tab of the Workspace Bar), or via the toolbar button.
1.
Select Build > Build Workspace.
Any errors detected by the program before the build operation starts are listed in the Pre-Build Errors dialog. This
dialog gives you the option of ignoring the errors and continuing with the build.
2.
The status and results of the build are displayed in the Status tab of the Output Bar.

Building the Selected Project

You can select to compile a single Project within the open Workspace, using the Build Project command. When you
compile a Project, every Source Code, Include, and Module file contained in all of the Systems within the selected
Project are compiled.
There are several ways to access the Build Project command - via the Build menu, the Project Folder context menu (in
the Workspace tab of the Workspace Bar), or via the toolbar button.
1.
Click to select and highlight the Project that you want to compile (in the Workspace tab of the Workspace Bar).
2.
Select Build > Build <Project Name> Project.


3.
The status and results of the build are displayed in the Status tab of the Output Bar.

Building the Selected System

You can select to build (compile) any System in the Workspace, using the Build System command. When you build a
System, every Source Code, Include, and Module file contained in the selected System is compiled. The Build System
command always works on the selected System, regardless of whether it is currently designated as the active system or
not.
1.
Click to select (highlight) the System that you want to build (in the Workspace tab of the Workspace Bar).
2.
Select Build System <System name> from the Build menu.
Any errors detected by the program before the build operation starts are listed in the Pre-Build Errors dialog. This
dialog gives you the option of ignoring the errors and continuing with the build.
3.
The status and results of the build are displayed in the Status tab of the Output Bar.

Building the Active System

You can select to build (compile) only the System currently designated as the Active System, using the Build Active
System command. When you compile a System, every Source Code, Include, and Module file contained in the selected
System is compiled.
NetLinx Studio - Instruction Manual
See the Preferences dialog - Axcess Compiler tab section on page 197.
See the Preferences dialog - NetLinx Compiler tab section on page 199.
Any errors detected by the program before the build operation starts are listed in the Pre-Build Errors dialog.
This dialog gives you the option of ignoring the errors and continuing with the build.
Building and Debugging Source Code
105

Advertisement

Table of Contents
loading

Table of Contents