MATLAB Answers

Simulink realtime driver for Advantech PCI-1716

10 views (last 30 days)
ammar al jodah
ammar al jodah on 2 Dec 2018
Edited: ammar al jodah on 1 Sep 2020 at 13:50
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.

  0 Comments

Sign in to comment.

Accepted Answer

ammar al jodah
ammar al jodah on 2 Dec 2018
Edited: ammar al jodah on 2 Dec 2018
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.

  0 Comments

Sign in to comment.

More Answers (2)

XiuZhi Zhang
XiuZhi Zhang on 26 Apr 2019
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

  0 Comments

Sign in to comment.


Douglas Crowder
Douglas Crowder on 17 Feb 2020
Same here, this code would be really helpful! If you could post the final version, that would save many of us :)

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!