Subscribe: NI TestStand
Added By: Feedage Forager Feedage Grade B rated
Language: English
code  error  execution  failed steps  failed  file  labview runtime  labview  ppl  run  sequence  steps  teststand  thread  time 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: NI TestStand

NI TestStand topics

NI TestStand topics

Published: Wed, 22 Nov 2017 18:50:51 GMT2017-11-22T18:50:51Z


Skip teststand uut result pop up on pass

Wed, 22 Nov 2017 17:17:41 GMT2017-11-22T17:17:41Z

How can I skip teststand uut result pop up on pass and go to the serial number pop up?


Running Teststand .seq file programatically using C#

Wed, 22 Nov 2017 14:54:13 GMT2017-11-22T14:54:13Z

I got example code which will explains the execution of .seq file using C#.


I used same code to run my teststand code.

But i have error during execution of bellow line in the code.


  seqExecution = engine.NewExecution(seqFile, "Single Pass", modelFile, false, 0, null, null, null);


please find snapshot of error.


presently i am using teststand 2016 evaluation version and Labview-2017 run-time engine


please suggest me the solution.

Running Teststand .seq file programatically using C#

Wed, 22 Nov 2017 14:54:08 GMT2017-11-22T14:54:08Z

I got example code which will explains the execution of .seq file using C#.


I used same code to run my teststand code.

But i have error during execution of bellow line in the code.


  seqExecution = engine.NewExecution(seqFile, "Single Pass", modelFile, false, 0, null, null, null);


please find snapshot of error.


presently i am using teststand 2016 evaluation version and Labview-2017 run-time engine


please suggest me the solution.

Veristand Sequence calling into test Stand

Wed, 22 Nov 2017 09:26:17 GMT2017-11-22T09:26:17Z



I am new to TestStand and i have requirement like i want to call veristand test sequence into test Stand but i am not able get into the understanding properly , if anyone can provide me some tutorial document then i would be great to me.

Show Sequence In Execution View Wen Sequence File Is Opened

Wed, 22 Nov 2017 08:22:06 GMT2017-11-22T08:22:06Z

I'm trying to change the behaviour of displaying the sequence file in the execution view for the TS UI. Currently the sequence is displayed in the execution window when the sequence is started, but I wan't the execution window to populate when the sequence is loaded. I've had a good look at the callback Vi's but I can't work out where the information is coming from.


Any pointers?

Continue other tests when one thread errors. (batch Synchronization)

Tue, 21 Nov 2017 21:38:07 GMT2017-11-21T21:38:07Z

 I have a fairly complex Batch mode sequence.  Some parts are only run in the first thread (like turning on power)  other parts can be done in parallel (taking measurements) and still other parts need to be done sequentially (programming a SN, all but one is powered off)


This all works.   The problem I have is sometimes there is a fatal error on one of the threads.  This error causes that thread to jump to Cleanup. But the other threads will wait indefinitely because they are waiting for the thread that errored out.


My question is what is the prefered way to handle an error on one thread in a Batch sequence?

Is SequenceFilePostStepRuntimeError cancels SequenceFilePostStep?

Tue, 21 Nov 2017 17:20:10 GMT2017-11-21T17:20:10Z


In one of the examples related with custom error handling, I found a step which set CancleStepCallback flag with the comment "This callback handles the error, suppress any other error callbacks for this step.". I understand that if I use for example runtime error callback and post step callback and error callback cancels further callbacks with CancleStepCallback flag, the post step callback will not be called. That how I understand that but I skipped the step for canceling step callbacks and post step is still not calling. 

Is this becouse SequenceFilePostStepRuntimeError cancels SequenceFilePostStep under the hood?

LabVIEW Runtime vi search path when called from TestStand

Tue, 21 Nov 2017 15:06:39 GMT2017-11-21T15:06:39Z

I'm trying to deploy TestStand sequences to many test stations. On my dev machine everything works fine. My system consists of an exe for the TestStand UI, a couple of PPL's for the guts of the application, and of course the run time engines for both TestStand and LabVIEW. I've tested the PPL's, UI, and .seq on the dev machine and all works fine. When I deploy to my test station computer, I get errors that vi's are broken or are unable to load required files. 


Some remote debug shows that the files not loading are DLL's that are called from the PPL's. In the PPL creation, the DLL is located in the same directory as the PPL. If I drop my TestStand UI exe into the same folder as one of the PPL's, everything from that PPL loads fine (including the DLL). Search paths include the Top Level vi directory, so this makes sense. However, it still won't load the other DLL, referenced in a different directory by the other PPL. The PPL's are loaded with an absolute path, but the DLL's are relative from within vi's inside the PPL. 


I tried adding the parent directory to the TestStand search paths (I created a new TestStand deployment with the Cfg files, then installed it on the deployment machine). Same issue. 


Is this an issue with LabVIEW Runtime search paths? 


How do I ensure these directories are part of the search paths for TestStand and LabVIEW Runtime? 

Gracefully Handling Batch Synchronization Error -17500

Mon, 20 Nov 2017 17:57:23 GMT2017-11-20T17:57:23Z

Hi all,


Using the batch model, in a few places we have "One Thread Only" synchronization either on specific steps or sections within our sequences. (Pretty common.) We occasionally see a run-time error inside the "One Thread Only" section, and then all the other threads that are waiting on that section throw error -17500.


Has anyone come up with an elegant solution such that when an error occurs in a "One Thread Only" section, the error is gracefully handled thereby preventing the waiting threads from throwing -17500?  The only solution I can think of is to predict and prevent the original run-time error from occurring, which can sometimes be daunting in obscure, unforeseen scenarios.


I did attempt a cursory search that yielded many results - if this topic has already been specifically addressed feel free to point me to another post.


Thanks as always,


Mr. Jim

How to avoid terminate-Uimessage in parallel sequence when terminating?

Mon, 20 Nov 2017 15:58:03 GMT2017-11-20T15:58:03Z


i am executing a parallel sequence as described by in this thread:


This is working great.

The only problem is that the statement "Locals.SpawnedExec.AsExecution.Terminate()" which terminates the parallel thread creates a terminate-UImessage.

This is catched by my OPUI and then sets the main-testplan to terminated. Also if the testplan run completly to the end and all steps are passed.


How can i find out from which thread the Uimsg is coming. There is a parameter "object" which contains 1000s of sub-parameters. I think somewhere in there it can be found...



How can i save StationGlobals manually with a teststep?

Mon, 20 Nov 2017 14:23:55 GMT2017-11-20T14:23:55Z


is there a command that can be executed in the testplan to save the StationGlobals?

So that all changes are saved permantly and still exist after restarting Teststand.


Code modules bust be loadable

Mon, 20 Nov 2017 10:17:25 GMT2017-11-20T10:17:25Z



i get an error by starting my secquence the first time. 

The error Name: Code modules must be able to load.

I can eliminate the error when I unlock the button "log" for the Report.

After the unlocking i haven´t any Errors.

Now I lock the "log for Report" button again and try the sequence again. And now i haven´t any Errors, too.


I attached a file of an example subsequence where I have the error.


Can somebody help me why I get the error, and why I get the error just one time?


Kind Regards



Teststand Sequence file execution release

Fri, 17 Nov 2017 17:20:16 GMT2017-11-17T17:20:16Z

Hello All,


I have teststand sequence(MAIN) which provides user panel to display status,provides pause,jump and viewing failed steps options.


Within the sequence(MAIN) i am copying failed steps to new sequence(FAIL). User can pause the MAIN sequence and  view the failed steps.To achieve this i am displaying the steps of FAIL sequence.


The issue is when user pauses to view failed steps for the first time,the FAIL sequence has all failed steps. But when user pause to see failed steps for the second time,the FAIL sequence still has only failed steps which was present during the first pause.


Also FAIL sequence on the disk has been updated with all the failed steps,but not the FAIL sequence within teststand execution environment.







Size of a Teststand container

Fri, 17 Nov 2017 12:38:23 GMT2017-11-17T12:38:23Z


We have a Teststand sequence that manage a set of data in a container.

This container should be filled in from a DLL in CVI.

We are able to send CVI a pointer to the container, to create a copy of the container structure in a C structure, fill in the C structure and then memcpy data to TSStand container (through the pointer).

All is OK excepted when one side or the other updates structure (add, remove, move an element): very difficult to check consistency.

I found this thread but it said it is an old method (for TS <3.0). Is there a better method to do the job?


Error using Labview runtime and FPGA

Fri, 17 Nov 2017 11:01:30 GMT2017-11-17T11:01:30Z

Hi all. I noticed I am getting a error -18002 when I try and run some FPGA code I developed in LabVIEW 2015 when I use the runtime adapter in TestStand 2014. It is strange because the code runs on the first iteration of my test loop and then on subsequent iterations appears to run but throws an error. The error seems to suggest that the VI is broken/missing dependencies so I tried compiling it into a packed library and then calling the packed library but that made no difference. Has anyone hit this problem before or got any suggestions? Many thanks, Andy

How to extract data from text file after searchstring

Fri, 17 Nov 2017 10:32:38 GMT2017-11-17T10:32:38Z


i want to create an external file with some limits.

The file should be imported a teststart to globals.

In the limit teststeps i want to add a pre-expression that reads out the global and sets the limits.


The file looks like:






Currently i have a function that reads out the file content into a global string variable.

My question is:

Are there built in functions where i can pass this global variable + the name of a line (like "a_high) and it returns the numeric value behind it?



Display Line number and retract automatically

Fri, 17 Nov 2017 10:05:43 GMT2017-11-17T10:05:43Z

Hi, guys,

Do you know how to display its line number and retract automatically such as Visual Studio?

How can i specify a StationGlobal using text and variables

Thu, 16 Nov 2017 16:23:41 GMT2017-11-16T16:23:41Z


i have two StationGlobals (numeric):




And there is a FileGlobal.parameter (string) that contains the text "One".


How can i set an expression using something like:

StationGlobals.+FileGlobals.parameter = 12


So the second part of the StationGlobal is defined by another variable.



Password Protecting Plugin Won't Show In Result Processing Insert New

Thu, 16 Nov 2017 15:47:05 GMT2017-11-16T15:47:05Z

If I password protect (lock) a result plugin and deploy it.  On the deployed machine it won't show up in the Result Processing>>Insert New... list.  Is this a bug?  How can I deploy plugins that are password protected and allow my end user to add them to the list?


NOTE: I do not want it to be an Add-On.

How can i export/import limits from an external text file?

Thu, 16 Nov 2017 15:09:43 GMT2017-11-16T15:09:43Z


i have ~1000 teststeps with limits in my testplan.

Now i want to import the limits from a textfile.

What do i have to do?

Create a StationGlobal for each limit and create a new teststep (which must be called 1000x) which reads an inifile and outputs the limit into the StationGlobal at start of testplan?
Something like: GetLimit("c:\limits.ini","teststep230_low", out value)


Is there a builtin method to export all limits into a file and re-import this file automatically at teststart?


Thanks for help