Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Using the while iteration block
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all,I have a tank system and would like to use the while iteration block so it runs and writes to file(using the to file block) say every second as i want to read and display this data in Labview every second.Can you assist me with this?It doesnt seem to write continuously to the file block
0 Commenti
Risposte (1)
Kaustubha Govind
il 30 Mar 2012
I explained a little bit here about why I think you cannot expect the "To File" block to write to a file immediately:
"I think the reason that To Workspace blocks don't write the variable immediately it because it is very inefficient for To Workspace/File blocks to write the workspace/disk at every time-step, because these are slow processes than will slow down simulation. My guess is that they maintain a buffer that they write to at every time-step - the data is probably written to the final destination only when the buffer is full."
2 Commenti
Kaustubha Govind
il 2 Apr 2012
Do you mean what you are using File I/O operations in an Interpreted MATLAB Fcn block? Do you open and close the file at every time step?
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!