How to configure modelsim in Matlab?

33 vues (au cours des 30 derniers jours)
Muhammad
Muhammad le 4 Nov 2015
I have installed ModelSim 10.1c in my C directory. Matlab is also installed in the same directory (the installation folder for Matlab and Modelsim are different but both folders are in C drive). I have Simulink Model from which I have generated Cosimulation Model using HDL coder. The problem is that when I click on 'Double Click here to launch Modelsim', I got following error in Matlab command window
'Failed to launch cosimulator with "vsim" Could not find ModelSim executable vsim. Make sure that ModelSim is installed on this machine and its executables are on the system path.'
Can someone tell me how to solve this error?
I have used the following command to open Modelsim from Matlab
'vsim('vsimdir','C:/Modelsim/win64')'...It worked and ModelSim was successfully opened from Matlab...However, from Co-simulation model, it is not opening...
Any help would be greatly appreciated...
  1 commentaire
Amisha Sachindra Patel
Amisha Sachindra Patel le 4 Oct 2020
Hi,
Did you find answer to this? I am facing same problem. If possible could you please help me with this?
Thank you.

Connectez-vous pour commenter.

Réponses (1)

Bharath Venkataraman
Bharath Venkataraman le 7 Oct 2020
Modifié(e) : Bharath Venkataraman le 7 Oct 2020
You can specify the vsimdir property value pair via vsimargs to vsimulink. See this page for details.
You should also be able to add the path to vsim via the setenv function in MATLAB and put vsim on the path when MATLAB invokes ModelSim.
  1 commentaire
Amisha Sachindra Patel
Amisha Sachindra Patel le 7 Oct 2020
Thank you so much. It worked.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by