09-26-2019 05:56 AM
Hello everybody,
i have a question for checking, if a writing process is complete.
I use the spreadsheet minimal vi to crating an csv file.
In addition i use an current meter for the measurement of a motor current over a shunt resistor. The device creates approximately 2000 measurment values per writing operation. When these values are written in the spreadsheet i want to clear all my values in my array which saves my measurement values.
Has anybody a idea how i can check in conjunction with the spreadsheet VI if the writing process is finised?
thanks in advance for your help
09-26-2019 06:10 AM
Hi DMego,
Has anybody a idea how i can check in conjunction with the spreadsheet VI if the writing process is finised?
Use DATAFLOW to continue your code execution after WriteToSpreadsheetFile has finished!
Use the only output of that file function to enforce dataflow…
09-26-2019 07:54 AM
Use Data Flow (I hope you know what this is -- it is one of the Defining Principles of LabVIEW). The easiest way to do this is to (almost) always use the Error Line. If you have your writes in a loop, and when the loop exits, your "File Close" function, then (by Data Flow) you cannot (and will not) close the file before the writing finishes.
Bob Schor