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

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


Calling a DLL in TestStand by reference

$
0
0

 Greetings-

 

I am writing a DLL for TestStand calling, but failed to call the DLL, please kindly find the attached Doc file and help me how to fix this issue.

 

Many thanks-

W

Cannot access TestStand Property

$
0
0

Hi

I have a Container of data stored under the 'Step' property in TestStand 2013 sequence (same location as the TS, Description and Result properties)  entitled 'Data' which contains various values such as Low_value, Upper_Value etc.

 

I am trying to construct a custom report generator using LabView (2012) and want to retrieve the values stored in the container, at runtime, and currently have no clue how to reach it. 

 

Any suggestions gratefully received.

 

 

 

 

Custom Model Plugin for non Result Processing Functionality

$
0
0

I have some functionality I wish to add to TestStand as a Process Model Plugin.  However, the functionality is related to how serial numbers are configured and parsed to extract UUT metadata and nothing to do with result processing.

 

Is it acceptable/recommended to create plugins that are not result processing specific?

 

I started by creating this plugin following the instructions here, which tell you how to make a plugin operate as part of the result processing - which means configuration info etc is held in 'ResultProcessing.cfg' and the config dialog I created for it is only accessible via the 'Result Processing' dialog.  I had this working successfully, but it just feels wrong that I am having to go into the result processing dialog to access functionality that is unrelated.

I have therefore been trying to create a separate model plugin to perform the Serial number formatting task.  Unfortunately there seems to be very little information about exactly how to do this.  I am finding snippets of information here and there but no definitive direction.

So far I have created a configuration entry point in my PM (which adds an item to the config menu) and can call my config dialog with a sequence call to my plugin sequence 'Model Plugin - Configure Standard Options'.  I realise that if a cfg file exists in the correct location, that modelsuport.seq will process it and the model plugin specific options become available in parameters - for use by the process model (more specifically the 'Model Plugin - pre UUT' sequence).  The bit I am really stuck on is how to create the cfg file in the first place (from the plugin options that my config dialog modifies) and I am certain there are other things that I am missing / need to consider - one of which is the purpose of 'category' (this plugin shouldn't have the 'result processing' category I am sure).

 

I am using TestStand 2017 and LabVIEW 2017.

 

Any information / links, words of wisdom would be most appreciated.

 

- Barry

issue with deployment utility

$
0
0

hello,

i tried to convert our project into deployment installer so that it can run on test system which has on Labview RTE and TS but it fails and shows an error on test sytem that missing sub vis. how can we include library vis (vi.lib, user.lib) to into installer as our vi use those as subvis. 

 

 

Remove Login at runtime

$
0
0

Hi

     I would like to remove the login option from File menu at runtime.  Essentially we are using the seq editor to run test and have found that when executing code the Login button is still active and can be used.  I am looking for the ability to programmatically modify the Teststand menus.    Currently using Teststand 2016.   Thanks    

Viewing all 6524 articles
Browse latest View live


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