Azzera filtri
Azzera filtri

How to update waitbar from .net function call?

1 visualizzazione (ultimi 30 giorni)
Scott
Scott il 7 Mag 2013
Hi,
I'm using 2009b on a isolated network so I can't easily post code.
I have a GUI that calls a .Net function. The .Net function loads a large file and can take 20+ seconds. During that time, I want to update the user with a waitbar. I understand how to update a waitbar in a Matlab loop, but I don't know how to make that work when Matlab is blind to the progress.
I was thinking I could use multithreading and have one thread call NET_read_file and a different thread (in a loop) call NET_get_progress until the file was completely read in.
Is there a way to get the same result without the Parallel Computing Toolbox or is there an easier way I haven't thought about?
Thanks in advance.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by