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

change step name inside a subsequence

$
0
0

Hello,

 

I have a sequence "Main" and a subsequence "test".

The main calls test subsequence.

The 'disable tracing in sequence' is active on the 'test' sequence.

 

When running the main I will not see what is happening in the subsequence 'test'.

But I want to change the string of the step name of the subsequence call.

 

I tried:

RunState.sequencefile.GetSequence.NextStep.Name = "test2"

 

and also with a vi included in this post.

 

 

 

 


Additional Results: Report Precondition not executing correctly during first execution in a For Loop

$
0
0

I am experiencing an unusual issue with NI TestStand 4.1. I have a For loop and within it I have a sequence call configured as a numeric limit test. This test is configured to report additional results. All of the additional results are preconditioned upon test failure. Here is the unusual part: During the first iteration of the For loop the test passes yet the additional results for all input parameters are reported (The output parameters are not reported at this time, but more about that later). All additional iterations of this test in the For loop pass and the additional results are not reported. 

 

Regarding the output parameters...If a test fails I would expect all additional results (input and output parameters) to be reported. However when I encounter a failure only the additional results that are output parameters are displayed on the test report. Input parameters are not reported.

 

Has anyone else encountered this? My expectation was that all of the additional results would be reported in the event of a failure. In addition, in the absense of a failure I would not expect to see any additional results. Thanks in advance!

Passing variables between LabVIEW and TestStand

$
0
0

Hello,

 

I am just learning how to use TestStand and while there is a wealth of resources available, I am still finding myself at a loss on how to pass variables between TS and LV, leaving me to think that there's a small fundamental thing that I am missing which is likely since I have about a weeks worth of experience with LabVIEW and about a days worth of experience with TestStand.

 

I took a look at the "Passing Clusters to Code Modules" example in the TestStand examples (I'm using TS 2016 if that matters) since I figured that would be fairly ideal for what I'm hoping to. In this case, I'm hoping to be able to pass a string (a file path) to LabVIEW and have the VI be able to take that string and use it as part of a command for System Exec.VI.  I'd then like to be able to pass back strings to TestStand to show to the user if an error is encountered, but I figured I should get the first part working.

 

I guess my question is what should I expect to be seeing in the Passing Clusters to Code Modules example? The watch window shows all the local variables set to what ContainerOut has in the Variables pane, but I don't see any sort update on the assoicated LabVIEW front panels (VI1.vi and VI2.vi). Should I be? 

 

I looked at some other forum threads here and here, as well as the KnowledgeBase document here, but was unable to recreate their solutions. It seems the connector pane would be a viable way to go, but I am uncertain about how one actually creates and utilizes it. According to this document it makes it seem like it should be fairly straightforward to makes those terminals, but I'm still missing a key step. I was able to follow all the steps on the KnowledgeBase document, and execute the sequence, but then did not have any idea if it worked or not; I have the report show me the values of the variables that I set, but I have no idea if it actually did anything with the LabVIEW VI or not or how I could see that.

 

Please let me know if you need any other information or clarifaction about what I am asking.

 

Thank you for your time,
JColvin

Digilent, a National Instruments Company

Sequence run is stuck at the End group in regression run and hence it is not loading next sequence

$
0
0

I have setup a regression test for many sequences in which all sequences run one by one. Now sometimes at the end of sequence running is stuck at end group and not loading the next sequence for run. Can someone let me know what could be the problem??

I need to plot X-Y graphs in a TestStand report

$
0
0

Hi,

 

I need to plot X-Y plots into a TestStand report.

 

When I run "graphs example.seq" (my code), I get the following error:

Unknown variable or property name 'Locals.outputData1.Attributes.TestStand

2D data arrays are generated by Labview VI in my .seq file.

 

However, when I run "Displaying Graphs in a Report.seq" (NI example), no problem.

This calls .NET functions.

 

 

Thanks,

Vikram

modify xml report header

$
0
0

I wish to modify the XML header by adding an extra line of text. I tried the ModifyReportHeader callback using the expression:

Parameters.ReportHeader += Locals.my_new_text.GetXML(XMLOption_NoOptions, 0, "", Parameters.ReportOptions.Format )

This does not work, just does not show up at all in the header. Does anyone know why or have an example that works (TestStand 12)?

NI test stand video tutorials

$
0
0

hi 

 i am beginner of NI test stand, i need some videos related to NI test stand and other PDF files.could any one help me to out

 

 

Multiple Run Time Engine

$
0
0

Hello All,

 

I am using NI teststand 2012 , and code modules are developed in LabVIEW . few of the code modules are converted to exe and made step type .and the system has multiple run time engine .

 

My question is , Does system gives any impact for having multiple runtime engine on the same machine ?

 

Regards,

Prithviraj


expiration of TS deployment license

$
0
0

Deployed a test system to a customer recently and am getting complaints about the license expiring in 45 days.  Is the 2,200-$ debug deployment license limited to 1 year? 

Remove few variables from report

$
0
0

Hi,

 

     I have a teststand sequence which contains wait and other extra functions. I want to remove these functions adding to the report. HOw can i do it?

Changing the Reference type of a stationglobal

$
0
0

I am creating a Stationglobal variable that is a number. Teststand by default creats this as a double precision 64bit floting point and I need to make it an unsigned 64bit number.

 

I use this as the way to create the variable:

 

StationGlobals.NewSubProperty("Station_Equipment.DMM.Session_Number",PropValType_Number,False,"", PropOption_DoNothingIfExists)

 

Which make the double precision no problem. I then use this to try and change the type reference to unsigned 64 bit:

 

StationGlobals.SetPropertyObject("Station_Equipment.DMM.Session_Number",PropOption_DoNothingIfExists, (PropValType_Number.Type.Representation, PropertyRepresentation_UInt64))

 

This does not seem to change my variable. Any suggestions on what I am doing wrong?

 

 

 

 

Unknown function or sequence name "DoPostUUT"

$
0
0

I am using Test Stand 2014SP1,   In our tests, we need a custom action which creates a "Daily Summary" file of all the pass/fail reports.  We do this by over riding the default DoPostUUT.   Our custom DoPostUUT does 2 things. 

 

1) calls the default DoPostUUT

2) calls a python script that parses the report file just created by the default DoPostUUT

 

This has worked well for us for multiple projects deployed to multiple locations.  (other than normal problems with python)

Our latest error has us stumped.  At the deployment site we are getting the following error:

 

Error calling sequence DoPostUUT.

Unknown function or sequence name "DoPostUUT".

 

Error code: -17320: Unknown function or sequence name.

 

I have not been able to reproduce this on my clean test PC,   we only see it at the end user site.

Has anyone seen this before?

 

Run and Terminate the sequence file

$
0
0

User want to use two buttons on the test fixture to replace the mouse touching on the relevant toolbar ico to run and terminate the selected sequence file. 

So it has two problem:

1)  where do the two buttons  link to in the PC?   Printer_Port?

2)  Are there some API s or  Call back sequence to run and terminate the sequence file?

 

 

 

Pass data to and from teststand step to another VI which is not called from teststand

$
0
0

Hi,

We do not want to use operator interface (Shipped with teststand) example as we want to run test sequence one by one defined by user in a list. We have found a way to run test sequence using labview but there are few test steps which require user inputs. Also we want to show DAQ readings done in teststand steps on operator interface.

Operator interface will not be run from teststand due to certain constraints. Can anyone tell me any way to transfer data to and from Labview code to teststand steps.

Migrate TestStand 2.0 configuration to latest version

$
0
0

Hello, new to TestStand...

 

I have to migrate a client's project that was written with TS 2.0 / LV 6.1 to TS/LV 2016.  When I set the Station Options > Preferences > Configuratin Directory to the original Cfg directory and restart TS I get the following errors and the application does not start:

  1. Could not find type 'TEInf'
  2. Creating an instance of the COM component with CLSID ... failed due to the following error: 80004005

Is there any tool, application note, etc. that can help me accomplish this migration task?


Set variable when step fails

$
0
0

Hello!

 

Is it possible to set a variable (or two) in a step, if the step fails? 

 

I've looked at this thread: http://forums.ni.com/t5/NI-TestStand/Set-a-variable-in-a-post-expression/td-p/1186981 ,

which is somewhat similar to what I'm trying to do. 

 

I want to avoid creating a new step to accomplish this. I know that I cannot use the Post Expression to check if the step failed, since the Status Expression is evaluated after the Post Expression. The solution to the thread linked to above was to use the Custom Condition Expression instead of the Post Expression, and I've got the following to work there:

 

(Step.Result.Status == "Passed")  ? (Locals.Passed = False) : (Locals.Passed = True)

 

But, the problem I have here is that I want to write to a String and Number (Error text and error code) variable instead of a Boolean (Locals.Passed). How can I write to something else than a Boolean? Is it possible? Or do I have to create a new step for each test step?

 

This does not work:

(Step.Result.Status == "Passed")  ? (Locals.Error = "No error") : (Locals.Error = "Error")

 

Regards,

Sindre

 

 

Update ATML Report Header with Data gathered during test execution?

$
0
0

I need to add data obtained during test execution to the (ATML TR5/6_Horizontal.xsl) report header. I have tried to implement any/all of the update features I have seen here to no avail. I can get things added if I do it during PreUUT but I don't have this data yet. Trying the same commands (using the Parameters.UUT.AdditionalData container) isn't working. I haven't been able to get the ModifyReportHeader callback to do this either. The help and other support examples I have seen seem to be about half of what I need to implement this. Any help is appreciated.

-Randy

Teststand sequence runs slow when called dynamically

$
0
0

Hi,

I used example code found on NI discussion forum to run teststand sequence dynamically. I have created one sequence in which first step is to run operator GUI dynamically (So that I can pass data to and from teststand sequence using functional global). Second step is to call a subsequence which has few steps.

Steps in the sub-sequence interact with operator GUI using functional globals.

First time everything works fine. But if I run it again then teststand sequence runs slow. Even slower if I run it more number of times.

 

Can anyone help me. I am attaching the code. Please refer "Untitled 1.vi" Also attaching snippet

Snippet.png

Problem with Execution View in a custom UI

$
0
0

Hello guys,

I have a problem with an execution view on my custom LabVIEW UI, I am using up to 6 DUT's on my test, so I have selected 6 Test Sockets on my sequence model options, the point is, when I test all the 6 DUT there is no problem on my UI execution view, the problem is when I want to test only 2 or 3 DUTs (less that the test sockets configured), the test stand execution disapear from the UI execution view and I do not know what is happening, do you guys have a clue about what could be causing this behavior?

Thanks in advance for your help.

 

High memory use in infinite loop - TestStand 2016

$
0
0

To start, yes:  I've read this  http://digital.ni.com/public.nsf/allkb/3A6899738157EA8986256AC5004BC0A7 Smiley Happy

 

Now that we've got that out of the way... I have an infinite loop running in the background that acts as a Watchdog. Previously when running TestStand 2015 I was able to disable results processing no problem like the article says and everything works great.

 

I just upgraded to 2016 and disabling results processing.  I now get odd behavior... when I run an infinite loop in the Sequence Editor I don't see an increase in memory.  When I run it from my UI memory rapidly increases.  I've disabled the following settings:

Settings1.PNG

Settings2.PNG

 

... and just because I was still having issues...

 

 

Settings3.PNG

 

I'm sure I'm missing something simple here, but I'm at a dead end.

Viewing all 6568 articles
Browse latest View live


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