How to fix a recurring loop within a while loop when dealing with two serial interface devices connected to different COM ports?
이전 댓글 표시
Hello, I am using a while loop to continuously read the data from a vehicle CAN interface real-time. I also have a program that extracts locations from the garmin GPS receiver whenever called within the while loop. I have developed the MATLAB script in the form of an Object-Oriented Programming System (OOPS). The problem is, whenever I call the GPS receiver function to extract the location coordinates when running the 'while' loop for the CAN interface, it keeps looping in the same section. Rather, I would want it to extract locations and begin with the starting of the while loop of the CAN interface.
I assume that it is due to handling two serial communication devices in a single m-file in the format of OOPS. Could anyone help me with this? It's very important for me at the moment.
댓글 수: 2
Nikhil Negi
2018년 5월 31일
Hello Prajwal,
can you provide some more information and atleast the basic skeleton of your code so we can have a better understanding of your problem.
Prajwal Ramakrishna
2018년 6월 2일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!