new - New text, project, or configuration file

Syntax

new(id,'name','type')

Description

new(id,'name','type') creates a new file, project, or build configuration in the active project. Input argument name specifies the name assigned to identify the new file, project, or configuration.

When you are creating a new executable project or library project, name is a filename that can include the full path to the new file. If you omit the path, new creates the new file or project in your current Green Hills MULTI® working directory.

If your name input argument does not include the file extension, and you do not include the type argument, new creates a new executable project in the IDE with the gpj extension.

To define the kind of entity to create, type accepts the strings shown in the following table.

Type StringDescription
projectCreate a new MULTI executable project in the current IDE instance. Sometimes this is called a DSP executable file.
projectlibCreate a new MULTI library project in the current IDE instance.

Examples

new(id,'my_project.gpj','project') creates a new project 'my_project.gpj' of type project.

The 'project' argument is optional; the default project type is an executable project. When you include the gpj extension on the name of the new project my_project.gpj, new automatically creates a project file.

new(id,'my_library_project','projectlib') creates a new library project in the IDE instance that id references. To create the library project, you must include the 'projectlib' input argument.

See Also

activate

close

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS