MATLAB: Do I not receive an output voltage from the PD2-AO-16/16 board in xPC Target 2.7.2 (R14SP2)

aod/apd2pd2-ao-16/16Simulink Real-Timeueixpc

I am using my Simulink model to output a voltage through the PD2-AO-16/16 board via xPC Target. This worked fine in R13SP1; however, in R14SP2, I receive no output voltage from the board.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in xPC Target 2.7.2 (R14SP2) in the way that the United Electronic Industries (UEI) PD2-AO series board driver in the D/A UEI sublibrary displays no output. To work around this issue, perform the following steps:
1. Quit MATLAB.
2. Rename the following files in:
$MATLABROOT\toolbox\rtw\targets\xpc\target\build\xpcblocks\daueipd2aox.c
$MATLABROOT\toolbox\rtw\targets\xpc\target\build\xpcblocks\daueipd2aox.dll
(where $MATLABROOT is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the command window).
Rename the files to
daueipd2aox.old.c
daueipd2aox.old.dll
3. Download the two attached files. Place them in the directory mentioned in step 2.
4. Restart MATLAB.
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolbox;
Related Question