NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CONFIGURE ERROR MESSAGE IN TESTSTAND WHEN RESULTS ARE LOGGED TO ACCESS DATANBASE

I am running teststand 3.5 and using a dll "Corelis Boundary scan dll" and logging the results to a Microsoft 2003 Access database.
When ever an error occurs the default schema logs as below:
UUT_RESULT
UUT_ERROR_MESSAGE
User-defined error code.
 
How can I set this message to relate to the actual test step.
 
Thanks
0 Kudos
Message 1 of 6
(3,609 Views)
Hi AR15,

I need to ask a clarification question to make sure that I am appropriately understanding you.  Am I correct that your goal is to have the UUT_ERROR_MESSAGE field from within the UUT_RESULT table display the error message (if any) from the Step instead of the UUT as it currently does?  The purpose of this table is to relay results of a UUT as a whole so I'm not sure why you'd want to modify the database entry to reflect the error message of a given step in this particular table - after all, what if a test sequence for a given UUT has multiple steps associated with it?  Which step result would you choose to log to this entry?

Are you aware that information about each step, including the Step Error Message, is logged in the STEP_RESULT table? 

Hope this helped!  I look forward to hearing your thoughts.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 2 of 6
(3,567 Views)

Thanks Derrick,

Yes you got me right, I need to have the failed test step name/error in place of the generic "user defined error". This will help me when converting to an excel file to do some production calculations to relate the yield to failed steps.

The sequence is configured to exit at the first failed step,so in this case although a UUT might potentially fail for multiple steps, I am only concerned with the first failure.

 

Many thanks,

Tony Aswad

 

0 Kudos
Message 3 of 6
(3,556 Views)
Hey Tony,

I think your best bet is to set the erroring step's error message field equal to the erroring step's name from within a SequenceFilePostStepRuntimeError callback.   According to my quick tests, this will set the UUT_ERROR_MESSAGE field within the UUT_RESULT table equal to the name of the erroring step, as you desire.

I have attached an example sequence that demos this process.

Hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 4 of 6
(3,533 Views)

Hi Derrick,

 

Many Thanks, it worked fine for me.

Now I can edit a test step to any name and use that name in doing some stats.

 

I am still having another problem with accessing different databases from the same teststand application for different products/client sequences.

I followed the instructions posted for creating a databaseOptions callback but it didn;t work , can you advice.

 

Thanks,

0 Kudos
Message 5 of 6
(3,507 Views)

Tony,

Below I've listed links to the three best documents I know of regarding on-the-fly database switching - am I correct that this is what you're trying to do?  I know you said you already worked through a document regarding a DatabaseOptions Callback - was it one of the ones listed below?

Why don't you give these three documents a shot and post back with details if you're still having trouble.

Logging Different Sequence File Data to Different Databases 
Changing Databases On-The-Fly in TestStand 
Changing the TestStand Connection String at Run-Time 

I hope that these resources help you!

 
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 6 of 6
(3,478 Views)