User`s guide

Developing a PSG Application with the NodeBuilder
Development Tool
Developing an application for the PSG/3 serial gateway is similar to developing an
application for any other custom device. Follow the device creation procedure
outlined in Chapter 5 of the NodeBuilder User’s Guide.
Warning: The PSG Software relies on the software update provided in
NodeBuilder Patch 5. Use the following steps to make certain this patch has
been applied to your NodeBuilder development tool before building your
PSG images.
1.
Select
About NodeBuilder...
in the NodeBuilder HELP menu.
2. Check to be sure the version listed in the “About” dialog box is
Versionl.5 Build 05.
PSG So ffware Ins talla tion
The PSG/3 software diskette contains the following files:
PSG20R.DTM
//Device Template
Readme.txt
PSG.LIB
//Must read notes
//Neuron C library containing PSG functions
PSG.H
PSGREGS.H
//Function prototypes
/KJART register and address definitions
To install the PSG software on your development tool:
1. Copy the device template
(PSG2 OR. DTM)
to your device template directory.
By default, this directory is
c : \ lonworks \ template.
2. The two header files
(PSG . H
and
PSGREG . H)
should be copied to your
development tool include directory. By default, this directory is
c:\lonworks\neuronc\include.
3. The final step is to copy the
PSG . LIB
file to your development tool’s library
directory.
By default, this directory is
c : \ lonworks \ images.
13-4
Programmable Serial Gateway