Classes inside this package allow you to:
StageController
class).
To disply a Stage control window you can write your own java program containing the following line to get the window appear on your monitor:
StageCtrlDialog dialogo=new StageCtrlDialog();
This is the only one code line of StageCtrlDialog
main
program class.
That fact makes the program startable from command line:
For example:
javaw -mx80m -cp vfsc.jar;comm.jar; vfstagecontroller.StageCtrlDialog
will display a Stage control window with default parameters.
StageController
class allow the programmer to control the stage
from java code. Basically you have just to do the following three things:
stController= new StageController();
stController.setConnectionParameters(new SerialParameters("com1",9600,SerialPort.FLOWCONTROL_NONE,SerialPort.FLOWCONTROL_NONE,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE))
stcontroller.openConnection();
openConnection()
method return true
this means the connection
is right estabilished and hence you can control the stages by Stagecontroller methods otherwise
means that something went wrong with connection. Control connection parameters and try again.