| Contents | Index |
IDE_Obj.load(filename,timeout)
This function supports the following IDEs:
Analog Devices VisualDSP++
Eclipse IDE
Green Hills MULTI
Texas Instruments Code Composer Studio v3
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').
With Eclipse IDE:
Before using load, use activate to make the project associated with the executable file active.
For the filename argument, use a relative or absolute path to specify the executable file.
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:
Delete the handle object from the MATLAB workspace.
Reconnect to the Eclipse IDE using the eclipseide constructor.
IDE_Obj.load(programfile) run(id)

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 |