NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Only specific results in database

How would one limit database results to only record the results from specific tests -

i.e. all those NI steps that have the word 'Test' in them (i.e. Pass / Fail Test; Numeric Limit Test etc.) ?

 

Thanks,

 

Ronnie

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 5
(3,523 Views)

In the reporting options you can filter by an expression. Configure » Report Options. Under the contents tab, enable include step results. Select your report format as HTML report, you can then enter in a custom result filtering expression. If you did not want to get any of your steps that started with NI_Flow then you could put this into the box:

 

 

Left(Result.TS.StepType, 7) != "NI_Flow"

 

 

Result.TS.StepType will return the name of the step type. (action, pass/fail test, numeric limit test )  so you could filter doing something like  Right(Result.TS.StepType, 4) == "Test" though i haven't hand a chance to test this out, this would be one way to only record items that are tests. 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 5
(3,502 Views)

Richard,

 

Sorry to take so long to acknoweledge your reply.

 

You mentioned that I should select HTML and use a filter expression from Configure Results.

I really want to filter for an Access database, so I am trying to use a Result Filtering Expression in the Database Options.

 

Following your example:  Right(Result.TS.StepType, 4) == "Test"

 

gives the error of "Unknown variable or property name 'Result' "

Any ideas?

 

Thanks,

 

Ronnie

 

Message Edited by Believer on 03-11-2010 08:32 PM
TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 5
(3,474 Views)

The context in the database options appears to be different. Going under database options and selecting the expression browser for the Result Filtering Expression shows that to ignore the flow control VIs for the database, you would need to use

 

Left(Logging.StepResult.TS.StepType, 7) != "NI_Flow"

 

 

 

so use  Logging.StepResult.TS.StepType instead of Result.TS.StepType

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 4 of 5
(3,461 Views)
Another option would be to go to the properties tab of any step then Run Options and uncheck the box that says Record Results.  However, this will also affect your report output.
Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 5 of 5
(3,440 Views)