필터 지우기
필터 지우기

reading messages over serial port

조회 수: 2 (최근 30일)
marleen_ade
marleen_ade 2020년 3월 12일
댓글: Walter Roberson 2020년 3월 12일
I have a matlab executable program running on a PC, where at the same time an application is running which monitors a UPS device feeding the PC. The communication between this app and the UPS device happens over a serial port. I wish to monitor this communication from within my matlab program to find out when battery mode is activated, so as to shut down all operations on the PC as well as the PC decently in that case. Since the port is already in use, it is not possible to open and configure it in the matlab program. How can I monitor nevertheless the communication?
I did download a separate tool which is capable of doing this. This allowed me to reverse engineer the messages and determine how the battery operation mode is signalled. Question now is how to do this in matlab? If possible of course. Anyone has done this before?
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 3월 12일
There just might be a way to use a .NET Assembly to do this, maybe. Not that I could name one at the moment.
I see that https://sourceforge.net/projects/realterm/ mentions having an ActiveX/COM interface for monitoring.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by