Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

After making and creating the whole system in matlab can I put it into microprocessor to execute the specified written function and how?

user-image
Question added by Talal Mohammed Omar Bin Taleb , مدير الوحدة المحاسبية , مركز عدن للرصد والدراسات والتدريب
Date Posted: 2016/03/09
ibrahim alfar
by ibrahim alfar , QC-EHS manager , Waseela For Technology Consultation

speaking from experience Converting matlab M file or simulink model to embedded coder wont be efficient. thus the solution is simple create your M file code or simulink model and let Arduino controller works as your I/O unit so your PC will be the Microcontroller this is more efficient . follow this link for more information  (http://www.mathworks.com/hardware-support/arduino-matlab.html?refresh=true)

Vignesh Sr
by Vignesh Sr , research and development engineer , grptechnologies

after the verification of the functionality of the matlab design, we have to convert the matlab data flow system into a electronics design using circuit designing tools even after verification of the similar functionality equivalent to the expected working we have to decide first about WHICH family of micro-controller will perfectly suits for your design like number of ADC, DAC, PWM channels required, then we have to frame a functional frame, then we have to develop the CODE in c, after processing with suitable assembler or IDE tools we can generate a .HEX file which is a HEXADECIMAL bits, then with Relevant PROGRAMMER we need to LOAD the TARGET MICRO-CONTROLLER, after these process we need another functional verification with the developed HARDWARE, then we can see our perfect working of the MATLAB design with the hardware (with micro-controller).

Isvorya S
by Isvorya S , Intern , Indian Institute of Science(IISc)

Yes, we can very well put the matlab code into the microprocessor by changing the code into c language code. We can get the c code from matlab itself, then the rest is taken care by the compiler of the microprocessor.

asad habib
by asad habib , Project coordinator , Ucerd pvt ltd

YES.. WE CAN PUT INTO THE MICROPROSSER BY CHANGING INTO HEX.FILE

zubair bashir
by zubair bashir , Manager , Ministry of Defense

NO, MATLAB code cannot be executed directly in Microprocessor. We have to find the compiler for that particular Microprocessor (e.g. Code Composer for TI's Microprocessors ), which translate the code in C or any other high level language in to low level language and ultimately we have the out file which can be programmed in the memory interfaced with microprocessor.

Abdullah Zahid
by Abdullah Zahid , Testing and Commissioning Engineer , Mabran Al-Arabia Contracting

There is a tool in simulink which you can use to program your arduino micrcontroller. the newer version of MATLAB allows you to convert you MATLAB code to Embedded C code, but code conversion may not be always efficient.

Sohaib Usmani
by Sohaib Usmani , Intern , SCI Lab H-12 NUST Campus Islamabad.

You can use Matlab encoder to get C code. Then you compile it for any microcontroller 

yes, we can put it into MIcroprocessor by connecting it to I/O port and select that special port in MATLAB through programming for communication.

yes .. we will have to convert the program into hex file

Anuraj S
by Anuraj S , Jr.Embedded Engineer , Ronics Labz

Yes, by converting it into hex file.

Rafael G. Campos
by Rafael G. Campos , Full Professor of Mathematics and Physics , Universidad Michoacana de San Nicolas de Hidalgo

Yes. You have to put your code as an integrated physical circuit.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.