MATLAB: Do I receive an “Invalid MEX-file” error message when I try to run the CAN channel model, in Vehicle Network Toolbox 1.6 (R2012a)

canchannelmexvectorxldriverlibraryobjectvehicle network toolbox

I have a model file that uses CAN communication channels. It includes send, receive, and configuration blocks.
When I try to run my model, I receive the following error message:
 
"Unable to query hardware information for the selected CAN channel object.
Invalid MEX-file 'C:\Program Files\MATLAB\R2012a\toolbox\vnt\vnt\mexVectorXLDriverLibrary.mexw64': The specified module could not be found."

Best Answer

This error message can occur for the following reasons:
1) There is no valid CAN device or driver installed. Please see the following links for information on installing valid software drivers and for a list of compatible hardware devices, respectively:
2) The CAN blocks in the model are not configured correctly. Please verify the following:
- The model should contain a CAN Configuration block that has a valid CAN device or virtual channel selected (the CAN channel device name should appear on the block itself).
- All of the CAN Transmit and CAN Receive blocks should have a CAN channel selected that corresponds to a channel from a properly configured CAN Configuration block somewhere in the model. In other words, it is necessary to individually click on each CAN communication block and select a valid CAN channel/device from the device drop-down menu. The CAN device channel name should appear on each of the CAN Transmit/Receive blocks if they are configured correctly.