Hi,
I have simulated a DAC model using Simulink. I have used a 'To Workspace' block at the output which gives me a structure 'DAC_OUT' at the workspace out of which I need two column vectors 'DAC_OUT.time' and 'DAC_OUT.signals.values' as explained later. Now, I have created another Simulink model to evaluate the FFT of a signal, in which I have used 'From Workspace' block to pick up the signal and time values from the workspace (i have written [DAC_OUT.time DAC_OUT.signals.values] in the data field entry of 'From Workspace' block). I have also used an Embedded MATLAB Function block, in which I have embedded a code (an m-file function) to evaluate the FFT of the input signal. However, there are two input arguments of this function (input,time) which means the Embedded MATLAB Func. block will have two input ports (input and time). However, the 'From Workspace' block has only one output port containing both time stamps and signal values corresponding to them (I guess). Now, how do i connect this single output port of 'From Workspace' to two input ports for my Embedded MATLAB function?
Thanks and regards.
Best Answer