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

Asynchronous Parallel Testing

$
0
0

Hi guys,

I'm designing a test system for testing multiple UUTs at a bench with individual test hardware for each UUT. I want the operator to be able to connect a single UUT and start the test for one UUT at a time, but to have multiple tests running asynchronously in the background at various stages of completion. I've looked at doing it with a parallel process model but this seems to only allow you to start all the tests at the one time.

The starting of the tests will be controlled by a .Net DLL, but i'm not sure what process model to use.

Thanks.


Automating Teststand Workspace Creation (.tsw)

$
0
0

Is there a way to automate creating a .tsw TestStand workspace through a command line utility or some other method given a set of sequence files and VIs? I know the deployment utility can automate making a .tsd from a .tsw, but this would help expand the automation process so someone does not have to even create a .tsw file and have just their TestStand development files in one folder for example.  

 

Also, given a .tsw file, I would like to know what sequence files and Vis are in it. 

 

Thanks.

Iman

TS Global Variable Container Type VISA Not Available

$
0
0

I have two machines running TS sequences with the Labview adapter. I am trying to bring up a third. When trying to define the TS Station Globals I have a container that is a VISA type on the first two machines. I have installed the developers suite the same on the third machine as the other two. When I try and create the TS global variable container and select Type, VISA is not available as on the other two. I am trying to figure out why this is but in the meantime thought I would ask to see if anyone has had this problem before.

 

Thanks in advance for any assistance.

Unload VIs from Memory to get rid of memory leaks?

$
0
0

Hello Community,

 

The problem I'm facing is that after running my sequence for couple days Windows starts running low on memory and eventually an error occurs. In the resource monitor I can see that about 95+% of the memory is reserved and it frees up if I click to the "Unload All Modules" in the File menu. I believe this pretty much confirms that I'm facing with memory leaks so I assume that I can unload my LabVIEW modules programmatically by executing the following command in TS:

 

RunState.Engine.UnloadAllModules()

 

I have a framework sequence which calls subsequences as "New execution". For example I have subsequence which starts displaying a continuously updating graph. As an experiment I have started my framework and executed the command above after I have called the graphing subsequence. I have expected that the graphing window will either disappear, but at leasts stop working, but nothing happened.

 

So can you explain me what does this UnloadAllModules() command does and what is its scope exactly?

 

Thanks.

TestStand : Recupérer l'état du pas déclaré sur Labview

$
0
0

Bonjour,

 

Je suis débutant en TestStand.

J'aimerai savoir si c'est possible de récupérer le booléen True/False sur le logiciel TestStand d'un pas de tests appelé sur LabVIEW .

 

Merci d'avance.

 

RITTER Sébastien

Override a ModelSupport.seq callback

$
0
0

Hello, an elementary issue probably: I work with a customized Model (a copy of Sequential Model) - I need to modify the ModelPluginOptions sequence in my customized Model but when i do, it is never called. 

If im not wrong the execution goes from my sequnce file >>> my customized model's Test UUTs >>> Model Plugins - Begin >>> Initialize Model Plugins >>> Call ModelPluginOptions Callback >>> ModelPluginOptions. 

 

But this last one doesn't call the ModelPluginOptions which resides in my customized model. If I create a ModelPluginOptions in the "topmost" sequence file, then this one is called. 

The sequences from Model Plugins - Begin and on are part of the ModelSupport.seq, so to rephrase my question: How can i override a ModelSupport's callback in the model?

 

Thank you!

Pass a Sequence Reference from calling Sequence to called Sequence

$
0
0

Hello Community, 

 

I have two TestStand Sequences calling each other. Only the second sequence is known. The first one can have any name and be in any path. 

 

The first sequence, let´s call her SeqA, calls a SubSequence, called Test, from the second sequence, I´ll go for SeqB. In the subsequence Test is a call to a SubSequence from the SeqA. 

My problem is, that I´m unable to get a reference of SeqA to SeqB for the sequence call.

I already have the Sequence Context from SeqA. I would be very happy, if that would somehow be enough, to get the reference. 

I just don´t want to pass two parameters, if not necessary.

 

Greetings Fred

 

OR statement for Limits

$
0
0

Hello.

 

I am using Teststand 2014 and a Multiple Numeric Limit Module to compare results. However I am trying to figure out a way to compare a single value to two different limits. Basically:

 

If(StepReturn.Fruit == Limit.FruitBasket.Apple) OR (Fruit == Limit.Fruitbasket.Orange)

  PASS

Else

Fail

 

So far I have found no way to do this without doing a Post Action Conditional Pass statement.

 

Help would be appreciated.


Programmatically get Execution Option Value ( 'ThreadOpt' )of a Sequence Call

$
0
0

Hello, I'm trying to get the value of 'ThreadOpt' which is the 'Execution Option value of a Sequence Call Step.

The value can be found in 'TS.SData' , but I can't get the value (which is 2 in this case), here's what I tried:


MainSEQ_ref.GetStep(0,1).Module.GetPropertyObject('ThreadOpt',0) 

 which returns a <COMObject <unknown>>

and

 

MainSEQ_ref.GetStep(0,1).Module.GetPropertyObject('ThreadOpt',0).Name 

which returns 'ThreadOpt'

 

 


image.pngimage.png
What am I missing? Thank you!

Using XNET database in teststand with selectable signal list

$
0
0

Hi,

 

I have problems using the XNET database in teststand. I want a drop down menu of all frames(or signals) of a XNET database in teststand. Is this possible? I tried a VI that has a frame list and a signal list as input. When I click in the inputs using Labview, I can select my database and then the frame or signal. I saved the Labview-project and reloaded the VI in teststand. With teststand, the frame and signal lists are empty. The connection to the XNET database might be lost. I tried the Open Database function in Teststand but this does not load the XNET databases (udl file needed).

 

What can I do?

 

Can not abort VI from TestStand after called asynchronously

$
0
0

Dear all,
I would like to start a VI from TestStand by calling it asynchronously  as the screenshot "Start UI" below but I can not stop that VI at the last step in TestStand with VI "Stop UI". The reason is that the refnum is no longer valid.

 

So now how can I stop the VI within a step in TestStand? 


Thank you all

Start UI.JPGStart UIStop UI.JPGStop UI

Function Contains in TestStand

$
0
0

Hello,

I am trying to find a cluster in an array of clusters in teststand using the Contains(array, object, <caseSensitive>) but it actually doesn't work, would anyone have an idea how to make it identify the cluster or am I missing something?

Thank you

Enable Cycle-Time Logging

$
0
0

I have several testers. On some of the testers when i get a .txt datalog file my UUT overall cycle-times are listed. On other stations my completed cycle-times are absent. What box-check do I need to enable/disable in order to have cycle-times listed on my data files? In the attached file there are two screen captures of my logged data.

 

We run TestStand 2014 or 4.2.1 and have our own process model. All my machines run either Windows XP (just a few) and the remainder Windows 7. 

First failing step incorrect when using subsequence

$
0
0

I'm using a sequenced called from my main sequence, and it has a handful of steps. I call this sequence in a new thread. There is a wait statement "Wait for ch B" to rejoin its thread to the main sequence.

 

My issue is, when one of the steps inside the sequence fails, the failure cause for the sequence is the wait statement's name, "Wait for ch B", instead of the step that actually failed.

 

Any thoughts on how to fix?

Remove Login

$
0
0

Hello-

 

How to remove the Login Dialog Box of the my TestStand application while I start up the application?

many thanks-

Wei 捕获.PNG


How to prevent teststand from crash if array index out of bounds for one of the test sockets

$
0
0

I have to test 20 UUTs using batch model. 

I go to SQL server and read 20 serial numbers that  have to use in my tests.

I have to use 7 test sockets.

Each time I tun sequence, seven serial numbers are passed to the tests.

So...in first run of batch sequence, parts 1-6 are tested, in second run parts from 7 - 14 are tested.

The problem is when sequence runs for the third time, when parts from 15-20 are tested. Test socket number 6 does not have UUT to test since there are only 20 UUTs (serials) to test and no 21.

The test socket 6 error is presented : "Array Index out of bound".

 

Please help how to solve my problem 

 

 

Open terminal window in Call Executable

$
0
0

Hello,

 

I am begginer in TestStand.

I want to start some python script in "Call Executable" step.

In middle of execution in this script there is a confirmation prompt, which pauses the script untill user input something.

After ecexuting the script i need to catch it's stdout to make some further decisions. 

I have tried open script with "python.exe" and "scriptname.py" as an Argument Expression, or with "cmd.exe" as exec filename and "/c python scriptname.py" as an Argument Expression. 

 

The problem is: in both cases TestStand does not open terminal window while executing, so script just started silently on background and freezes when it should ask for user input. So all i can do is kill it manually with process manager.

I have tried to use powershell instead of cmd and it works the same.

I have tried to start script with "cmd.exe" and "/c start python scriptname.py" command as Argument Expression, and it opens terminal window and user input prompt is works, but then TestStand can't catch stdout of the script because python proccess opens in different window/process, so returned stdout of parent process is just empty string.

 

Am i miss something and how i can do this?

 

Thank you.

TS Version Selector and ActiveX in LV

$
0
0

Hello,

 

I need to switch TS versions and do some actions on all installed TS versions.

But it seems that activex still has loaded previous TS version? I have to restart LV and then he loads version that was last set.

Is there an workaround ?

 

Capture.PNG

Is there a tool to create custom step automatically?

$
0
0

Hi, guys,

We are considering build hundreds vis into custom steps so users will configure them more easier especially for those with limited TestStand background.

This is a definitely tedious and burdensome work. Is there a tool to create these custom steps automatically?

 

Please advise. Thanks.

How to customize TestStand Login & Logout Procedure to read list of available users from ini file

$
0
0

I want to change TestStand Login & Logout Procedure:

 

1. When TestStand is opened, TestStand must read list of users that are defined in the sistem file: can be ini file, txt file, excel file. The drop down menu in the Login popup menu must be populated with that users.

 

2. User then select his name from the drop down menu in the TestStand Login popup menu.

 

3. List of users should also tell TestStand if the user that wants to login is educated correctly so that he can login to teststand. If this is true, user can login to teststand, otherwise TS tells user that they don't have competences to use TS.

 

I used this link to customize TestStand Login & Logout Procedure:

https://forums.ni.com/t5/Example-Programs/Customizing-the-TestStand-Login-amp-Logout-Procedure/ta-p/3619840

 

I have copied FrontEndCallback.seq and Code Modules to TestStand Public-Components-Callbacks-Frontend folder.

 

Now I need help with moderating LoginUser.vi to realize the project.

 

Thank You for Your help

Viewing all 6241 articles
Browse latest View live


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