Simulink PIL Block for Arduino Generation Error Looking for Non-Existent DLL: Line 1: Keyword expectedcannot open output file "C:\Daniel\OPTIX.dll:

8 views (last 30 days)
I have a controller block model file I would like to generate a PIL block off of to test it on an Arduino Uno. Going into the controller model, I set the model configuration parameters>hardware implementation>hardware board to Arduino Uno the clicked deploy to hardware. However, I've been getting an error when the PIL block is being generated that says the following:
C:\Daniel\OPTIX - Mobility\Simulation\Rev8\LQRController_DT_ert_rtw>exit /B 0 ### Successful completion of build procedure for model: LQRController_DT ### Creating HTML report file LQRController_DT_codegen_rpt.html ### Creating PIL block ... ### Connectivity configuration for "C:\Daniel\OPTIX - Mobility\Simulation\Rev8\LQRController_DT_ert_rtw": Arduino Board ### ### COM port: COM3 ### Baud rate: 115200 Building with 'lcc-win64'. ### Build procedure for model: 'LQRController_DT' aborted due to an error. Line 1: Keyword expectedcannot open output file "C:\Daniel\OPTIX.dll: Component:Simulink | Category:Block diagram error
I'm not sure what OPTIX.dll is suppose to be. I tried searching for it in the C drive (with all hidden files showing) but couldn't find it. I did have a folder named "OPTIX" under C drive but recently changed the name to "OPTIX - Vision". Could this have something to do with it? The "Daniel" folder also have read and write permission.
I have Simulink Support Package for Arduino Hardware, Matlab2017b, Embedded Coder and Simulink Coder installed.
Please let me know if you have any clues or would require more information to figure this out. Cheers!
<<
>>

Answers (1)

Onur Kapucu
Onur Kapucu on 7 Jun 2018
Edited: Onur Kapucu on 7 Jun 2018
I was getting the same error on 2018a. I solved it removing the spaces in my folder name. In your case, are you running the model inside a "OPTIX abc" folder?
If so, you can try removing the space and making it "OPTIXabc"

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!