![]() Does anyone have an idiots guide to connecting between the two apps perphaps I.m expecting things to happen in the wrong sequence? I have hyperterminal set to zmodem with crash recovery is this correct? Have tried different combinations of reading and writing text files from/to hyperterminal all to no avail. Sure have, makes no difference, wish it was that simple to solve. Hyperterminal vs Labview communication with serial port Greetings! Labview Serial I have a problem with serial communications functions, so I need a Labviwe Serial manual.Ĭode used is below: - Imports System.Text Imports System.IO.Ports Public Class Form1 Dim WithEvents serial As New System.IO.Ports.SerialPort Dim strtext As String = '&H1234' Dim buffer As String - Private Sub cmdSend_Click( ByVal sender As Object, ByVal e As EventArgs) Handles cmdStart.Click Try serial.Encoding = 'otherwise if you happen to send charcter above 127 ($7f) they will show up as? If Not serial.IsOpen Then serial.Open() serial.DtrEnable = True serial.PortName = 'COM1' serial.BaudRate = 9600 serial.Parity = IO. serial.StopBits = IO. serial.DataBits = 8 serial.Handshake = IO. serial.WriteLine(strText ) Catch ex As Exception buffer = ex.Message If serial.IsOpen Then serial.Close() End Try End Sub Any advice (besides giving up) more than welcome. Hyperterminal to Hyperterminal works ok and both have the same settings as shown with Serialport (COM1,9600,8,1,none). Have been through all the discussions about these 2 talking to each other, copied and played with code but cannot get any text sent to hyperterminal via the Serialport code in my form. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |