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

SequenceFileUnload / Single Pass

$
0
0

Good morning,

I'm using TestStand 4.1 and am having a bit of trouble.

I have a sequence that runs a CVI code module that brings up a user prompt on SequenceFileLoad and  SequenceFileUnload. I also have a step in my MainSequence that does the same.

 

When I run the MainSequence using Single Pass, my SequenceFileUnload callback does not run when I close the sequence file. It DOES when I close TestStand.

 

In addition, when I run the MainSequence using "Run MainSequence", my SequenceFileUnload callback runs on sequence file close.

 

I have been pouring through the help docs to understand what is happening in the SinglePass entry point that could be affecting the way that SequenceFileUnload runs, but have been unsuccessful.

 

Fernando


Dynamically loaded steps

$
0
0

I am upgrading TestStand and LabVIEW from very old version and thus, some of my steps are not working yet.  The problem is that I can't run the rest of the sequence file with the broken steps.  The error I get suggests changing the step load options to 'load dynamically' instead of 'preload when execution begins'.  See the attached error.  I haven't been able to find that option.  Can someone please tell me how to do that?

Pause/Resume for individual sockets

$
0
0

Hi,
I have a one requirement to Pause and Resume the test sequence with the help of GUI(CVI platform)  which is having a multiple sockets in test stand

 if i press pause in socket 1 it should pause the socket1 and if i press resume it should reume from the same where it get pause in socket1

if i press pause in socket2 it should pause the socket2 and if i press resume it should resume form the same  where it get pause in 2nd socket

can any one help me to Pause/Resume the sockets independently?

 

Disable Database on Abort

$
0
0

Hello Community,

 

Using Teststand 2014 32bit

 

In a previous post of mine, I asked how to programmatically enable/disable database result processing. I got my answer and it dealt with altering the sequence file callback "DatabaseOptions". Is there a way to edit the parameter in my DatabaseOptions during my MainSequence? My reason for this, is when the user is running the sequence file and decides to abort during the test based off a message popup selection. I do not want teststand to process the results to the database when the user cancels the test and skips to cleanup. Is there a way to cause Teststand to not write to the database in this scenario?

Existing LabVIEW user Interface in TestStand Examples gives error

$
0
0

Hello All,

 

I am working on Creating labVIEW User Interface for my TestSequence.

Trying to Reuse the existing user Interface available in "C:\Users\Public\Documents\National Instruments\TestStand 2014 (64-bit)\UserInterfaces"

I am able to run my sequence properly using existing exe but wheni try to do in LabVIEW Code i am getting error as

Could not load DLL or external library 'C:\Program Files\National Instruments\TestStand 2014\Components\Models\TestStandModels\modelsupport2\modelsupport2.dll'.

The DLL is a 64-bit DLL and thus cannot be loaded by 32-bit TestStand.

i am trying to access user Interface Files under the folder "TestStand 2014 (64-bit)"

what may be the issue?

Delete results if user wishes to repeat the last test

$
0
0

Hi,

I am trying to set up a user pop-up to ask them if they would like to repeat the last test that failed. If so... delete the result and run the sequence again.

Can anyone see what I'm doing wrong?

 

Chris

Deployment utility issue

$
0
0

Hi All,

My code module to be deployed uses some VI's from user.lib. When I'm trying to create the deployment, in LabVIEW options I'm excluding all files from vi.lib,user.lib and instr.lib.  After creating the deployment, still my code module looks for the VI's from user.lib in SupportVIs folder which is parallel to the deployed folder. I don't know why it is still looking in SupportVIs folder instead of taking it from user.lib. Please share your thoughts about this.

 

Thanks in advance!

Regards,

vani

Event Callback Hang

$
0
0

Hi,

I'm creating custom operator interface. I want to terminate all executions when user clicks exit button without asking him for the decision (terminate/abort/kill etc). So I created event callback for "exit button click" (using Register Event Callback primitive).

Now when I trying to run it it always hangs (works only if highlight execution is enabled).

Callback content is shown in the snippet below. I'm terminating all executions and then waits until all executions completes its terminating. After that I'm shutting it down.

I'm aware of the whole thing of "use other 2 execution system" and I tried it in different ways but without any success... and still I'm not sure when I need to use different execution system and how. For example how can I know that TS method is synchronous?

 

Please help Smiley Happy

 

Exit Hang.png


TestStand Report

$
0
0

I want to make a report with some graphs. How can I insert some graphs into the TestStand report by using TestStand API? 

How to use method GetCaptionText

$
0
0

Dear all,
I'd like to use this method to get some information of the current execution as metioned in Help of this method.
I don't understand how to set input parameter of formatExpression.
For example, I need TestSocketIndex of the present execution, and got nothing while:
formatExpression = ""
or formatExpression = "%1"
or formatExpression = "%TestSocketIndex%"

 

Thank you for any advice!

Autoscheduling

$
0
0

Hi,

Say I am running the Batch Model, and I have 4 sockets.  For each socket to run its tests, it must access 2 pieces of test equipment.  Let's call them a Scope and a DMM, for the sake of this example.

If have 1 Scope and 4 DMMs, and don't care which DMM gets used with each socket, this would be straightforward enough to implement using autocheduling.

However, if I have 1 scope and 4 DMMs, and need each DMM to be used with a specific socket, how would I go about implementing that?

Thanks,

Dan

Scope of a file global

$
0
0

I created a file global that I overwrite in SequenceFileLoad in TestStand 2013.

 

The changes I made there do not make it to PreUUT or MainSequence. Is this expected?

Get results from another sequence

$
0
0

Hello everyone, im pretty new to testStand and i have been charged to modify a test program, the sequence file is attached and shown as reference.

 

The sequence "MainSequence" is where the testing happens, it has 44 steps, all the steps follow the same template:

Get Step Subproperties (configuration)

Perform Test

Set Step Supproperties (Results)

 

At the end, the "TestReport" sequence is executed, "MES" Step calls Test_GetVal.vi, in this VI i want to retrieve all the results from the MainSequence and do my thing with them.

 

we can focus on one step "340nm position check", at the end the VI uses "ThisContext" and the "TestStan Set Property Value" to add the numeric result to the following properties:

 

Step.Result.Trans_Red.Result
Step.Result.Trans_Green.Result
Step.Result.Trans_Blue.Result

 

i want to retrieve this 3 values from the MES Step in the "TestReport" sequence but i cant seem to find the correct path, i have tried to change the input context of the MES Step to:

"ThisContext.RunState.SequenceFile.Data.Seq["MainSequence"].Main["340nm position check"].Result"

and then get the value "Trans_Blue.Result" but that throws an "Automation Interface for the specified class cannot be obtained" error in Labview.

 

i have tried with "ThisContext" input and get the value "RunState.SequenceFile.Data.Seq["MainSequence"].Main["340nm position check"].Result.Trans_Red.Result" with an error that the value has not been found (This property seems to be created on the fly, it cannot be seen from the variable panel in TestStand.

 

Any ideas??

This is my main file with the sequences and step highlighted:

img1.PNG

 

Sequence step results in Simple Text Report

$
0
0

I am using Teststand 2012 and have installed the simple text report model plugin.

My main test sequence calls a number of subsequences which contain the test steps and also contain more subsequences. A number of the subsequences are actions only. My result test file contains all the test steps results as expected, but it also contains a result line for each sequences call - making it difficult to see the results that matter. I would like to record only test steps.

Looking at the SimpleTextReport.dll code in CVI I can see it is stepping through the list of results, and formatting each line ( I have changed some of the formating). Is this the right place to filter out the sequence call steps or can I stop the sequence call steps from being added to the result list?

 

any software solution when the quantity of the testing engineers is far less than the quantity of the product engineer?

$
0
0

I am a testing engineer, and I now am maintaining a software platform which has the following features:

  1. the platform provides very simple interface and abstraction to the user--a language which we call it marco language, like POWER ON means power on, and POWER VSET, NAME, 15V means that set the voltage of the signal "Name" to 15V, the connection between the name and the specific hardware detail(like the handle and the channel number) is configure by a ini file, during the initialize of the software, the ini will be read, and all the mapping details will be read into memory.

The reason why we use this structure is because that there are far more product engineers than testing engineers(200product guys and ony 11 tesing guys),  if we use teststand,  I think we will be busy writing the teststand sequence files. 

The problem of this software platform is that the marco instructions is very limited in functionality, no programming features like looping and variable. And also, the guy who write the software has resigned, it will be a diaster if we just add more features to it without understanding teh detailed structure from the scratch.

The NI salesman kept telling me that we should use teststand, But I think it will be way diffcult for the product engineers to write the sequence files. So, our man concern is that we testing engineer should only build a software structure that can decoupling the test and the product guy. 

Any help will be highly appreicated.


Custom User Interface - How to use native string control to trigger each test and pass serial number

$
0
0

Picture 1

1.png

 

Picture 2

2.png

 

This is the one Custom User Interface which I modify from one demo, now, what I want is don't show the message box (picture 2) , just use the string control ( show "11111111" & "22222222" on the picture 2) to check the serial number length and  trigger each test separately, and also pass each serial number to teststand variable, thanks!

CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker vs CommandKind_ConfigurationEntryPointInsertionMarker

$
0
0

Hi,

I'm trying to understand what are those "Inserion Markers" command kinds. I don't understand why ConfigurationEntryPointInsertionMarker does not inserting Result Proccesing menu item and ConfigurationEntryPointDefaultMenuInsertionMarker does. How to force to displey only Result Proccesing item and not to display Model Options? I don't understand this help part at all Smiley Sad

 

CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker–(Value: 113) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that does not select a menu other than the current menu. Because most entry points do not have menu hints, this constant typically specifies all Configuration entry points.
CommandKind_ConfigurationEntryPointInsertionMarker–(Value: 112) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that selects the current menu.
CommandKind_ConfigurationEntryPoints_Set–(Value: 145) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point. When you specify commands to create menu items, use the CommandKind_ConfigurationEntryPointInsertionMarker and CommandKind_ConfigurationEntryPointDefaultInsertionMarker constants to honor menu hints entry points can specify.

 

http://zone.ni.com/reference/en-XX/help/370052M-01/tsuiref/reftopics/commandkinds/

How to programmatically retrieve Users File in LabVIEW

$
0
0

Hi,

I would like to create custom User Manager tool in LabVIEW, but I can't get user container. I'm able to get Users array (I have only "administartor" item in Users File), but I'm not able to get subproperties Smiley Sad I'm getting -17306 error in GetNumSubProperties.

I tried with the following code.

Get Users File.png

How to programmatically copy all Users File to LabVIEW Tree Control? Or at least list all in form of array.

error -18004 in TestStand 2016

$
0
0

I am converting from TestStand 3.1 to 2016 and LabVIEW 8.6 to 2016.  When I try to run my sequence file, I get the following error during the module preload: LabVIEW: Unexpected file type.  Error Code: -18004, An error occured accessing the LabVIEW Run-Time Engine DLL.  Source: 'TSAPI'  I can open the LabVIEW vi with no issues and have tried re-saving it, which didn't help.  If I remove this step from sequence file, the other steps load and execute fine. 

 

See attached error image.

Test UUTs report options callback

$
0
0

I am using the 'Test UUTs' entry point to test many units in sequence using the sequence model. However each of the test results get put into the same report; how can I get the results to go into seperate files for each unit. Is there an option for this or do I need a callback? Maybe I could use the 'single pass' entry point in some sort of loop, what is easiest?

TestStand 2010

 

Viewing all 6524 articles
Browse latest View live


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