NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging Database by UUT result Passed/Failed into two mdb file

Hi,

 

I'm newbie in teststand, so may I know is there any way to log my database according to UUT result Passed/Failed into two different mdb file, which one will collect all the info for UUT with Passed Status and another for Failed status. Is it by editing the schema of database or any other method?

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

Yes this is possible but it will take some customization of your sequence file (or process model). You need to modify both the connection object and the connection string. Here is an example.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 4
(3,282 Views)

On second thought, altering the schema may be much easier that my previous suggestion.

 

In the Result Processing dialog, you can create two database logging instances - one for each database. Then create a schema for each database and modify the Precondition for UUT Result:

Capture.PNG

 

If UUT-Result isn't logged, the other tables shouldn't be either. Using preconditions Logging.UUTResult.Status == "Passed" and Logging.UUTResult.Status != "Passed", should work for your pass/fail conditions.

 

Note that you will need to enable both of the instances:

Capture2.PNG

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 3 of 4
(3,260 Views)

Hi,

Thanks a lot for your kind reply, I'll try then come back later. Goodday.

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