Problem with serialport communication
显示 更早的评论
Hello,
I have the following problem with the serialport command. My goal is to connect a device - in my case a water cooling system - with Matlab to communicate and later on to create a GUI. To communicate I have used the serialport command . The creation of the serialport object was fine, but the problem ist that I only can send one command (in ASCII code) with the writeline command. This first command gets executed correctly and I can read the answer from the device. But when I send another command to the device it will not get executed anymore and reading the answer is also not possible. In a terminal program- in my case hTerm - everything works fine. The settings for my serialport object are:
I'm not sure what the last six properties are in detail and from the documentaion side I dont really get in to it to be honest. I guess something is wrong with the settings of these properties. Do you have any suggestions what the cause of my problem is?Thanks in advance
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Serial and USB Communication 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!