Skip to Main Content Skip to Search
Product Documentation

load - Load program file onto processor

Syntax

IDE_Obj.load(filename,timeout)

IDEs

This function supports the following IDEs:

Description

IDE_Obj.load(filename,timeout) loads the file specified by the filename argument to the processor.

The filename argument can include a full path to the file, or the name of a file in the IDE working folder.

With the VisualDSP++, MULTI, and Code Composer Studio IDEs, you can use the cd method to check or modify the IDE working folder.

For MULTI, you can add an option argument after filename to specify options for the 'prepare_target' command in MULTI debugger. Refer to the MULTI documentation for information on 'prepare_target'.

Only use load with program files created by the IDE build process.

The timeout argument defines the number of seconds MATLAB waits for the load process to complete. If the time-out period expires before the load process returns a completion message, MATLAB generates an error and returns. Usually the program load process works correctly in spite of the error message.

If you omit the timeout argument, load uses the timeout property of the IDE handle object, which you can get by entering IDE_Obj.get('timeout').

Using load with Eclipse IDE

With Eclipse IDE:

A relative path consists of:

project/configuration/executablefile

An absolute path consists of:

workspace/project/configuration/executablefile

If the workspace is not the active workspace when you use load, the software generates errors.

If the project is not the active project when you use load, the software makes the project active.

If the software generates socket server errors when you use methods with a Eclipse IDE handle object, such as IDE_Obj:

  1. Delete the handle object from the MATLAB workspace.

  2. Reconnect to the Eclipse IDE using the eclipseide constructor.

Examples

IDE_Obj.load(programfile) 
run(id)

See Also

cd | dir | open

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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