cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically "install" result processing configuration?

SOLVED
bienieck
Active Participant
Solved!

How to programmatically "install" result processing configuration?

I would like to create a tool (it could be a sequence file) that will programmatically create a new result processing configuration and add a new plugin to it. How can I accomplish this?

 

I see potentially useful functions in modelsupport2.dll but even with ResultProcessing.c file I can't figure out how to do this.

 

The tool will be used to install custom plugins without deleting the current configuration.

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.
5 REPLIES 5
RaviShrigiri
Active Participant

Re: How to programmatically "install" result processing configuration?

Hi,

 

Please have a look at this example :

C:\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Examples\Customizing Result Processing\Model Plugin - Basic Step Time Report

 

I think this does the same thing that you are planning to do. 

 

Ravi

 

bienieck
Active Participant

Re: How to programmatically "install" result processing configuration?

It is not exactly what I need. It shows how to add a plugin to the current configuration using AddResultProcessingToConfiguration the function but doesn't show how to add a new configuration. I guess I will have to alter the configuration file using PropertyObjectFile object.

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.
RaviShrigiri
Active Participant

Re: How to programmatically "install" result processing configuration?

Message contains a hyperlink

Hi,

 

Please check the comments from James Grey in the end :

https://forums.ni.com/t5/NI-TestStand/Add-Configure-a-result-processing-entry-programatically/td-p/4...

 

 

You can create a config file which has no plugins ( delete all plugins and save the .cfg file).

 

At start you can overwrite  this empty.cfg file over the existing file.So now results config file has no plugins.

 

Then add plugin programmatically.

Also refer :

https://www.ni.com/docs/en-US/bundle/teststand/page/programmatically-updating-a-configuration-fil.ht...

 

Hope this helps.

 

Ravi

bienieck
Active Participant
Solution

Re: How to programmatically "install" result processing configuration?

Message contains an attachment

If it helps someone, attached is the starting point and tips on how to approach it.

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.
Raf@Tecnora
Member

Re: How to programmatically "install" result processing configuration?

Hello Michał

 

would it be possible for you to post the sequence in TS2022 format?

 

Thank you

 

Raffaello