From: Brad on
I haven't gotten this error before so it's a totally new one. I don't recall making any changes since getting this error so I'm really confused. Here is the error:

Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds.
Use 'mex -setup' to select a supported compiler.

Any help would be appreciated.

Thanks,
-Brad
From: Arnaud Miege on

"Brad " <brad.lutz(a)nrel.gov> wrote in message
news:ha0gbm$f04$1(a)fred.mathworks.com...
>I haven't gotten this error before so it's a totally new one. I don't
>recall making any changes since getting this error so I'm really confused.
>Here is the error:
>
> Unable to locate 'mexopts.bat', and therefore cannot determine which
> compiler to use for simulation builds.
> Use 'mex -setup' to select a supported compiler.
>
> Any help would be appreciated.
>
> Thanks,
> -Brad
>

I sounds like you are trying to run your model in accelerator or rapid
accelerator mode. Change back to normal mode, or if you want to use the
accelerator modes, run mex -setup as the error message suggest.

More details in the documentation:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f0-22210.html

HTH,

Arnaud


From: Brad on
> I sounds like you are trying to run your model in accelerator or rapid
> accelerator mode. Change back to normal mode, or if you want to use the
> accelerator modes, run mex -setup as the error message suggest.

It is set to "Normal" currently so that isn't the issue. I ran "mex -setup" and get this

--------------

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:

[0] None

Compiler:

--------------

Not sure where to go next.

-Brad
From: Arnaud Miege on

"Brad " <brad.lutz(a)nrel.gov> wrote in message
news:haj1k3$48b$1(a)fred.mathworks.com...
>> I sounds like you are trying to run your model in accelerator or rapid
>> accelerator mode. Change back to normal mode, or if you want to use the
>> accelerator modes, run mex -setup as the error message suggest.
>
> It is set to "Normal" currently so that isn't the issue. I ran
> "mex -setup" and get this
>
> --------------
>
> Would you like mex to locate installed compilers [y]/n? y
>
> Select a compiler:
>
> [0] None
>
> Compiler:
>
> --------------
>
> Not sure where to go next.
>
> -Brad
>

Hmmm, do you have any Stateflow charts or S-functions in your model? Which
platform are you running on? Which release? On windows 32-bit, MATLAB ships
with lcc, so it should at least be able to detect that.

Arnaud