---
title: How to Turn The Engine Method from Matlab to Native on MiTS 1 or MES Module
description: "# **Example of Error** User may encounter this error when trying to proceed to analyze the project. ** ** 1. Matlab Error ![image1](https://i0.wp.com/mes100.wpengine.com/wp-content/uploads/2017/05/image1.png?resize=402%2C179&ssl=1) 2. If the Program Fails to Start with an Exception Message ![](https://i0.wp.com/mes100.com/wp-content/uploads/2022/11/image.png?resize=292%2C216&ssl=1) # **1^st Step: Change Engine Method,…"
url: "https://mes100.com/docs/turn-engine-method-matlab-native/"
updated: "2022-12-05"
category: Troubleshooting / General
---

# How to Turn The Engine Method from Matlab to Native on MiTS 1 or MES Module

# **Example of Error**

User may encounter this error when trying to proceed to analyze the project. ** **

1. Matlab Error

![image1](https://i0.wp.com/mes100.wpengine.com/wp-content/uploads/2017/05/image1.png?resize=402%2C179&ssl=1)

2. If the Program Fails to Start with an Exception Message

![](https://i0.wp.com/mes100.com/wp-content/uploads/2022/11/image.png?resize=292%2C216&ssl=1)

# **1^st Step: Change Engine Method, Matlab to Native**

To solve this problem, you may change the engine method used from Matlab to Native. In doing so, you will need to go to

Options >> Parameters >> Analysis >> Engine >> Change from Matlab to Native

*please refer image below for reference

![image2](https://i0.wp.com/mes100.wpengine.com/wp-content/uploads/2017/05/image2.png?resize=875%2C544&ssl=1)

# **2^nd Step: If The Error Still Occur**

After changing the engine method from Matlab to Native, and the error listed [**here**](https://mes100.com/docs/turn-engine-method-matlab-native/#0-toc-title) still occur user may try possible solution below

## **Solution**

### **Firstly, **Remove Matlab cache folder****

The folder, by default it is at %AppData%\Local\Temp\<username>\mcrCache7.17

i. mcrCache7.17 may be named differently depending on the installed version of Matlab compiler runtime

ii. [This is how you can find the %AppData% folder on your machine](https://www.youtube.com/watch?v=d9WcmyKqT0Y).

### **If the** **problem still persists**

Try changing Matlab cache location

i. Create a directory where the location is writable, for example, create C:\mcrcache

ii. Go to Control Panel -> System -> Advanced System Settings -> Environment Variables

iii. Under System variables, add variable name MCR_CACHE_ROOT with the directory path created in the first step as its value

![image1](https://i0.wp.com/mes100.wpengine.com/wp-content/uploads/2017/05/image1-2.png?resize=443%2C511&ssl=1)

### *Related*

 [![](https://i0.wp.com/mes100.com/wp-content/uploads/2024/10/me-small.jpg?resize=100%2C100&ssl=1)](https://mes100.com/author/admin/)[Ngu Soon Hui](https://mes100.com/author/admin/)

I’m the [Benevolent Dictator for Life](https://en.wikipedia.org/wiki/Benevolent_dictator_for_life) for MiTS Software cum Editor of this website. Read more [here](/about-ngu-soon-hui/).

You can also contact me at soonhui@mes100.com
