Borrar filtros
Borrar filtros

How can I do non-blocking file I/O in Matlab?

2 visualizaciones (últimos 30 días)
Sietse
Sietse el 31 de Mayo de 2013
I have two matlab programs/functions. One is a loop that does videoprocessing and controls a device via bluetooth. The other is a simple command processor.
If a command is entered in the command processor the information has to be conveyed to the videoprocessing loop, to influence it. But the processing should not halt. I could use a (unix) pipe to do this, but how can I read whether there is information available on the pipe? Do I really need a dedicated mex-function for this, or use the parallel toolbox where I create 2 processes communicating via a shared variable? (I hoped that fopen would have the O_NONBLOCK option, but alas ...)
Thanks for an answer,
Sietse Achterop

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by