Downloads from 

http://www.psioninc.com


Psion Development Tools                            
Sample Applications

Psion offers a variety of development tools to enable the user to create
applications for our wide range of palmtop and industrial machines. 
These tools include OPL, our basic-like language; our C development kit; 
and OVAL, our visual application development tool. 

As a service to our customers, we provide sample applications for each of 
these development kits to address a number of common programming tasks.
Please note that these applications are meant to serve only as examples to
illucidate specific programming tasks, and are not intended to serve as
full-featured marketable applications. As such, the examples provided
herein may not contain error checking and cannot be expected to guarantee
the integrity of your data.

The following table includes a number of coding examples arranged by the
development tool in question. If, after running any of these applications
in your office environment, you have any questions or problems, please
contact us at usa-webmaster@psion.com. 
Also, if you require a sample application not included in this table, please 
contact us with your request and we'll see what we can do.

Development Tool  Application Description    

OPL SDK      
              scan.zip    Sample code to open a channel to the serial
                          port, queue a serial barcode read
                          and a queue a keyboard read
                                                                  
              serial.zip                                                    
                          Sample code to open a channel to the serial                                                    
                          port and queue a read from the serial port                
                  
              reorder.opl Sample code to sort a database file.                
                            
              linkon.opl  Sample code to turn the remote link on.                
                            
              xmo.opl     Sample code to terminate the link from within
                          program. The application provides an example of this
                          utility by communicating with an external modem.                
                              
             longlist.opl Sample code to use subclasses of the OLIB 
                          VAROOT class to implement long choice lists.     


C SDK             
            scan.c        Sample code to open a channel to the serial                                                    
                          port, queue a serial barcode read and                                                    
                          queue a keyboard read.

            modem.zip     Sample code to demonstrate XMODEM and YMODEM                                                    
                          communication                
            
            linkon.c      Sample code to demonstrate use of a "console" 
                          program to start another program using p_exec()                
               
            crdtype.c     Code to identify whether HC is in old style 
                          or new style docking station 
                 
            hcdock.zip    Image file to allow HC to communicate with new 
                          style docking station

OVAL SDK
            barscan.zip  Barcode scanning application to scan a barcode, 
                         accept keyboard, search a database and allow                                                    
                         user to make additions to database. Intended 
                         as a model for an inventory application.              
                         Includes error handling routines to create
                         application databases if they are not present.
                
           dbase.zip     Sample code to demonstrate handling of 
                         dBase III and dBase IV files within OVAL 
                         applications. 
                         Includes database server files necessary to
                         utilize dBase files on the Psion unit,
                         i.e. patches to DBS04.
                         Unzip the file and read file and database                               
                         doc's first.                
                
           makedb.ofr    Sample code to  create a "Psion native" 
                         database file including index.

           gridapp.zip   Sample application to demonstrate the use of a
                         grid populated with values from a "Psion native"  
                         database.

           dbgrid.zip    Sample application to demonstrate the use of a
                         grid populated with values from a dBase database.
                         Note that the method for populating the grid differs 
                         because the dBase file must be opened before being
                         loaded into the grid.
           
           modem.zip     Sample application to start the comms process, run 
                         the program in background using a script file, and 
                         return control to the OVAL application. The script 
                         file connects to a modem through the serial port 
                         (in a Docking station), dials out and transfers a 
                         file using Ymodem. Open the script file using 
                         Script Editor, edit to suit your needs, then 
                         translate before running the application.
