ni cdaq session very slow when using many modules.

1 回表示 (過去 30 日間)
kevin chapman
kevin chapman 2019 年 10 月 14 日
i have a system with multiple cdaq chassis and a total of 35 modules, and just adding them to the daq.createSession with obj.addDigitalChannel and obj.addAnalogInputChannel seems to take exponentially longer as i add more. And even after ive managed to add all of my modules, just changing the output state of the modules takes over a minute. this is unusable performance in my opionion. ive profiled my code and found that all the time is in low level matlab classes that are protected and sealed so i cannot overload them. see the graph below showing the time requried to add each module. i only show adding 15 here. this is the time needed to add the next module in seconds. this shows the non linear nature of adding lots of modules to a single session. Im in 2018b. my company doesnt have 2019 yet, but i didnt see anything in the release notes or bug reports that would indicate going to a new version of matlab would fix the problemaddDigitalChannel_timeRequired.jpg

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimultaneous and Synchronized Operations についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by