Thread Subject:
Inlining xlsread function

Subject: Inlining xlsread function

From: Woody Master

Date: 3 Jun, 2012 13:51:07

Message: 1 of 2

Hi,

Is there a possibility to compile a Simulink model (with the RTW) that has an m-file S-function block with xlsread and xlswrite commands?
So far I managed it to get the Simulink model going (that reads from an Excel sheet), but with the RTW a tlc-file is required to inline the S-function block. Does the tlc-file also have to have the xlsread command? What shall I fill in the section "%function Outputs" under "LibBlockOutputSignal" in the tlc-file?

Thanks!

Max

Subject: Inlining xlsread function

From: Phil Goddard

Date: 5 Jun, 2012 03:43:06

Message: 2 of 2

xlsread ans xlswrite are m-code functions that (typically) use COM.
Using them will preclude you from doing code generation to c with either the MATLAB Coder or Simulink Coder.
There is no way around that unless you want to include calls back into MATLAB in the generated code -- which is neither a trivial thing to do, or something that really makes any sense to achieve.

Phil.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Phil Goddard 4 Jun, 2012 23:44:08
rssFeed for this Thread

Contact us