NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Data stored in locals to report with offline results processing

Solved!
Go to solution

Hi Raphael,

 

If understand well what you are trying to do is that you write into the offline files to perform the synchronisation in the DB when this one is available.

To me, this should happen in the test socket execution. So the Run.Root.Locals should work (so without doubling the Root).

However, I wonder if you set this process to be done in parallel with your execution. If so this might be the source of the problem.

 

Can you check in Configure -> Result Processing if your offline result processor is set to be done in parallel ?

If so, try setting it to be executed at the end of each socket execution.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 11 of 20
(2,673 Views)

Hi CyGa

 

offline processing is run only between 2-3 in the morning when there are no tests active. It is guaranteed to not run during the test.

 

The setup in teststand:

2020-12-08_15-48-43.png

 

Thanks for the input,

Raphael

0 Kudos
Message 12 of 20
(2,668 Views)

The synchonisation tool runs at night. But the files are created each time you run a test socket.

Can you activate the 'Show more options' check box and send me a screen copy ?

 

When activated you should be able to set if that processor runs in parallel or not.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 13 of 20
(2,666 Views)

Hi CyGa

 

this one?

 

2020-12-08_15-57-10.png

 

Thanks, Raphael

0 Kudos
Message 14 of 20
(2,662 Views)

Yes this one.

Set it to No, and re-test.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 15 of 20
(2,659 Views)

Thanks, I set it to no and started the test, it will take until tomorrow to have the results. I will report results here

0 Kudos
Message 16 of 20
(2,662 Views)

Hi CyGa

 

Unfortunately this didn't make the data appear neither in Parameters.UUT.AdditionalData.xy, Logging.UUT.AdditionalData.xy, Runstate.Root.Locals.xy and also not Runstate.Root.Root.Locals.xy.

 

Is there a browser for those files that teststand writes for the offline processing?

0 Kudos
Message 17 of 20
(2,646 Views)

Hi Raphael,

 

I'm not aware of such browser.

This doesn't mean it doesn't exist though.

 

I'm not sure to understand really what's happening here, and I'm not sure I fully understand your use case.

To me the offline file should be populated with all necessary values and their origin at the test time.

 

Then the synchronisation tool, when processing the files, should only read them and push the data back to the linked DB.

I don't understand why the tool is complaining about a missing variable : of course this variable is not availabe at processing time in TestStand. But it should be available within the offline file !

 

I'm afraid I can't help much... You should maybe contact NI's support !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 18 of 20
(2,639 Views)

Hi CyGa

 

I have scheduled a call with NI for tomorrow since I am working on this with support for a while. In the meantime I found yet another solution:

 

https://forums.ni.com/t5/NI-TestStand/Log-Additional-Result-to-Specific-Column-in-Database/td-p/3615...

 

I am testing this at this moment and will update this thread with the status.

 

Thanks!

0 Kudos
Message 19 of 20
(2,634 Views)
Solution
Accepted by topic author raphael.wittwer

Hello Forum

 

it works!!

 

The missing piece of the puzzle was that the contents of RunState.Root.Locals.UUT.AdditionalData is moved to Logging.UUT.AdditionalData.

 

The data is written in a Statement in the main Sequence: RunState.Root.Locals.UUT.AdditionalData.SetValNumber("CMUVoltageDelta",1,Locals.CMUVoltageDelta)

 

And read in Offline Processing:

Logging.UUT.AdditionalData.CMUVoltageDelta

 

Thanks for all the help!

Raphael

Message 20 of 20
(2,590 Views)