DALI User Manual: Installation Instructions

Instructions for Windows

DALI is supported on Windows 98 / NT / 2000 / XP. This section covers installation instructions for the DALI server, C client libraries, MFC / ActiveX components, and demo programs.

Section Shortcuts:

DALI Server Installation

DALI server software is available as an ZIP file for Windows. This file can be unzipped to the directory of your choice.

The files are organized into directories as follows:

/manual
Contains the DALI user manual in HTML format. Load the index.html file in your web browser to view the documentation.

/server
The DALI server directory. Includes the DALIServer.exe binary plus DLLs required to run the application.

/server/boards
The board configuration directory. See the Board Configuration section of the documentation for more information.

/server/boards-examples
Example board configuration files which can be copied to the board configuration directory and used as templates for the desired board configuration.

/server/alarms
The alarm configuration directory. See the Alarms section of the documentation for more information.

/server/alarms-examples
Example alarm configuration files which can be copied to the alarm configuration directory and used as templates for the desired alarm configuration.

/server/etc
Contains miscelaneous configuration files. The default location of the password file if user authentication will be used.

/server/ssl
Contains the temporary self-signed SSL certificate for use in testing DALI SSL support.

Using the DALI Win32 Server
---------------------------

Although most users will be using the Linux or QNX version of the DALI server,
the Win32 version is included for demostration and development purposes.  Many
users find it more convenient to run a local server in case the network is down,or the real server is not set up.

The DALI Win32 server requires DSCUD to be installed.  You can download this
here:

http://www.diamondsystems.com/files/binaries/WIN32-DSCUD56.zip

During the install program, you do not need to install the developer libraries
and should leave this option unchecked.

The Win32 DALI server will run in demonstration mode.  This mode provides
fake I/O channels:  only 16 A/D, 4 D/A and 3 DIO are functional, even though
server queries will list 32 valid channels for each type.

Included in the server directory are SSL DLLs and a custom, post 5.6 DSCUD DLL
that enables the DSC_TEST board.

After launching DALIServer.exe, you need to click on the 'Start Server' button.

DALI Client Installation

The DALI clients for C/C++/MFC/ActiveX are installed with the DALI server in the following directories.

/activex
ActiveX components for developing web based GUIs for DALI and Internet Explorer. Also includes a batch file for registering these components.

/include
Header files for the C/C++ client and MFC / ActiveX DALI clients.

/lib

Windows libraries for the C/C++ client and MFC / ActiveX clients.

2) Go to the dalic directory in this package. Copy dalic.lib to your MSVC lib directory and dalic.h to your MSVC include directory. This is a different dalic.lib than found in the original package - it does not link with MFC. 3) Go to the dali_w32\build directory in this package and open the workspace. You should be able to build the dali_w32 release library. The workspace will try to include a version of dalic.h that is not located in the proper place, but it should not be a concern as long as you have followed step (2) and dalic.h is in your default header path. 4) Take the dali_w32.lib you have just built and put it in your MSVC default lib directory. Put the dali_w32.h file in the dali_w32\src directory and put it in your default MSVC include directory. Repeat steps 3-4 with the dalictrl library, including copying the .lib and .h file to the MSVC default directories. The client development files consist of .lib and .h files for use with Microsoft Visual C++ 6.0. They are located in the \lib and \include directories respectively. To install these files, locate your Visual C++ directory. This is commonly set to "C:\Program Files\Microsoft Visual Studio\VC98". Copy the files accordingly: lib\dalic.lib C:\Program Files\Microsoft Visual Studio\VC98\lib lib\dali_w32.lib C:\Program Files\Microsoft Visual Studio\VC98\lib lib\dalictrl.lib C:\Program Files\Microsoft Visual Studio\VC98\lib include\dalic.h C:\Program Files\Microsoft Visual Studio\VC98\include include\dali_w32.h C:\Program Files\Microsoft Visual Studio\VC98\include include\dalictrl.h C:\Program Files\Microsoft Visual Studio\VC98\include Using the Sample Projects ------------------------- You may open the sample projects from their location. They should build without error if you have installed the development libs and the ActiveX controls [for the AX demos.] When building the debug version of the samples, you will get a warning related to the microsoft base libraries. These warnings occur because the DALI libraries are linked against the release runtime libraries. They are safe to ignore. The ActiveX controls are more involved to build and run, because they require the user to create a cab file with a signed key file. It is best to begin with the console and MFC demos when learning how to use the client libraries. Most sample projects focus on the dali_w32 and dalictrl libraries. If you would like to see samples pertaining to the dalic library you will need to look in the Linux package.

Register ActiveX Controls

Before incorporating the ActiveX controls into your own project you'll have to register them with the operating system. The /activex directory that came with DALI includes a register.bat file which calls regsvr32.exe for each OCX file in that directory. After you run this the ActiveX controls will be available to applications like Visual Studio

DALI C Client Demos Installation

/samples
Compiled demos and example code showing the features of the components of Windows software for DALI.