ni cdaq session very slow when using many modules.

1 visualización (últimos 30 días)
kevin chapman
kevin chapman el 14 de Oct. de 2019
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

Respuestas (0)

Categorías

Más información sobre Simultaneous and Synchronized Operations en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by