Thread Subject: Any workaround to use workspace structures in Simulink for xPC Matlab Function block?

Subject: Any workaround to use workspace structures in Simulink for xPC Matlab Function block?

From: Thomas Marullo

Date: 9 Aug, 2011 14:48:29

Message: 1 of 1

I am trying to work a way to take structures generated from my M files that are not always the same format and use them for calculations inside an Matlab Embedded Function Block in Simulink for use with xPC Target. Currently, I am using from workspace blocks to break down the structure variable by variable but this restricts me to knowing the format of the struct initially. I saw a function on the file exchange called v2struct which converts a struct into a variable array and vice versa but it's not compatible with simulink.

Has anyone tackled this type of problem and have been successful?

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
xpc Thomas Marullo 9 Aug, 2011 10:49:32
structure Thomas Marullo 9 Aug, 2011 10:49:32
simulink Thomas Marullo 9 Aug, 2011 10:49:32
v2struct Thomas Marullo 9 Aug, 2011 10:49:32
struct Thomas Marullo 9 Aug, 2011 10:49:32
rssFeed for this Thread

Contact us at files@mathworks.com