NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting 1 or more DB to log to at runtime

We have set up a schema in a Database and are happily logging along.

 

However, we would now like to log to one database every time, and another only when we run specific parts.  In this case they are both MSSSQL databases on the same server, but with different DB names.  I might want to target different servers.

 

How can we do that?

0 Kudos
Message 1 of 4
(1,288 Views)

Have you tried to simply add one more result processing plugin instance and configure it with different names? Then you could use plugin callbacks to enable/disable plugins based on your UUT serial number or something like this.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 2 of 4
(1,238 Views)

@bienieck wrote:

Have you tried to simply add one more result processing plugin instance and configure it with different names? Then you could use plugin callbacks to enable/disable plugins based on your UUT serial number or something like this.


We have both configured in the results processing, and it's updating both.  But I am not sure how I can turn one off with the plugin callback as you suggest.  I haven't really played with the DB callback before though.

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

You can try to use one of those: https://zone.ni.com/reference/en-XX/help/370052AA-01/tsfundamentals/infotopics/pmpclientfilecallback...

 

Let me know if you will struggle with it. I will prepare a simple example next week.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 4 of 4
(1,218 Views)