For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > Data transfer between C-Mex S-functions ...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Data transfer between C-Mex S-functions ...
vdiesl

2005-12-17, 7:05 pm

Hi,

Firstly I'd like to store data resulting from S-function calculations

S-function A is performing calculations which results are stored in :
1/ Matlab WorkSpace
2/ Model WorkSpace
3/ S-function UserData

Question 1 : Could you describe (shortly) the way to do those 3
operations ?

Secondly I'd like to read previously stored data (in another
S-function)
S-function B needs those data to perfom its calculations.

Question 2 : How could B access data previously stored by A (in the 3
cases) ?

Question 3 : What's the most efficient way to perform this Write/Read
operation (1, 2 or 3)

P.S.: I can't use I/O of (S-function) blocks to exchange those data
(cell arrays, n-D matrix, structures ...)

Thanks in advance !
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com