NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop

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.

0 Kudos
Message 1 of 4
(3,483 Views)

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?


Milan
0 Kudos
Message 2 of 4
(3,459 Views)

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

0 Kudos
Message 3 of 4
(3,429 Views)

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.


Milan
0 Kudos
Message 4 of 4
(3,407 Views)