Com Ports in Pure Basic

Windows specific forum
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Sveinung.

Have a little problem....
I'm developing an application for a hospital. I'm trying to read some data from an EKG measuring device and this device is again connected to the COM2 port on my computer.
But to read data from the device I need to send the value 3 to the measuring equipment to make it send back 17 Bits of data.

I've tried the OpenFile("COM2")....doesn't work. :(

Well....
Anybody with a good idea????
(got it to work in QBasic, hehe)

Sveinung
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

use OpenComPort(0,"COM2:") this is an "officially" unsuported command :wink:there is also PureFrog
in purebasic.com/download.php3 which is an example


Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Sveinung.

Thank you very much!

Sveinung
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by teachco.

How can I close this Port?

Andi
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Sveinung.

Closefile should work

Sveinung
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Yep.

Fred - AlphaSND
Post Reply