Example #1
0
 public void moveWheelA(byte myByte)
 {
     com.writeByte(myByte);
 }
Example #2
0
        public string GetVFAll()
        {
            lambdaCom.clearBuffer();
            lambdaCom.writeByte(252);
            lambdaCom.writeByte(byteCom.byteGetVFAll);
            string filterPoss = lambdaCom.readString();

            return(filterPoss);
        }
Example #3
0
        public void setWaveLegnth(byte speed, int freqVal)
        {
            //http://stackoverflow.com/questions/1318933/c-int-to-byte
            byte[] intBytes = BitConverter.GetBytes(freqVal);
            byte   mult     = 64;

            //Array.Reverse(intBytes);
            byte[] result = intBytes;
            result[1] = (byte)(result[1] + (byte)(speed * mult));//Add the speed component to the high position byte
            com.writeByte(byteCom.byteSetWlength);
            com.writeByte(result[0]);
            com.writeByte(result[1]);
            com.txtBoxDialog.AppendText("New Possition: " + freqVal + Environment.NewLine);    //**can no longer access mainform
            return;
        }