Problem with 64-bit Matlab/Simulink S-function ports

  • Follow


I'm learning s-function and writing TLC code for simulink and I noticed that 64-bit matlab generates input ports differently/incorrectly in a 64-bit environment.

When I load the s-function from the example provided by matlab in a 32-bit matlab 2009b environment as follows:

[1]
edit([matlabroot,'/toolbox/simulink/simdemos/simfeatures/tlc_c/sfun_multiport.tlc']);
edit([matlabroot,'/toolbox/simulink/simdemos/simfeatures/src/sfun_multiport.c']);

It gives me a block with 3 input ports. 

However, if I try loading up this s-function block in a 64-bit 2009b matlab, it shows 4 inputs!

I noticed a similar behaviour where it is generating an incorrect number of input ports in existing TLC scripts in matlab 2009 64-bit as well.

Has anyone encountered this issue?  Perhaps I have to re-compile the .c s-function file to generate a new mex file?
0
Reply Gerald 1/26/2011 8:42:04 PM


0 Replies
579 Views

(page loaded in 0.011 seconds)

Similiar Articles:













7/24/2012 4:28:45 PM


Reply: