I am not sure if realbasic can or not...but,
realbasic has controls builtin for serial i/o. You just drag and drop the serial control into your projects, and tell it what your baud rate and parity etc will be.
here is how my code in realbasic looks so far.
Code:
mSerial.SerialPort = System.SerialPort( 0 ) //The port number here maybe should be a variable so the user can set the port.
mSerial.Baud = 8 // 9600 baud
mSerial.Parity = 0 // No parity
mSerial.Stop = 0 // One stop bit
mSerial.Bits = 3 // Eight character bits
mSerial.CTS = true // Set the flow control to using CTS
// Try to open the device and if it fails, alert the user and bail out
if not mSerial.Open then
MsgBox "Could not open the serial device!"
end if
dim mb as memoryblock//variable to hold hex data to be sent out to device.
mb="11,22,33,44,55,66,77,88,99,aa,bb"//sample data string
mSerial.Write( mb )//write data to device.
mSerial.Close //close serial connection. Probably should have this somewhere else.
This is basically how I plan to send the data. Like I said, I am new to these and may be missing something. The way I see it, and I may be wrong, is the VB needs the .dll file to help it communicate, where-as realbasic may have the needed functions built in?I guess I will find out, unless someone wiser than me can set me straight.
mike