Purebasic Serial Port Example

All of the older versions of uTorrent have no viruses and are totally free on Uptodown. Windows / Internet / P2P / uTorrent / old versions. 3.5.5 Build 45852. BitTorrent, Inc. Download your torrents the easy way. Older versions of uTorrent. Old utorrent downloadfasrreport.

  • Purebasic Serial Port Example Code This example assumes it is COM1.Use the My.Computer.Ports.OpenSerialPort method to obtain a reference to the port. For more information, see.The Try.Catch.Finally block allows the application to close the serial port even if it generates an exception.
  • Google golang serial port. PureBasic is a modern BASIC programming language. The key features of PureBasic are portability (Windows, Linux and OS X.
Purebasic Serial Port Example
Page 1 of 1
[ 6 posts ]

USB-Serial Software Development Kit. USB-Serial Software Development Kit is a free-to-use, complete library and driver stack for USB-Serial Bridge Controller devices, in order to easily integrate USB interface into any embedded application. This SDK comes with configuration tool and application examples. Here is a program to look for any installed serial ports (Com1 - 16). For each port found, an attempt is made to send and receive data, Actually, the data sent is a standard modem request that should return the modem's information if the port has an attached modem. NOTE: This uses several WinAPI calls The code includes examples of: Defining the DCB.

Print viewPrevious topic Next topic
AuthorMessage
Posted: Fri May 03, 2002 9:25 am
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Seldon.
Hi !
I have 3 questions: may I use the serial port (COM1/COM2) with
PureBasic (using some lib/functions or Windows-API) ?
Is the .dll support, working fine ?
I saw PureBasic has inner functions to call Direct-X, in your
opinion is faster than BlitzBasic or not ?
Thank you in advance for informations.


Top
Purebasic Serial Port Example
Posted: Fri May 03, 2002 3:13 pm
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by merendo.
Hello Seldon,
Nice to get you to know.
For what do you need the COM-Ports?
I started out with BlitzBasic. I think PB is quite faster than BB. This is a comparison of some languages, including BB and PB (In German, But I think it won´t be difficuilt) http://www.blitzbasic.de/showcase/speed.exe .
Regards, merendo
We always need to hear both sides of the story (by Phil Collins)


Top
Posted: Sat May 04, 2002 4:05 pm
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Seldon.
For what do you need the COM-Ports?

Thanks for your reply.
I need to control a custom device which uses the serial port. Do you
know if it's possible to do that with PureBasic? Or must I use the
Windows API ?
I started out with BlitzBasic. I think PB is quite faster than BB.

I also am an Amiga user, so I'm familiar with both BB and PB. Since
I need a very fast gfx, I found out BB is perfect, but it lacks
of good API's support and commands for serial ports. So, I'm thinking
to use PB to develop a own DLL, which the BB program uses to control
the serial-port.
http://www.blitzbasic.de/showcase/speed.exe .

Ok, I'll try.. though with Direct-X, BB seems slightly
faster.
Regards.


Top
Posted: Sat May 04, 2002 4:57 pm
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by merendo.
Ok, I'll try.. though with Direct-X, BB seems slightly
faster.

Well, any time you run the test, it returns different results. Common is PB faster.
I need to control a custom device which uses the serial port. Do you
know if it's possible to do that with PureBasic? Or must I use the
Windows API ?

Hmm.. I´m not sure. I´m not an API-Expert. I think you also can use a PB-UserLib. Might El_Choni has got one, which may help U. El_Choni? Have you got an userlib to access the com ports?
We always need to hear both sides of the story (by Phil Collins)


Top
Posted: Sat May 04, 2002 5:44 pm
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by El_Choni.
Hmmm.. let's take a look at my userlib stocks.. Sorry, yesterday they took the last one left .
I'm sorry, I can't help you, I'm not an API expert either, and I know nothing about COM ports, or what they are used for (well, I know my computer has four and that they are numbered). I can't promise you anything, but if you give a list of the functions you need, I'll take a look at the docs.
Bye,
PS: of course, you can always use the API to do it.
El_Choni


Top

Purebasic Serial Port Example List

Posted: Sat May 04, 2002 9:15 pm
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Paul.
If you look on the PureBasic website under the Download section, there is sample code (PureFrog) showing how to use the com ports to control an external device.
That might be a good place to start.


Top

Purebasic Serial Port Example Free

Page 1 of 1
[ 6 posts ]