Can I use the NI-DAQ library in my S-Function with Real Time Windows target?
I want to acquire real-time data from an optical encoder using my National Instrument PCI 6602 card. I wrote a working C programm in Visual C++. After that, I used the S-Function and tried to run it in Real-time Windows Target in Simulink. it works ok when it's in the 'normal' mode. however, when I run it in the 'external' mode, the entire PC crashes and auto reboots. Why won't my programm run in 'external mode'?
Best Answer