Error with Vsim command
Ältere Kommentare anzeigen
Hi all,
I need to use Simulink with altera modelsim v6.6c. But when I use command vsim('socketsimulink', 4449), I get errors below
??? SWITCH expression must be a scalar or string constant.
Error in ==> hdlsim>l_GetModelSimLibInfo at 549
switch (lfmVer)
Error in ==> hdlsim at 113
case 'ModelSim', libInfo = l_GetModelSimLibInfo;
Error in ==> vsim at 101
hdlsim(pvpairs{:});
How can I fix this error? I use Matlab R2010a
Thanks a lot!
Best Regards!
2 Kommentare
Kaustubha Govind
am 30 Sep. 2011
What is the output of this command when you run it in MATLAB:
[s, fullver] = system('vsim -version')
Nguyen The Man
am 1 Okt. 2011
Antworten (2)
Nguyen The Man
am 30 Sep. 2011
0 Stimmen
1 Kommentar
Fangjun Jiang
am 30 Sep. 2011
I think Walter's answer is probably the solution. Check the document.
http://www.mathworks.com/help/toolbox/edalink/ref/vsim.html
Walter Roberson
am 30 Sep. 2011
vsim('socketsimulink', '4449')
That is, the socket information must be supplied as a string.
1 Kommentar
Nguyen The Man
am 1 Okt. 2011
Kategorien
Mehr zu MATLAB Cosimulation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!