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.
MATLAB: Simulink realtime driver for Advantech PCI-1716
Simulink Real-Timexpc pci-1716 simulink realtimexPC TargetBox
Best Answer