Error evaluating 'OpenFcn' callback of Virtual Reality Sink Block - not enough input arguments

12 次查看(过去 30 天)
Hi. I am running MATLAB 2017, academic license. I wish to animate some project that I am working on using the Simulink 3d animation.
However, when I double-click the the VR Sink block, I get the popup message
Error evaluating 'OpenFcn' callback of Virtual Reality Sink Block (mask)
not enough input arguments
When I try the command vredit I receive the the error-prompt
Error using vr.edit/createCanvases (line 2610)
Not enough input arguments.
Error in vr.edit/init (line 2570)
createCanvases(obj);
Error in vr.edit (line 181)
init(obj, fname);
Error in vredit (line 22)
vr.edit(get(ww, 'FileName'));
Help is greatly appreciated. By the way, I can open the loader-gui for an empty VR-sink, but I cannot create a new world and if I point to an already existing wrl file, the same prompt shows up when I double-click it again. Also I can simulate the Simulink diagram, including the VR-block, but I get no access to the 3D-world viewer / editor.
  1 个评论
Ronny Landsverk
Ronny Landsverk 2017-4-25
I think the problem was a second-hand toolbox, insisting to be installed in the matlabroot toolbox directory - and hence was able to manipulate some file in the 3D animation toolbox. Or perhaps I did this myself, thinking that I changed a file belonging to the second-hand toolbox. Anyway, I re-installed MATLAB and the problem disappeared.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by