filesystemwatcher addlistener handles in base workspace

1 visualización (últimos 30 días)
Victor Lim
Victor Lim el 19 de Feb. de 2015
I have a filesystemwatcher that is watching a log file using addlistener. The log file contains the location of other files that will need to be monitored using addlistener. To get the secondary filesystemwatcher's to work correctly with addlistener I had to use assignin to save the listener handle to the base workspace with each secondary listener handle having a different variable name. This appears to work but I am surprised that it is necessary to have all of the handles exist in the workspace. What am I not understanding? I am using R2014b.

Respuestas (0)

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by