Confidence Testing

Top  Previous  Next

This section describes a short manual procedure that you may follow to check that Diamond has been installed correctly and is working. The procedure deliberately goes step-by-step to produce a simple application.

 

You can also try the other examples, which are in <3L>My Designs\examples\Sundance. Most examples have a descriptive README.TXT file, a batch file for building and running, and an equivalent MAKEFILE suitable for processing by a utility such as NMAKE. The Diamond IDE has these examples available as pre-defined projects.

 

To execute the confidence test you should follow these instructions.

1.

Open a command window. This can usually be done by selecting:

 Start/All Programs/Accessories/Command Prompt

2.

If necessary, set the current disk drive to the one on which Diamond has been installed.

 

For example, if Diamond has been installed in folder C:\3L\ but your current disc is D:, do this:

 

d:\> c:

c:\>

3.

Set the current directory to the example-1 sub-folder in the installation folder:

 

c:\> cd \3L\My Designs\examples\Sundance\example-1

c:\3L\My Designs\examples\Sundance\example-1>

 

If you have installed diamond to a different place, you should make the appropriate changes to the location of the current directory.

4.

Check that the server program is available, by typing the following command:

 

c:\3L\My Designs\examples\Sundance\example-1> 3L X

 

This should start the Windows Server, and give a window something like this (the title bar may vary):

 

SundanceServer

 

 

If the server’s window does not appear, check that your PATH has been set correctly and includes the Diamond executable folder, usually c:\3L\Diamond\bin

5.

Stop the server by clicking the × at the top right hand corner of the window.

6.

Compile the example using the following command:

 

c:\3L\My Designs\examples\Sundance\example-1> 3L C hello.c

7.

Build the hello task by linking the resulting object file with the necessary parts of the run-time library:

 

c:\3L\My Designs\examples\Sundance\example-1> 3L T hello

8.

Now generate an executable application, hello.app, by calling the configurer:

 

c:\3L\My Designs\examples\Sundance\example-1> 3L A hello

9.

You can now execute the program:

 

c:\3L\My Designs\examples\Sundance\example-1> 3L X hello

 

The server’s window should come up and look similar to this:

 

 

 

The output "Hello, world" comes from the hello.c example program. If it does not appear, you should carefully repeat the installation procedure and consider, in particular, if one of the following things has gone wrong:


Has the Sundance board been correctly installed and configured?

Has the Sundance software been correctly installed?

Have the environment variables been correctly defined?

If you have used the processor type DEFAULT, check using the ProcType utility that you have selected the correct type.

Have you inserted the Diamond USB dongle into your PC?

If the "Hello, world" message does not appear even after checking all this and repeating the installation procedure, please contact your dealer for further help.