detectin that codegen has finished

1 visualizzazione (ultimi 30 giorni)
Bert
Bert il 14 Lug 2012
Is there a way to detect in matab that codegen has finished. The following code does not work because codegen runs asynchronously and has not finished before the call to myfun_mex
>> codegen myfun % generates myfun_mex.mexw64
>> myfun_mex

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 16 Lug 2012
AFAIK, the codegen command is not asynchronous. Perhaps it takes a few seconds for the file system to register the new file? You could try adding a pause(1) command to pause for a second before attempting to run the file (you could experiment with increasing/decreasing the pause time).

Categorie

Scopri di più su Input Specification in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by