Why I get a error when I build Simulink example for EV3

1 view (last 30 days)
I checked MATLAB is well connected with EV3,use h = legoev3('wifi','192.168.0.101','001653450ca3')
h =
legoev3 with properties:
FirmwareVersion: 'V1.09E'
HardwareID: '001653450ca3'
IPAddress: '192.168.0.101'
CommunicationType: 'WiFi'
BatteryLevel: 100
ConnectedSensors: {'' '' '' ''}
Set Hardware board: LEGO MINDSTORMS EV3 Set IP address: 192.168.0.101 Click OK button. Then click Deploy to Hardwear button It diplay build error like below:
=== Build (Elapsed: 44 sec) === The location provided() is either empty or does not exist The location provided() is either empty or does not exist Warning: Unable to add configuration ev3, error: Failed to open the configuration "C:\MATLAB\SupportPackages\R2015b\legomindstormsev3\toolbox\realtime\targets\ev3\registry\ev3.m". The 'spPkg' input argument must be a valid support package object. Error: Error during code generation: Struct contents reference from a non-struct array object.
Error in realtime.internal.getLEGOEV3Root
Error in tlc_c (line 179)
rtwgen(modelName, ...
Error in coder.internal.ModelBuilder/make_rtw (line 633)
[buildResult, profilingInstrumentationData] = tlc_c(h,...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
Error in make_rtw (line 18)
buildResult = h.make_rtw(varargin{:});
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
Error in slbuild (line 61)
sl('slbuild_private', mdl, varargin{:});
Error in coder.internal.simulinkcodermenus

Answers (0)

Categories

Find more on LEGO MINDSTORMS EV3 Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!