NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get value of Database options-->datalink at Test stand 2010

At one of my sequence file i, I need to get the string value at   "configure>> DatabaseOptions>>datalink>>connectionstring expression" , bu I could not find the proper function at the Teststand API.  

Is it possible to get that value? And How can I manege to do that?

 

Note-1:  I could not use "DatabaseOptions" call back to get this information , as a result of some architectural decisions that made before.

Note-2: SEQ file use standart "batch model" at the run time. 

0 Kudos
Message 1 of 3
(2,089 Views)

Hi Ziyasen,

 

There should also be a "LogToDatabase" Sequence within the Batch Model that will have the string you are looking for under Parameters >> Database Options >> ConnectionString.

 

Is this something you can use, or is this not available due to the aforementioned architectural decisions, as with the DatabaseOptions call back?

 

Best,

Tyler C.
Technical Support Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,063 Views)

Hi Tyler,

Unfortunately, I could not use database options callback, as you know at the the batch model first "get model options" is called than after a while "get report options" and " get database options" is called, in order.

So the data link info is not ready until  get database options is executed, but what I need is, to get database data link info at the "get model options" phase. 

 

I need to read "UUT number" from corparate database by using "data link path" and update correctly "paramaters.modeloptions.numtestsockets", accordingly. And then required number of batches will start to run by using test stand batch model, and so on...

 

 

 

 

0 Kudos
Message 3 of 3
(2,057 Views)