08-29-2012 11:55 AM
Hi, I have a for loop to test my MOSFET in teststand. It calls the same VI for each iteration. But the measured data is kept overwriting and only the data from the last iteration under the name of the VI is in the database. Anybody can tell me how to solve this problem (e.g. add a variable to the name of VI), so that the data from each iteration will be saved under a different name in database? Thank you very much.
08-30-2012 02:50 PM
Hi Jaon11011,
By default when using database logging the results of each step are saved as separate entries in the database. For the database configuration are you using the Default Schema, Statements, and Columns/Parameters configurations? Also, are you saving your results into the Step.Result.ReportText variable after calling your LabVIEW Code Module?
09-04-2012 11:24 PM
Yes, I am using the default schema, statements, and colums/parameters configurations. and I am saving the results into the Step.Result.Numeric variable after clling the Labview code Module. Is this the reason that the measured data is kept being overwritten after each iteration under the same module name?
Thank you very much
09-05-2012 08:31 PM
Hi Jason11011,
It sounds like Step.Result.Numeric is a custom variable that was added to the application. If you save the value that is returned in the Step.Result.ResultString variable you should see each iteration of the for loop saved in the database. Using the GenericRecordset schema the StepResults will be stored in the STEP_RESULT Statement in the database under the REPORT_TEXT Column/Parameter.