New topic: serial device - where to start?
<http://forums.realsoftware.com/viewtopic.php?t=47716> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message pbesong Post subject: serial device - where to start?Posted: Fri Apr 26, 2013 8:14 pm Joined: Fri Dec 09, 2005 6:25 pm Posts: 357 Someone gave me a USB foot pedal and they want me to see if I can get it to start and stop a MoviePlayer movie (to do transcription). I've got no clue how to even go about it. I read the documentation, but am a bit confused. When the app opens I have this... If Serial1.Open then MsgBox "The serial port was opened." TextArea.text = serial1.readAll Else MsgBox "The serial port could not be opened." End if I get no text in the TextArea even though it says it is open whether I push the pedals or not. Do I need a plugin or library from the manufacturer to talk to this device? Top msssltd Post subject: Re: serial device - where to start?Posted: Sat Apr 27, 2013 8:09 am Joined: Fri Oct 28, 2005 7:05 am Posts: 555 Location: Emsworth, UK Where to start... A USB port and a serial port, are not quite the same thing. USB ports, I am sure you are familiar with. Serial ports, also known as RS232 ports, come in 9 pin and 25 pin, 'D' Type flavours. Real Studio can address an RS232 serial port natively, using the Serial control class. There is no native Real Studio control for addressing a USB port. There are some USB devices which present themselves to the operation system as a virtual serial port, and those devices can be addressed with the RS Serial control. Other USB devices can be addressed using declared function calls into 3rd party API libraries (.dll files on windows). These too can be addressed using Real Studio but require 'low level' knowledge of the devices specific library. Other USB devices may not be at all compatible with Real Studio. The first things you need to establish are, what device you have and what API, if any, is available for it. _________________ Yes it's me in the avatar Top pbesong Post subject: Re: serial device - where to start?Posted: Sat Apr 27, 2013 11:48 am Joined: Fri Dec 09, 2005 6:25 pm Posts: 357 sounds like i have my work cut out for me! thanks. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
