Simulink realtime driver for Advantech PCI-1716

12 Ansichten (letzte 30 Tage)
ammar al jodah
ammar al jodah am 2 Dez. 2018
Kommentiert: ammar al jodah am 23 Feb. 2021
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.

Akzeptierte Antwort

ammar al jodah
ammar al jodah am 2 Dez. 2018
Bearbeitet: ammar al jodah am 2 Dez. 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.
  1 Kommentar
ammar al jodah
ammar al jodah am 23 Feb. 2021
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

XiuZhi Zhang
XiuZhi Zhang am 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
  1 Kommentar
ammar al jodah
ammar al jodah am 23 Feb. 2021
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

Melden Sie sich an, um zu kommentieren.


Douglas Crowder
Douglas Crowder am 17 Feb. 2020
Same here, this code would be really helpful! If you could post the final version, that would save many of us :)
  1 Kommentar
ammar al jodah
ammar al jodah am 23 Feb. 2021
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

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by