User Programs...

Provides a miniature IDE for building user programs on the real-time host that implement user-written models for running during the third stage of the simulation test cycle. See Application Programming Interface (API)..

user_programs.png 

Corner Controls

There are no Apply and Cancel buttons. Actions taken in this form take place on the real-time host immediately. It is essentially a remote-control for the compiler on the real-time host.

Expand All expandall00017.png

Expands the hierarchy tree showing User Program Files on the real time host.

Collapse All collapseall00018.png

Collapses the hierarchy tree showing user program files on the real time host to only show the immediate children of the User Program Files node.

Demonstrate helpvideo00019.png

Opens a short video clip that demonstrates the basic workflow of this form.

Help help00020.png

Opens this section of the manual.

User Program Files Tab

User Program Files Tree

Shows the user program source files present on the real-time host. Double clicking on a file will open it in the editor.

RTDB

Selects the RTDB to be associated with this model. This setting is applied when the model is built.

Environment

Selects the environment variable file to evaluate before building this model. This setting is applied when the model is built. See Environment Variables....

Createuser_create.png

Creates a folder on the real-time host under the selected folder in the User Program Files tree. Select the type of folder to create from the drop down menu, enter a name for the folder in the text box, select the group for the new user program to belong to, then press the Create button. The types of folders are:

C Model

Folder initialized with a template for writing a model in the C language.

Folder

Empty folder.

Group

Selects the resource group of the new user program or top-level directory.

Group

Changes the group the selected user program belongs to. See Group Table. This combo box is the one located directly above the Edit and Make buttons, not to be confused with the Group combo box above the Create button.

Editedit00021.png

Opens the file selected in the User Program Files tree in the Editor tab. The editor will download the file from the real-time host to allow the user to edit it, then upload it back to the host when it is saved.

Makemake00022.png

Runs the make command on the real-time host in the folder selected in the User Program Files tree. Selecting a file in a folder suffices to select the folder for this command. Output from the remote make command will be displayed in the Make Output tab.

Deletedelete00023.png

Deletes the file or folder selected in the User Program Files tree.

Upload Tab

See Upload Tab.

Edit Tab

See Edit Tab.

Make Output Tab

See Make Output Tab.

User Programs Tab

Displays a list of all the user programs built on the real-time host.

user_programs_tab.png 

Deletedelete00024.png

Deletes the selected user program executable from the real-time host. User program executables are stored separately from the source files on the real-time host, unlike script executables which are stored in the directory with their source.