NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Database Data Operation Step Browse Expression

Hello Community,

 

I am using Database Steps in my PostUUT Callback.

I am having trouble figuring out how to get the value expression for certain results in my Data Operation Step.

 

For example, the UUT Serial Number has the value expression Parameters.UUT.SerialNumber.

However, I can't find certain value expressions, such as Low Limit, High Limit, and Units.

When using a Schema I know the expression for Low_Limit value to log can be done with Logging.StepResult.Limits.Low with the precondition Logging.DatabaseOptions.IncludeLimits.

How does one get the value for these results using the Data Operation Step?

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

Hi MechUnit,

 

What exactly are you trying to achieve? I see the Low and High limits in your image -- I'm confused as to how those relate to what you're looking for. 

Sunayna R.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,797 Views)

I am trying to complete my database logging through Database Steps instead of my Database Schema.

When using the database schema I need the result processing enabled for the Database and, while it is enabled, every sequence file I run is going to try and log data to the database.

When using database steps I can keep my database logging to specific sequence files that I want.

 

Now the issue that I am having with the database steps is that I don't know the expression to write inorder to log my value.

For instance,

Using Database Schema to log PROP_NUMERICLIMIT.LOW_LIMIT the precondition is "Logging.DatabaseOptions.IncludeLimits" and value to log is "Logging.StepResult.Limits.Low".

Using Database Data Operation Step to log the LOW_LIMIT I only have an expression line for value (seen in first picture) and I don't have access to "Logging.".

Where do I find the expression for that value?

Do I need to make anything global inorder to have access to the result?

 

Attached is a new picture from my report that shows what I am trying to log using the Data Operation Step.

0 Kudos
Message 3 of 4
(3,766 Views)

Hi MechUnit,

 

It looks to me like your overall goal is to ensure that you only have database logging for particular sequences. Instead of trying to recreate the schema using the database steps, it might be easier for you to just disable database logging for the steps you don't want. Here's a great forum post that explains how to do so: http://forums.ni.com/t5/NI-TestStand/Programmatically-disable-result-recording/td-p/3020401

 

Let me know if that helps!

Sunayna R.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,710 Views)