NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging step results question

I'm using the sequential process model which includes database logging. I've modified the database schema and I am using my own insert statement. I'm trying to use the step results logging feature. I have 2 questions\issues I need help on:

First Issue:
I've created an insert statement and specified it to apply to a step result. When I look at my database results table, it appears that I get an extra entry in addition to my step results. I've disabled logging on all steps in my mainsequence except for 1 step so I know I should only see 1 database entry, however I see 2 entries. Even if I disable logging on all steps, I still get a single database entry when in fact I should see nothing. This is strange.

Second Issue:
In the above sql statement I retrieve my step results for each field this way:
Logging.MainSequenceResults.TS.SequenceCall.ResultList[0].CurrentFilepath
Logging.MainSequenceResults.TS.SequenceCall.ResultList[0].VoltageFilepath
Logging.MainSequenceResults.TS.SequenceCall.ResultList[0].VoltageMode
Logging.MainSequenceResults.TS.SequenceCall.ResultList[0].VoltageValue
Logging.MainSequenceResults.TS.SequenceCall.ResultList[0].ResistorValue
However, this is not flexible because if I change the location of the step, then the index will change. Also, if I need to loop on this step it will have the same problem. Is there a way to get this data in a more generic way?


Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 1 of 3
(3,094 Views)
It seems that I resolved my first issue. I added my step type into the "Types to Log" field. This seems to have solved the problem.

I'm still looking on an answer to my second issue. Thanks.


Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 2 of 3
(3,092 Views)
Well, I solved my other issue as well. Smiley Happy

I ended up using:
Logging.StepResult.VariableName

This seems to do it!


Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 3 of 3
(3,087 Views)