User`s manual
SDK 2 Programmer’s Guide Application Deployment
4-3
Developing an NPort PCG Utility
NPort PCG SDK provides the NPort PCG Control Interface (PCGCI) Library for customers who
want to develop their own utility for use on a Windows computer.
PCGCI Library
PCGCI (NPort PCG Configuration Interface) is a set of APIs that run on a Windows
95/98/Me/NT/2000/XP systems to search, locate, and config the NPort PCG over the network. The
PCGCI library can be found in the folder C:\PCGSDK2\Pcgcilib\LIBRARY. For more
information, refer to document neci.chm in that directory. Examples are located in
C:\PCGSDK2\Pcgcilib\EXAMPLE.
AP ID
NPort PCG has a special parameter, called “AP ID,” that is of particular interest to PCG SDK
programmers who intend to repackage NPort PCG with their own application, new product name,
and new model number. The AP ID can be used to distinguish between different application
programs.
You can develop several versions of an application for use with different projects. In this case, it is
necessary for the host utility to identify which application is running on the NPort PCG. NPort
PCG uses the AP ID to identify which module is associated with which PCGCI API. The AP ID is
stored in the System Parameter Block within the firmware.
To set up the AP ID, you will need to insert the following code at the beginning of your own
source code (refer to the SDK Library System Control API).
void sys_Set_RegisterID( unsigned long id);
The AP ID can be read by SDK Manager, as well as by your own management utility created with
PCGCI Library.
AP Version
To modify the AP version of your application, add the following code in the c file.
char Ver[ ] = "SDK User AP V1.2";
You may also use Exe2ap or Exe2frm to modify the AP version directly, as illustrated in the
following figures: