MATLAB: Does digital output not work for the NI E series board with xPC Target 2.7.2 (R14SP2)

controldigitalinitializationinputmasknioutputregisterSimulink Real-Timevalues

There is an order dependence between the digital input and digital output for all of the NI E series boards. If the digital output comes first in sorted order, then the wrong value is written to a control register which results in the failure of the digital output to work.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in xPC Target 2.7.2 (R14SP2) in the way that the mask initialization file handles the derivation of control register values for digital input when using the National Instruments Digital Input and Digital Output blocks for E series boards.
To work around this issue, set the block priority to make the Digital Input block execute before the Digital Output.