1.3.2 Project files
System Canvas uses one project file (.sgproj) to drive the process of system creation, build configuration, and building the model.
There is no requirement to provide
a makefile and a set of configuration files for each new project.
Each project file references all files that System Canvas needs to build and run a simulation,
including LISA, C and C++ sources, libraries including directories, files to deploy to
the simulation directory, and nested repository files.
Repository files have the same format as project files.
You can add single files or a complete repository, such as the Fast Models Portfolio, to
the project file.
Figure 1-2 Organization of project directories and files on Microsoft Windows
The Build subdirectory of the My_System directory
contains the My_System.sgproj project file:
to the standard Fast Model Portfolio repository file sglib.sgrepo.
The sglib.sgrepo repository file contains a list of repository locations
such as components.sgrepo.
components.sgrepo lists the
locations of the LISA files for the components and the location
and type of libraries that are available for the components.
The project file lists My_System.lisa as the top-level LISA file for the
system. The top-level LISA file lists the components in the system and shows how the
This project uses a custom component in addition to the standard Fast Model Portfolio components.
Custom components can sit anywhere in the directory structure. In this case, only the
My_System component uses the custom component, so the
My_custom_component.lisa file is in the same directory.
System Canvas generates the My_System.sgcanvas and
My_custom_component.sgcanvas files to save display changes in the
Workspace window. These files describe the display settings for a
component such as:
Component location and size.
Label text, position and formatting.
Text font and size.
The moving of or hiding of ports.
The build process does not use .sgcanvas files. System Canvas uses them for
the Block Diagram view of System Canvas.
My_System.sgproj lists Win32-Debug-VC2010 as
the build directory for the selected platform. The build options
in the project file determine: