1. Clever Naranjo
  2. PowerBuilder
  3. Thursday, 30 November 2017 18:57 PM UTC

regards
I have a machine that measures, after measuring sends an impression with some readings to a printer connected directly to this machine, I need to read this data instead of the printer

thanks for your support

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 30 November 2017 20:44 PM UTC
  2. PowerBuilder
  3. # 1

Hi Cleaver;

  A serial port or USB  device can be read or written to using the FileOpen ( ) method. For example ...

integer li_FileNum

li_FileNum = FileOpen ( "COM1:", LineMode!, Write!, LockWrite!, Replace!)

FileRead / FileWrite ...

Just replace COM1: with the device name / port you need to access

HTH

Regards ... Chris

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 30 November 2017 20:13 PM UTC
  2. PowerBuilder
  3. # 2

It would be helpful if you told us the name/model of device (and a link to the device manufacturers website) and how it connects to the pc (USB, Serial Port).

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.