Greenleaf Serial Port Ocx
Feb 29, 2000 data, and the number of serial devices is not fixed (hence multiple, dynamic instantiations of the DLL) and I want to abstract the details behind a simple interface. To do this, I use Greenleaf's CommX ActiveX control (specifically the PortCtl control included in a bundle) inside my DLL to communicate with the serial port. Install ubuntu touch on dell venue 8 pro. Yes you need a 3rd party one. I've used greenleaf software's There are others. If you search on this newgroup you will find more.
I have read data from the serial port by using the Microsoft pluginMSCOMM32.OCXthat is included in several of Microsoft's products, but specifically it isincluded with VISUAL STUDIO.Once you install it in your machine, you can use it from PB by declaring anOLE object container. You then can call its methods and use its properties.Regards'Xiaotao, Lu' escribi en el mensajenews:n7PEamjXCHA.74@forums.sybase.com.
hi,all i know powerbuilder is powerful in database development. i just want to know if i can get data from serial port or usb, and how?
thanx. IO-Active X CTRL from www.jspayne.com has a very reasonable cost $75I think and I've been using it for about 4 years to communicate from aPB program to OCR scanners from Scantron and ScanningSystems.On Tue, 17 Sep 2002 08:16:17 -0400, 'John' wrote:1. I have implemented the CommX 1.1 ocx fromthey have a free trial period.2. Use the port as a file, open it as a file,read from, write to3.
Using the COMM-DRV libraries am sure others will join in with their favoritesHTHJohn Vanleeuwe. Many functions missing in PowerBuilder can be found in the Windows API. Youalso have the ability to call functions in other DLLs too.For serial communications, I create a multi-threaded PowerBuilderapplication using the PB function SharedObjectRegister. I have found thatserial communications using the Windows API within PowerBuilder works bestwhen one thread is used for writing to the serial port and another is usedto read from the serial port.
It is not required that the application bemulti-threaded however.Using the windows API, here are the basic steps:1. Open the serial port using CreateFileA (serial ports are treated asfiles).2. Set the input and output buffer sizes using SetupComm.3. Get the current DCB (Data Control Block) values using GetCommState.4.
If any DCB value needs to be changed, change it in the DCB structure thenuse SetCommState to make the changes take affect.5. Write to the serial port using WriteFile.6. Read from the serial port using ReadFile.Remember, the above mentioned API are the basic steps. I have beensuccessful in creating a serial communications application that utilizes 8threads (4 read and 4 write) to simultaneously communicate via four modems.If you would like more detailed information, please contact me atdennis.stackley@ps.net'Xiaotao, Lu' wrote in messagenews:n7PEamjXCHA.74@forums.sybase.com. hi,all i know powerbuilder is powerful in database development.

i just want to know if i can get data from serial port or usb, and how? thanx. HI to all,Because it is difficult to programmer in API windows please can you give meanexample or a little code in powerbuilder about there steps.thanks in advanceNick 'Dennis Stackley(Hotmail)' news:hmKPVhlXCHA.161@forums.sybase.com. Many functions missing in PowerBuilder can be found in the Windows API.You also have the ability to call functions in other DLLs too. For serial communications, I create a multi-threaded PowerBuilder application using the PB function SharedObjectRegister.
I have found that serial communications using the Windows API within PowerBuilder works best when one thread is used for writing to the serial port and another is used to read from the serial port. It is not required that the application be multi-threaded however. Using the windows API, here are the basic steps: 1. Open the serial port using CreateFileA (serial ports are treated as files). 2.
Serial Port Arduino
Set the input and output buffer sizes using SetupComm. 3. Get the current DCB (Data Control Block) values using GetCommState.
4. If any DCB value needs to be changed, change it in the DCB structurethen use SetCommState to make the changes take affect. 5. Write to the serial port using WriteFile. 6. Read from the serial port using ReadFile. Remember, the above mentioned API are the basic steps.
I have been successful in creating a serial communications application that utilizes 8 threads (4 read and 4 write) to simultaneously communicate via fourmodems. If you would like more detailed information, please contact me at dennis.stackley@ps.net 'Xiaotao, Lu' wrote in message news:n7PEamjXCHA.74@forums.sybase.com. hi,all i know powerbuilder is powerful in database development. i just want to know if i can get data from serial port or usb, and how? thanx. Is it posible to read data froom a serial port in power builder?
How?Thanks in advance-J. Jesus Gutierrez RamirezYes this is possible, but you have to use an active x control. I purchasedthe Commx 1.1 Active X communications controls from Greenleaf.
It hasreading, writing, file transfer utilities.Check them out at www.greenleafsoftware.comHTHJohnSearch for earlier threads. It' is do-able in PB, but much easier byusing a 3rd party tool such as CommX by Greenleaf software.-bacJesus Gutierrez wrote: Is it posible to read data fro.Hi,I've got a requirement to read streams of data that will be comming inthrough the serial port.I want to use powerscript on that data to do the processing.Does anyone know a way in powerbuilder of getting data streams from the comport directly using Powerscript function or any API's that can easily beused.Any help would be appreciated.MickHi!You can use OCX serial comm control (mscomm32.ocx).
That works fine for mein more than80 installations.Regards,Kragulj Milekmile@kisistemi.comkmile@inecco.net'Micks news' wrote in message news:442d0db2.bca.@sybase.com. Could someone please tell me how I go about reading data from a serial port (weights from a weighbridge) into a.Could someone please tell me how I go about reading datafrom a serial port (weights from a weighbridge) into aPowerbuilder application.Do I need any third party software to do this?Thanks - Paul.Hi,Currently our applications accept data from an instrumentconnected to a serial port using a custom ocx. This ocx iscurrently limiting us because it does not support flowcontrol.