Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Initializing IMPLAY from Matlab Code

Subject: Initializing IMPLAY from Matlab Code

From: Michael

Date: 21 Jun, 2010 08:41:05

Message: 1 of 2

I have an application where I would like to initialize and update an 'implay' video player from matlab code. Thus far, I have the following code for initializing the movie player:

implay1 = implay
set(implay1.DataSource.LoadExpression,'mlvar','dat1')
implay1.DataSource.LoadExpression.importBtnClicked

The problem is that when this code is executed, the movie player does not update. Instead, I must physically go to the File menu of the implay window and click on "import from workspace", then click on the variable and click 'update'. Once I do this once, I can use the above lines of code and they work well for updating the player if the 'dat1' variable changes. What must I change in the initial creation of the window to have the data load automatically?

Subject: Initializing IMPLAY from Matlab Code

From: Patrik Andersson

Date: 29 Sep, 2013 10:15:07

Message: 2 of 2


Hi,

A very late addition to to the thread but....
Did you ever find out how to solve this?

Patrik


"Michael " <michael.canney@gmail.com> wrote in message <hvn8j1$l0v$1@fred.mathworks.com>...
> I have an application where I would like to initialize and update an 'implay' video player from matlab code. Thus far, I have the following code for initializing the movie player:
>
> implay1 = implay
> set(implay1.DataSource.LoadExpression,'mlvar','dat1')
> implay1.DataSource.LoadExpression.importBtnClicked
>
> The problem is that when this code is executed, the movie player does not update. Instead, I must physically go to the File menu of the implay window and click on "import from workspace", then click on the variable and click 'update'. Once I do this once, I can use the above lines of code and they work well for updating the player if the 'dat1' variable changes. What must I change in the initial creation of the window to have the data load automatically?

Tags for this Thread

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.

Contact us