![]() You can find several OCX controls that will allow a reasonsable serial interface or write your own c/c++ dll that has spawns a thread to read from the port to fill a buffer and PB calls to read from the buffer. This 'could' work for read also, but read will generally throw characters away if the application does not keep up with the import data and will hang on receive if no data is present and flow control allows the open to complete. ![]() For a 'write only' solution you can get by with fileopen, filewrite, fileclose and use the applet in the control panel to set port parameters. So, what works for COM1 with on motherboard UART may or may not work with smart ports (DigiBoard, EdgePort, USB based port cables, etc). Ports.SerialPort] object, then the problem is that you're calling SerialPort.Write() with a single. First, they work differently for different hardware. Well, the normal fileread and filewrite work, but have some real limitations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |