Error with Vsim command

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

Kaustubha Govind
Kaustubha Govind 2011년 9월 30일
What is the output of this command when you run it in MATLAB:
[s, fullver] = system('vsim -version')
Nguyen The Man
Nguyen The Man 2011년 10월 1일
this is result of this command
s =
0
fullver =
Model Technology ModelSim ALTERA STARTER EDITION vsim 6.6c Simulator 2010.08 Aug 24 2010

댓글을 달려면 로그인하십시오.

답변 (2개)

Nguyen The Man
Nguyen The Man 2011년 9월 30일

0 개 추천

I know that, but how i solve this problem? I can't edit that file, and I don't know what i must do with that file. Please explain more clearly
Thanks you

댓글 수: 1

Fangjun Jiang
Fangjun Jiang 2011년 9월 30일
I think Walter's answer is probably the solution. Check the document.
http://www.mathworks.com/help/toolbox/edalink/ref/vsim.html

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2011년 9월 30일

0 개 추천

vsim('socketsimulink', '4449')
That is, the socket information must be supplied as a string.

댓글 수: 1

Nguyen The Man
Nguyen The Man 2011년 10월 1일
I tried it... But that errors still happen

댓글을 달려면 로그인하십시오.

제품

질문:

2011년 9월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by