Пример #1
0
 public lambdaSerial()
 {
     lambdaRS232 = new SerialPort("COM2", 9600, Parity.None, 8, StopBits.One);
     Util        = new lambdaUtils();
     try { lambdaUSB = new FTDI_USB(); }
     catch { lambdaUSB = null; }
     byteCom   = new byteCommands();
     myLPT     = new lambdaParallel();
     mode      = "USB";
     LPTadress = 888;
     baudRate  = 128000;
 }
Пример #2
0
 public lambdaSerial(Mainform mf)//mainform object passed to lambddaSerial object
 {
     lambdaRS232 = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
     //Util = new lambdaUtils();
     try { lambdaUSB = new FTDI_USB(); }
     catch { lambdaUSB = null; }
     byteCom      = new byteCommands();
     myLPT        = new lambdaParallel();
     this.mf      = mf;                     //set reference of comport child to serial parrent
     vf5          = new vf5Functions(this); //pass the com port object to VF5 object to use parent methods
     lbX          = new lbXFunctions(this); //pass the com port object to lbX object to use parent methods
     txtBoxDialog = mf.txtBoxDialog;
     txtComOutput = mf.txtCom;
     stop         = mf.checkBoxStop;
     //App = mf.Application;
     mode      = "USB";
     LPTadress = 888;
     baudRate  = 128000;
 }
Пример #3
0
 private lambdaSerial com;             //create comport object
 //private Mainform mf;
 public lbXFunctions(lambdaSerial com) //com object passed to VF5fuctions object
 {
     byteCom  = new byteCommands();
     this.com = com;//set reference of comport child to serial parrent
 }