Skip to Main Content Skip to Search
Product Documentation

reload - Reload most recent program file to processor signal processor

Syntax

s=IDE_Obj.reload(timeout)
s=IDE_Obj.reload

IDEs

This function supports the following IDEs:

Description

s = IDE_Obj.reload(timeout) resends the most recently loaded program file to the processor. If you have not loaded a program file in the current session (so there is no previously loaded file), reload returns the null entry [] in s indicating that it could not load a file to the processor. Otherwise, s contains the full path name to the program file. After you reset your processor or after any event produces changes in your processor memory, use reload to restore the program file to the processor for execution.

To limit the time the IDE spends trying to reload the program file to the processor, timeout specifies how long the load process can take. If the load process exceeds the timeout limit, the IDE stops trying to load the program file and returns an error stating that the time period expired. Exceeding the allotted time for the reload operation usually indicates that the reload was successful but the IDE did not receive confirmation before the timeout period passed.

s = IDE_Obj.reload reloads the most recent program file, using the timeout value set when you created link IDE_Obj, the global timeout setting.

Using reload with Multiprocessor Boards

When your board contains more than one processor, reload calls the reloading function for each processor represented by IDE_Obj, reloading the most recently loaded program on each processor.

This action is the same as calling reload for each processor individually through IDE handle objects for each one.

Examples

After you create an object that connects to the IDE, use the available methods to reload your most recently loaded project. If you have not loaded a project in this session, reload returns an error and an empty value for s. Loading a project eliminates the error. First, create an IDE handle object, such as IDE_Obj, using the constructor for your IDE.

s=IDE_Obj.reload(23)
Warning: No action taken - load a valid Program file before 
you reload...

s =

     ''

IDE_Obj.open('D:\ti\tutorial\sim62xx\gelsolid\hellodsp.pjt','project')

IDE_Obj.build

IDE_Obj.load('hellodsp.pjt') #This file extension varies by IDE
IDE_Obj.halt
s=IDE_Obj.reload(23)

s =

D:\ti\tutorial\sim62xx\gelsolid\Debug\hellodsp.out

See Also

cd | load | 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