Simulink realtime driver for Advantech PCI-1716

조회 수: 14 (최근 30일)
ammar al jodah
ammar al jodah 2018년 12월 2일
댓글: ammar al jodah 2021년 2월 23일
I have been trying to write an s-function for the above card but without any success. The code compiles correctly, but when I run it on the target computer, it never gave me correct results. The while loop for checking the status never breaks, if I remove it, the output is always 10. I appreciate any help. Thank you.

채택된 답변

ammar al jodah
ammar al jodah 2018년 12월 2일
편집: ammar al jodah 2018년 12월 2일
solved , several bugs where in the orignal program, the while loop needs to have the status read inside, the count read needs to be read in two lines and then combined together.
  댓글 수: 1
ammar al jodah
ammar al jodah 2021년 2월 23일
https://au.mathworks.com/matlabcentral/fileexchange/87694-simulink-realtime-driver-for-advantech-pci-1716-pci-1716l?s_tid=prof_contriblnk
https://au.mathworks.com/matlabcentral/fileexchange/87689-simulink-realtime-driver-for-advantech-pci-1723?s_tid=prof_contriblnk

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

추가 답변 (2개)

XiuZhi Zhang
XiuZhi Zhang 2019년 4월 26일
Hi friend,I also use this card in xpc,And I search the driver for several weeks,would you please send me the whole driver code?
Thank you very much!
My E-mail:zhangxzh17@lzu.edu.cn
  댓글 수: 1
ammar al jodah
ammar al jodah 2021년 2월 23일
https://au.mathworks.com/matlabcentral/fileexchange/87694-simulink-realtime-driver-for-advantech-pci-1716-pci-1716l?s_tid=prof_contriblnk
https://au.mathworks.com/matlabcentral/fileexchange/87689-simulink-realtime-driver-for-advantech-pci-1723?s_tid=prof_contriblnk

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


Douglas Crowder
Douglas Crowder 2020년 2월 17일
Same here, this code would be really helpful! If you could post the final version, that would save many of us :)
  댓글 수: 1
ammar al jodah
ammar al jodah 2021년 2월 23일
https://au.mathworks.com/matlabcentral/fileexchange/87694-simulink-realtime-driver-for-advantech-pci-1716-pci-1716l?s_tid=prof_contriblnk
https://au.mathworks.com/matlabcentral/fileexchange/87689-simulink-realtime-driver-for-advantech-pci-1723?s_tid=prof_contriblnk

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

카테고리

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