Quantcast
Channel: NI TestStand topics
Viewing all 6540 articles
Browse latest View live

Get database connection string from datalink COM object

$
0
0

Hi All,

 

We are using TestStand 4.1.1 with the batch model and the sequential model. The testresults are logged into *.mdb Access files. DUTs are identified with their serial number, each serial number is part of an order which has an ordernumber and holds multiple serial numbers. The filenames of the mdb databases contains the ordernumber. One batch test run can contain serial numbers of different order numbers (not likely but it happens) which need to be logged in the correct according order database files. To accomplish this, the datalink to the mdb database is reset after logging the testresults of each testsocket using the statement:

 

RunState.Execution.TSDatabaseLoggingDatalink_T3=Nothing

 

We have some products that use 16 or more testsockets, logging the testresults of this products takes a long time because for each test and testsocket the database connection is closed and reopened.

 

I want to be able to check which database file is opened at the time and compare it with the ordernumber of the test socket serial number that has to be logged next, if the order numbers are equal, closing the database link is not necessary. Since resetting the datalink object closes the database connection, I thought I could retreive the connection string via this object. Is there a way to get the actual testresult database connection string from this RunState.Execution.TSDatabaseLoggingDatalink_T3 object?

 

I found that the object  RunState.Execution.TSDatabaseLoggingDatalink_T3 is referenced as an IInstrSession COM object. This interface is defined in the file "C:\Program Files (x86)\National Instruments\Shared\Session Manager\NISessionServer.dll", which holds some private classes implementing the IInstrSession interface. Is it possible to track down the actual class of the object and get the connection string in this way?

 

Thanks in advance,

 


Stop the test if one UUT fails in a particual section [batch process model]

$
0
0

Section A is the pretest of a long burn-in test (8-48 hours). In the pretest, various methods are called and if one UUT fails then the whole test should fail and the operator shall remove that failed UUT for further inspection. 

 

Test sockets enter this section serially (one at a time). 

I'd like to run the pretest on all test sockets even if one failes. 

If all test sockets are PASSED then continue, otherwise show the results. 

 

One solution would be to have a shared boolean in FileGlobals called PreTestStatus. If a step in section A failes, I set PreTestPass = False and then check this boolean to see if there any UUTs which have failed at pretest. 

 

Are there any better approaches to this? 

 

 

a.PNG

Run Teststand Operator Interface minimized.

$
0
0

Hello, 

I'm running the Teststand Operator Interface from a LabVIEW application. In the LabVIEW code I have a Command Line that runs the Teststand Operator Interface and runs a specific sequence automatically.LabVIEW_2018-07-23_10-28-41.png

 

 

 

I would like to know if there's a way to run the Teststand Operator Interface minimized. I know that one way is to edit the Teststand Operator Interface but I would like to avoid that way because the LabVIEW application I build calls directly the Labview Teststand UI from the directories. So its not a problem if its 2016, 2017, 32 bits or 64 bits version.

 

Thank you.

Regards

TestStand | Process Models | Results Processing

$
0
0

Hi Everyone, 

 

I was just exploring process models that are available in TestStand, If I want to create a new process model which will log the results [ TestStand Default Report Generation ] depending on a condition. I mean the model should log the results only if the given condition is met. what can I do to achieve this?

 

With respect to TestStand what knowledge do we need to create a new process model?


How can we know about the different configuration variables that are to be used to achieve this?

 

Is there any reference document where we can get to know about the use of different variables in different instances?

 

TestStand Base Deployment Engine with LabVIEW Runtime Engine Error - 17600 LVLIB issue?

$
0
0

When I run TestStand development system with LabView development system  or LabView runtime adapter, my test runs fine.

However, when I run TestStand Base Deployment Engine with LabView runtime, I get the 17600 error - could not load module.

I've seen some of the solutions offered such as mass compile, place all VIs in the same directory etc., but I'd like to find a way to eliminate the error with my current project file structure which is defined within my department.

My particular problem seems to be due to LabView instrument drivers within an LVLIB structure.  I created two custom VIs that call several of the instrument driver VIs (default instr.lib location) and located the custom VI in my project folder.

I can get rid of the error by moving my custom VI into the instr.lib location, but not by moving the Instrument driver folder to my project folder.  My search directories include the LabView default instr.lib.

I do understand that there could be VI naming conflicts with many Instrument Drivers containing Initialize.vi, Reset.vi, etc. The question is why the error only with TS BDE and LV RT configuration.

How can I ensure that TestStand will be able to load the lvlib drivers that my custom VIs require?

Again, this only is an issue with the TestStand base deployment engine and LabView runtime adapter.

How to get the Property Value Type - C#

$
0
0

Hi to everybody I am using C# to automate some tasks but I dont have much time using it. I am trying to get the type of a fileglobal variable, I am expecting to get this: http://zone.ni.com/reference/en-XX/help/370052N-01/tsapiref/reftopics/obsolete_propertyobject_gettype_m/.

 

Currently I have arrived to the point when I have a property object of the variable and I am trying to get the type, the code is below:

 

// Get a reference for the current variable object
PropertyObject variable = Seqref.FileGlobalsDefaultValues.GetPropertyObjectByOffset(Index, 0);

 

PropertyObjectType VarType = variable.Type.GetType();

 

But Visual Studio remarks the next error:

Cannot implicitly convert type 'System.Type' to 'NationalInstruments.TestStand.Interop.API.PropertyObjectType'. An explicit conversion exists (are you missing a cast?)

 

Am I doing something wrong? Your help will be appreciated.

Error executing Steptype "-17601:Attempted to load a module for a step whose module has not yet been specified

$
0
0

Hello,

I create  à custum steptype to stop the execution of my sequnece but th steptype generate an run time error .

Have you some explication?

 

Stop LabVIEW splash screen from popping up

$
0
0

Hi,


I'm running TestStand, which of course calls LabVIEW VI's, and I keep getting the LabVIEW splash screen (see attachment) popping up. I really never have any use for that.

 

How can I suppress this? Somewhere in options?


Custom analysis rules; tsarule file;

$
0
0

Hello,

This is day 4 when i am trying to figure out how custom rules works in teststand.

there is plenty info on help page, but i cant make "the Big Picture" of that info.

In example rules i see tsarules file. It looks like tsarules file is the "top" files that describes rule and analysis module. Rule only apears in teststand after importing this file.

how is that file created? should i modify it by hand, or is there a tool for that?

 

SubVIs are not running in Main VI, when it is run from TestStand

$
0
0

Hi,

 

I'm calling a VI from test stand, which contains some subvi's, in the Main VI subvi's are executing when some button are pressed, however when I press any button in the front panel nothing happens

 

Regards

Is there a way to print .seq files the way they are shown in the Steps: window?

$
0
0

Is there a way to print/store to file .seq source listings the way they show in the Steps: Window?

Tools -> sequence documentation prints the .seq files out in a completely different format.  I've tried Windows Snipping Tool with mixed success.

Googling this topic has produced little.

 

Thanks

 

 

Is there a way to separate testresults on the same BlockLevel in SequenceEditor for ATML 5.0 horizontal reports?

$
0
0

Hello.
I'd like to find a way to separate certain parts in the report by adding whitespace between them, while keeping them on the same blocklevel in the report. For example: Instead of having the result of the Main part of the sequence appear in one table in the report, I'd like to be able to have several separate tables, with whitespace between them, all on the same blocklevel. And I'd like a step I could add in the Sequence Editor to mark the border of these tables, so it's all done automatically.

Is there a way to do this?

I'm using TestStand 2012 and ATML 5.0 Standard report (tr5_horizontal.xsl)

Thank you for your help Smiley Happy

How to mass-compile types after Labview update?

$
0
0

Hello,

i have a testsystem where i updated labview 7.1 to 17 and teststand to current version.

I have a lot of custom step-types created with LV7.1 which currently create the attached error when executing.

 

If i open the steptype and click on the reload-button the vi-icon is shown and loadable.

The steptype shows then "modified" and is executable.

 

Question is now: How can this be done for all sequence automatically?

 

I already found the tip that this can be done with the "Sequence File Converter" but i dont understand what to do there?

 

Thanks for help

 

BR

Set teststockets to disabled on creation

$
0
0

 

How can I disable all the testsockets on creation? Where are they created to begin with? Currently I have a for loop in PreBatch which disables them.

Edit FileGlobals form C# code

$
0
0

Hello, I'm trying to use this command:

 ExecutuionRunSates.SequenceFile.FileGlobalsDefaultValues.SetValString("Name");

 

to Set FileGlobals using C# code in Visual Studio,but I keep getting this error :

 

NationalInsturments.TestStand.Interop.API.ExecutionRunSates' does not contain a definition for 

'SequenceFile'

Thanks

 


Error -17001 source 'TSAPI' when reopening saved sequence-file with custom step type

$
0
0

Hi,

I am trying to test a custom StepType that has an .Net-Edit and a C/C++ DLL-Post-Step Substep, in a simple sequence file. The sequence-file contains a single call of the custom StepType. However, when I save and reopen the sequence file I get the following error:

2018-07-31_10h19_07.png

The StepType is saved in a TypePalette file, as well as in the sequence file and is not changed between saving and re-opening.

 

Solution for multiple station variants

$
0
0

Hello everyone,

 

I am looking for a long term solution for station management when same UUT is tested using differently configured stations to a subset of test specification.

 

What is the preferred method to customize test sequence then deploying? We now use local version controlled configuration files to store test limits and other parameters that need to be changeable post-deployment.

 

For instance, I need to test the same unit before conformal coating, after coating and after some mechanical assembly. If it fails, then I want to test it on a repair station. All stations use the same T&M instruments, all are based on the same test specification, but only a subset of tests are possible on each of them. For example pre-ceating test can use test points and connectors, post-coating can only access connectors and something can only be tested after the assembly. And standby current, some voltages are measured in every test. If something fails, QA will test the unit in repair station that has access to everything and some thorough tests that are not used in production.

 

Capture failing step of a sequence

$
0
0

I wanted to capture the failing step for entry into a CSV report. I was having trouble doing it and wanted to share what I arrived at. This simple solution works for me.

 

1. Create empty string array "StationGlobals.sequence_failure_chain".

2. Add sequence file callback SequenceFilePostStepFailure.

3. Insert statement into SequenceFilePostStepFailure saving the failing step name: "StationGlobals.sequence_failure_chain += { Parameters.Step.Name }".

4. Use the array entry you want for step failure as an input to the CSV file.

TestStand 2016 Determine FileGlobal Type Programmically

$
0
0

I have my FileGlobals test parameters stored in a 3rd party software package as string elements (company thing). When I read the information from this package, I need to determine if the data should be stored in the FileGlobals as an Integer, Float, Boolean, String, etc. so that I can call the correct TestStand API, such as FileGlobals.SetValNumber(...), etc.  I am trying to determine if there is a TestStand API which will allow the specification of the FileGlobals parameter and the function will return the data type similar to the FileGlobals.Get*() whatever APIs.

 

Thank you for any help.

Passing information between Process Model and ModelSupport sequence

$
0
0

Hi All,

 

I have a vi that is called during PreUUT to acquire various pieces of user input. I want to have this information available to my results plugin. I am modifying the process model, not using callbacks.

 

The process model is based on the sequential process model. I am trying to pass information into the "Model Plugin - UUT Start" sequence but I have discovered it is a runtime call and the file path is only available at run time.

 

I am obviously going about this the wrong way. How should it be done?

 

Thanks

 

Viewing all 6540 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>