Is it possible to visualize things happening on a target computer in (close to) real time on the Host?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm using xPC Target to control a robot arm with a joystick. I'd like to plot its location in a 2-D plane (so things that are too complex to plot using xPC target's minimalistic displays) along with some other plots (expected location and things like that) in real-time on a computer other than the target (ideally on the host). I've done something similar before by using UDP to send the data from the target to a C++ program that receives and visualizes the data, but I'd like to be able to use the MATLAB plotting tools and interface. Is there a good way to do this?
댓글 수: 0
답변 (1개)
Rajiv Ghosh-Roy
2014년 2월 28일
If you are looking at instantaneous values, check out the getsignal method of the xpc object. In other words,
tg = xpctarget.xpc
id = tg.getsignalid('My Signal)
val = tg.getsignal(id)
You can then use the value in your plot.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Target Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!