![]() Original Assignee Harbin Institute of Technology Priority date (The priority date is an assumption and is not a legal conclusion. Harbin Institute of Technology Institute of artificial intelligence Co.,Ltd. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.) ( en Inventor 薛红琳 王强 吴钊君 罗晶 Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.) Granted Application number CN201410246988.XA Other languages Chinese ( zh) Google Patents Serial port communication device and method based on LabVIEWĭownload PDF Info Publication number CN103984665A CN103984665A CN201410246988.XA CN201410246988A CN103984665A CN 103984665 A CN103984665 A CN 103984665A CN 201410246988 A CN201410246988 A CN 201410246988A CN 103984665 A CN103984665 A CN 103984665A Authority CN China Prior art keywords data event queue frame sent Prior art date Legal status (The legal status is an assumption and is not a legal conclusion. Google Patents CN103984665A - Serial port communication device and method based on LabVIEW This.CN103984665A - Serial port communication device and method based on LabVIEW Private void port_DataReceived( object sender, SerialDataReceivedEventArgs e) Private void button1_Click( object sender, EventArgs e) Private void sendRead_TextChanged( object sender, EventArgs e) Port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived) SerialPort port = new SerialPort( " COM1", 9600, Parity.None, 8, StopBits.One) Set the COM1 serial port to speed = 4800 baud, parity = odd, // data bits = 8, stop bits = 1. Is there a bug when reading the input buffer using C#? I can send the query via my C# GUI and read the correct response from the input buffer using hyperterminal and Labview. I can write to the output buffer and read the correct reponse from the input buffer using hyperterminal and Labview. I have connect more than one device and I have yet to read any data from the input buffer. However, when I send a query to the device, I expect to see data in the input buffer that was sent by the device, but the input buffer is always empty. From my C# GUI, I can sent a cammand to the device to change voltage level and the device changes voltage level as I can see it on the device display. However, if I open hyperterminal the device IDN shows up in hyperterminal like it should have showed up in my GUI. I can send a command, such has a query (*IDN?), and I never get a response in my GUI. I am trying to talk to an Aglient device via C# through a RS232 connection on my PC with XP OS and I am having trouble. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |