Why does xPC Target not recognize my Measurement Computing PCI-PDISO8 board?
2 views (last 30 days)
Show older comments
In my target PC I have a Measurement Computing PCI-PDISO8 board. This board works fine with the Measurement Computing testing software "InstaCal" under Windows. This board is also listed as a xPC supported PCI device, however, xPC Target fails to recognize the board.
When I run "getxpcpci('all')" I obtain the following result:
List of installed PCI devices:
Bus Slot IRQ Vendor Name Device Name Device Type VendorID DeviceID
0 12 255 ***** ***** Unknown Device 1307 C
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This problem happens due to a mismatch in the DeviceID field. To work around this issue, download and replace the attached zip file which contains both DI and DO driver files and their respective DLLs. Here are the required steps:
1. Quit MATLAB
2. Rename the following files:
$MATLAB\toolbox\toolbox\rtw\targets\xpc\target\build\xpcblocks\dicbpcipdisox.c
$MATLAB\toolbox\toolbox\rtw\targets\xpc\target\build\xpcblocks\dicbpcipdisox.dll
$MATLAB\toolbox\toolbox\rtw\targets\xpc\target\build\xpcblocks\docbpcipdisox.c
$MATLAB\toolbox\toolbox\rtw\targets\xpc\target\build\xpcblocks\docbpcipdisox.dll
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.)
Rename the file to filename.c.old or filename.dll.old
3. Download the attached PDISO8.zip file to a temporary directory. Unzip the PDISO8.zip and extract the new files to the same directory mentioned in step 2.
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolboxcache
Please note that MEX-files generated with one release of MATLAB are not guaranteed (or expected) to work with a different release of MATLAB. This is due to changes that may occur in the MEX-file libraries between releases of MATLAB. The attached DLL files were compiled for xPC Target version 2.7.2 (R14sp2). If you are running an older version of MATLAB you might have to recompile the attached C files to regenerate new MEX-file DLLs compatible with your current MATLAB version. This can be done using the MEX function as follows:
mex myMexFile.c
0 Comments
More Answers (0)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!