Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
Sietse
Sietse il 31 Mag 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

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown 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