Installation manual

PROGRAMMING EXAMPLES
93
A
A PROGRAMMING EXAMPLES
A.1 STAR-Link™ VISUAL BASIC 6.0 EXAMPLE
This example is a simple program based on STAR-Link™ ActiveX, that allows to:
configure an RS485 base station network or a single base station in RS232
save/load a network configuration from file (file RFNCCTL.CFG)
start/stop PC/base station data collection
collect data in a list
write the main network events in a log file (file NRFCCTL.LOG)
show data of PDF417 codes containing more than 240 characters and read by a
Gryphon™ M200. The code reconstruction is performed by Visual Basic source
code when Gryphon™ M200 has RF protocol version prior to 1.12. If using a
Gryphon™ M200 with an RF protocol version 1.12 or later, the code
reconstrunction will be performed by STAR-Link™ ActiveX. To get the current
RF protocol version of your RF hand-held reader, refer to the values of the
RFMinProtocolVersion and RFMaxProtocolVersion properties notified during the
device registration.
The main STAR-Link™ ActiveX events implemented in this example are: DataEvent,
ErrorEvent, AliveEvent, SatCfgEvent, StatusEvent, SleepSatEvent, LostFrameEvent.
At start up the program opens a dialog asking whether loading an existing
configuration:
Figure 5 - Loading an exisitng configuration
This allows to have always a configuration reporting all information about the network
devices.
For the same reason, another dialog box has been enabled when closing a
configuration to save it.