NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging.StepResult.TS.StepType for NUmericLimitTest is NULL

I'm using TestStand's build in logging feature to write results to a database.  My problem is that the "name" field of the MEAS_NUMERICLIMIT table is empty for test steps that are of the type "NumericLimitTest".  I want this set to the name of the test step in this case but all the variables that should have the name are set to NULL for a NumerLimitTest.  These include:

 

NameOf(Logging.StepResultProperty)   (This is the normal value the name field is set to)

Logging.StepResult.TS.StepType

 

 

I need two things:

1. The variable containing the name of the step when its a NumericLimitTest type.

2. The variable containing the type of step.   Logging.StepResult.TS.StepType can't be used because it's NULL when the test step

is a NumerLimitTest type.

 

 

Can someone help?

 

Thanks

 

 

 

0 Kudos
Message 1 of 5
(3,928 Views)

I've done more experimenting with TestStand, and tried the following.  Both failed.  It looks like the database logging code does not fill out the  name field when the test is a NumerLimitTest type.

 

Expression to set the value of the name field: Logging.StepResult.TS.StepType == "NumericLimitTest" ? Logging.StepResult.TS.StepName : NameOf(Logging.StepResultProperty)

Result:  NULL

 

 

Expression to set the value of the name field: Logging.StepResult.TS.StepType == "NumericLimitTest" ? "A" :"B"

Result:  NULL

 

Expression to set the value of the name field: Logging.StepResult.TS.StepType

Result:  NULL

 

 

 

 

 

0 Kudos
Message 2 of 5
(3,927 Views)

Mike,

 

What version of TestStand are you using? Also are you using a custom step type named NumerLimitTest, or the NumercLimitTest provided with TestStand?

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 3 of 5
(3,871 Views)

Hi Richard:

 

I am using TestStand Version 3.1 and TestStand's NumericLimitTest type.

 

Mike

0 Kudos
Message 4 of 5
(3,867 Views)
Mike which database are you logging to? Can you try going into your statements tab of your database options and selecting STEP_NUMERICLIMIT and click the down button until it is the last statement in the schema, and let me know if that makes a difference. If you're using the default schema, it has two statements that log to the MEAS_NUMERICLIMIT table. To help TestStand correctly generate automatic SQL code to create the table in Access, you must list the Meas_NUMERICLIMIT statement before the STEP_NUMERICLIMIT statement because the MEAS_NUMERICLIMIT statement has more colums than the STEP_NUMERICLIMIT statement.
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 5 of 5
(3,847 Views)