Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
SYPT PRO User Guide / SYPT PRO User Guide.doc
Скачиваний:
244
Добавлен:
03.03.2016
Размер:
17.32 Mб
Скачать

Downloading Node Programs

Downloading node DPL programs means transferring the user image created by SYPT when the program was built to the target drives. Before downloading a DPL program, the program must build successfully and the Configuration Editor or DPL Editor must be in online mode.

Note:

The target node stops executing its user program for the duration of the download process. Before performing a download, ensure that it is safe to stop the user program running.

Within the Configuration Editor it is possible to download all nodes in a project in a single action.

Within the DPL editor or SYPTLite it is possible to download a program for an individual node.

To download all DPL programs within the Configuration Editor

1. From the Project menu, choose Download.

If programs have been edited since they were last built, the Out of Date Programs dialog is displayed indicating which programs should be built before a download is performed.

At this point, if the Cancel button is pressed, the download process is aborted and the out of date programs can be built.

If the Download button is pressed, or if there are no out of date programs in the project, the Download dialog is displayed showing the node DPL programs available for download.

2. Check the node programs to download.

Some nodes may not be available for selection, e.g. in the above picture APP1 is greyed out. This can occur if the program for the node has failed to build successfully and a user image is not available for download.

3. Click OK.

To download the program for a single node in the DPL Editor

With the program for the node open in the DPL Editor:

  • From the Project menu, choose Download.

To build and download the program for a single node in the DPL Editor

With the program for the node open in the DPL Editor do one of the following:

  • From the Project menu, choose Build and Download.

  • On the main toolbar, press

See Also

  • Switching DPL Programs to Editing Mode

  • Going Online - Communicating with Targets

  • Building Applications

  • Editing the Properties of Nodes

________________________________________________________________________________

Uploading Node Programs

It is possible to upload the source of a DPL program from a node if the program within the node was built with the option to embed the source file.

To upload a DPL program within the Configuration Editor

1. With the Configuration Editor in online mode, select the node in the Hardware Architecture view.

2. From the Project menu, choose Upload.

The Project Upload dialog box appears. Press the Start button to perform the upload.

To upload a DPL program within the DPL Editor

1. With the DPL Editor in online mode and with the existing program for the node open in the DPL Editor.

2. From the Project menu, choose Upload.

The Upload dialog box appears. Press the Start button to perform the upload.

See Also

  • Going Online - Communicating with Targets

  • Nodes

________________________________________________________________________________

Debugging Applications

The SYPT Workbench offers many tools enabling the debugging of an application. Before debugging an application, you need to build the application, switch to on-line mode and download programs to their target drives.

While in on-line mode, you have access to:-

  • Identification and diagnostic information for nodes.

  • Numerical and graphical viewing of changes in values of program variables and target parameters.

  • The capability to stop and start programs.

  • The capability to pause and resume programs and tasks.

  • The capability to set breakpoints.

To correct program errors you can switch individual DPL programs to editing mode, make corrections and then go back online to download the modified program.

Note:

To enable the debugging of a program for a node, the option to embed debug information must be set in the node properties

Before debugging an uploaded program, you need to build the program. You should then download the program to the target drive to ensure synchronization between SYPT and the target drive.

You can perform many tasks when debugging applications:

  • Accessing Diagnostic Information for Nodes

  • Monitoring the Values of Variables and Parameters

  • Changing the Values of Variables or Parameters

  • Accessing Identification Information for Nodes

  • Controlling Program Execution

  • Switching DPL Programs to Editing Mode

  • Resetting Node Programs

  • Resetting Drives

See Also

  • Editing the Properties of Nodes

  • Going Online - Communicating with Targets

  • Building and Downloading Applications