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
2011-9-30
What is the output of this command when you run it in MATLAB:
[s, fullver] = system('vsim -version')
Nguyen The Man
2011-10-1
回答(2 个)
Nguyen The Man
2011-9-30
0 个投票
1 个评论
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
2011-9-30
vsim('socketsimulink', '4449')
That is, the socket information must be supplied as a string.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Cosimulation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!