From: Kostas on 13 May 2010 11:55 Alec Rogers <alec.rogers(a)mathworks.com> wrote in message <hk98o2$glu$1(a)fred.mathworks.com>... > > Hi Muhammad, > > Using the EML block, you could use code similar to the following: > > function fcn(u) > %#eml > eml.extrinsic('image'); > persistent h; > > if isempty(h) > h = image(u); > else > set(h, 'CData', u); > drawnow; > end > > There is a lot of good information about using that block (and other > user-defined Simulink blocks) in the documentation. In order to display > the image in the correct axes, you'll want to consult the documentation > pertaining to Handle Graphics. > > Regards, > -alec > > > Muhammad Hafizuddin wrote: > > Hai Alec... > > Thanks for reply... > > > > i'm not familiar with S-function in matlab... can u explain me in > > detail? or can u provide any page/website for my reference?... look at > > ur coding, is it we replace To Video Display with another Function > > block? or just add that coding under GUI? > > > > Thanks.. > > > > Alec Rogers <alec.rogers(a)mathworks.com> wrote in message > > <hk710q$1vr$1(a)fred.mathworks.com>... > >> Hi Muhammad, > >> > >> There is no way to embed a To Video Display block in another GUI. > >> > >> Your best bet would be to write your own S-function (e.g. use the Fcn > >> block) to update the cdata of the image in your GUI: > >> > >> h = image(255*rand(100)); > >> > >> Then, at each time step: > >> > >> set(h, 'CData', 255*rand(100)) > >> > >> Regards, > >> -alec > >> > >> Muhammad Hafizuddin wrote: > >> > Hai.. > >> > i have some problem during handle the To Video Display blocks. That > >> > problems is how to insert video from To Video Display into my > >> customs > GUI. For your references i attach this link that contain > >> picture about > this... > >> > > http://www.haffiezz.com/matlab/Capture.JPG > >> > > this is my final project and i hope those read this msg and known > >> that > solution can help me... Hi Alec, And if we want to send the video to a specific GUI at a specific position?
From: Kostas on 14 May 2010 08:17 "Kostas " <kosotiro(a)yahoo.gr> wrote in message <hsh7d6$r74$1(a)fred.mathworks.com>... > Alec Rogers <alec.rogers(a)mathworks.com> wrote in message <hk98o2$glu$1(a)fred.mathworks.com>... > > > > Hi Muhammad, > > > > Using the EML block, you could use code similar to the following: > > > > function fcn(u) > > %#eml > > eml.extrinsic('image'); > > persistent h; > > > > if isempty(h) > > h = image(u); > > else > > set(h, 'CData', u); > > drawnow; > > end > > > > There is a lot of good information about using that block (and other > > user-defined Simulink blocks) in the documentation. In order to display > > the image in the correct axes, you'll want to consult the documentation > > pertaining to Handle Graphics. > > > > Regards, > > -alec > > > > > > Muhammad Hafizuddin wrote: > > > Hai Alec... > > > Thanks for reply... > > > > > > i'm not familiar with S-function in matlab... can u explain me in > > > detail? or can u provide any page/website for my reference?... look at > > > ur coding, is it we replace To Video Display with another Function > > > block? or just add that coding under GUI? > > > > > > Thanks.. > > > > > > Alec Rogers <alec.rogers(a)mathworks.com> wrote in message > > > <hk710q$1vr$1(a)fred.mathworks.com>... > > >> Hi Muhammad, > > >> > > >> There is no way to embed a To Video Display block in another GUI. > > >> > > >> Your best bet would be to write your own S-function (e.g. use the Fcn > > >> block) to update the cdata of the image in your GUI: > > >> > > >> h = image(255*rand(100)); > > >> > > >> Then, at each time step: > > >> > > >> set(h, 'CData', 255*rand(100)) > > >> > > >> Regards, > > >> -alec > > >> > > >> Muhammad Hafizuddin wrote: > > >> > Hai.. > > >> > i have some problem during handle the To Video Display blocks. That > > >> > problems is how to insert video from To Video Display into my > > >> customs > GUI. For your references i attach this link that contain > > >> picture about > this... > > >> > > http://www.haffiezz.com/matlab/Capture.JPG > > >> > > this is my final project and i hope those read this msg and known > > >> that > solution can help me... > > Hi Alec, > And if we want to send the video to a specific GUI at a specific position? I mean that I have already constructed a GUI that communicates with a simulink model and changes its parameters. This simulink model is used to implement a DSP algorithm for video compression on DM6437 target and I want inside my GUI to see the input video and the output (compressed) video taken back from the DSP board. How can I take the output of the two Video Display blocks from simulink model? I would appreciate your help very much. Thanks beforehand, Alec
|
Pages: 1 Prev: Using a large predefined matrix with Matlab Compliler Next: Help with fft and ifft |