Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
What are the timings for xPC Target I/O
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm driving an inverter with digital outputs from my target PC, however I'm a bit unsure of how the timing is working. I suppose that at the beginning of the sample period, the analog inputs are read, with which the digital outputs are computed. Are these applied to the outputs as soon as the computation is complete, or when the sample period is over?
댓글 수: 0
답변 (1개)
Rajiv Ghosh-Roy
2013년 12월 6일
For both the analog and digital signals, the actual reading/writing is done in the block; so this happens when the block executes.
For instance, let's say you have a sample time of 0.1 seconds, and your model execution takes a very short time (< 1 ms). This means that both the analog read and digital write will happen within that first 1 ms.
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!