xPC target toolbox

조회 수: 4 (최근 30일)
Teo Samuel
Teo Samuel 2012년 2월 29일
Hi all,
I would like to ask why the sensory 526 DA (digital to analogue) block under the xPC target toolbox can only be used one at a time in a simulink workspace?? Error will occur stating that only one DA block can be used when I tried to insert two or more relevant block into the simulink workspace and run the real time execution.
If this is the case, then how can I design a block digram representing my system with multiple sensors in the same simulink file?? Doesn't make sense right if I seperated the block diagram into different simulink files in order to avoid placing two or more DA blocks in the same simulink file.
Please help. This is urgent. Thank you very much.
Regards
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 3월 1일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Teo Samuel
Teo Samuel 2012년 3월 8일
Hi Miss Govind,
Thanks for the reply. I have already solved the problem. Sorry for the harsh word that I have used. Thanks again.

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

채택된 답변

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2012년 3월 1일
Though you have to use a single block, you can enter a vector of numbers in the "channels" parameter of the block mask that chooses channels for you, as indicated in the documentation.
The choice of whether you can use one block or many is often dictated by the hardware; I don't know for sure, but I would guess the hardware requires accessing some registers common to all channels, which makes splitting code up into different modules difficult.
  댓글 수: 1
Teo Samuel
Teo Samuel 2012년 3월 8일
Hi, thanks a lot, I have solved the problems by setting multiple channels in a single block. I guess this is what you mean right?
Thanks.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by