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

Teststand parallel execution

$
0
0

Hello everyone! Pls help🙏.
In the test stand, I am supposed to run a seq for 4 sockets in parallel. It's is a batch process model. In the main vi. If I give seq(one thread at a time) in step setting. It takes 15secs to complete. And if changed to parallel (all thread enter simultaneously) it takes the same time. How to reduce the delay.
In the setup, we have a couple of vi which is for power up and it has a step setting of one thread only.

 

Thanks in advance


NI CTD Exam

$
0
0

Hello Everyone

I am planning to take the CTD exam by the end of this month can anyone suggest me what type of questions are appearing and also help me out to qualify for the exam.

Thank You.

Returning only final string of SubSequence

$
0
0

Hello

I have developed a Subsequence for my Main sequence, but struggle with the layout of the report. As you can see on the attached picture, I have concatenated the strings into one whole defined with "Bluetooth Address", but would now like to remove the steps "GetBTAddr 0,1,2,3" on the report.

I tried for the subsequence -> Disable result recording for All steps -> and then going into the subseq for the function concatenating the strings, under Run Options, to change the "Result Recording Option" to "Enabled (override sequence setting)"

I get errors on report then. Please help me out. Thanks in advance

Teststand 2014 alter "On Run-time error" in a statment

$
0
0

Hello

 

I use Teststand 2014 and I want to alter the Station option --> execution --> On Run-Time error in a statment. What is the API call for that ?

 

Thanks in advance

How to make status come up as "Passed" and not "Failed"

$
0
0

Hello

I do not understand why my sequence passes the first initial step, but then fails the Subsequently two steps. I don't seem to be able to change any limits.

I have attached a picture of this (and the sequence file)

Thanks in advance!

BR Andedam

TestStand doesn't communicate with a cRio

$
0
0

Hey guys,

 

I solve an interesting problem at my work: We have a tester based on cRio, which is controlled by the TS sequence under the base deployment engine.

 

When I make the deploy and test it on the laptop with the TS Development, everything works correctly (I can read the inputs, set the outputs etc.), but when I use the PC with TS Base deployment engine, the sequence starts to run without reporting any error and the VI's in sequence doesn't communicate with the cRio at all (I cannot set or read anything).

 

I tried to check the VI's, which seems to be executable with all dependencies, I can see the cRio in MAX and I can approach its IO's in the Distributed Systems manager. I don't think, that there's a problem in the HW, but I suspect that something is missing in the deploy, or that there is some problem with the network shared variables I use in the code.

 

I couldn't find a similar problem on the forum, could anyone help me with that? Thanks in advance!

 

Simon

"Cannot Index an Empty Array"

$
0
0

Hi

I am trying to retrieve the product ID of a device, and get it printed on the UUT report. Although when I try this, I am met with an error saying "Cannot Index an Empty Array" 

From the plugin I use I get the following HEX: 

Andedam_0-1595928569932.png


From which I try to extract the data with the following expression:

Andedam_1-1595928655970.png


When I execute I am met with the error "cannot index and empty array" 

Andedam_2-1595928705078.png



I have attached my sequence file. Thanks in advance, BR Andedam

Run Test UUT(F5) error

$
0
0

When I Run Test UUT (F5),this is a error massage box,the massage shown;"

Type 'NI_ModelPluginComponentDescription' is invalid because it conflicts with the existing type of that name. To avoid this error message, you should open the files with conflicting types in the Sequence Editor, resolve the conflicts and resave the updated files.
The sequence file 'C:\Program Files (x86)\National Instruments\TestStand 2019\Components\Models\ModelPlugins\NI_DatabaseLogger.seq' could not be loaded. (TSAPI)

If the type conflict is related to model plug-ins or you are not sure what to do, try doing the following in order to resolve the conflict and correct the problem:
1) If you are using the Offline Results Processing Utility pause all active profiles or exit the application.
2) In the sequence editor, open all sequence files under C:\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Components\Models\ModelPlugins\ and C:\Program Files (x86)\National Instruments\TestStand 2019\Components\Models\ModelPlugins\. Save any files that are modified.
3) With the files open, bring up the Result Processing dialog using the Configure->Result Processing... menu item and dismiss the dialog by pressing the Ok button.
4) If any of the files you opened are marked as modified (i.e. an asterisk appears next to the file name in their caption) save them to disk.
5) If you are getting this error while using the Offline Results Processing Utility, try processing the result files again."

What is that mean?


Copy step in sequence triggers custom code module

$
0
0

Hello,

 

I'm using the OnNewStep substep in my project' custom steps to create unique ID for the steps when added to the sequence.

But my problem is that this is not triggered when any step is copied.

 

Do you know if there is any entry point which I could use to trigger my code module?

TestStand Simple User Interface Work with Multiple Test Stations

$
0
0

My goal is to have a single user interface that can control multiple test stations that will all be calling the same TestStand sequence in parallel. I want o be able to control each test station separately from the user interface. Is this possible to do with the simple user interface? Does anyone have any suggestions or readings on how to do so?

Call a Subsequence From Substeps In Custom Step Type

$
0
0

Hi There,

 

I have a sequence file that calls a number of other sub-sequences which I want to turn into a custom step type, however, I don't seem to be able to set a post step of type "sub-sequence" in the configure sub-steps dialog. See the screenshot below. I have already set to display the hidden sequence file adapter in configure\Adapters from the runtime menu. I also don't want to use the Default module option since this will not update throughout my test sequences if something changes in the future.

 

semaj2020_0-1596516345408.png

 

What am I missing? Any ideas would be greatly appreciated!

 

Thanks

 

Security for Users.ini File

$
0
0

Hi All,

 

I've noticed that the security set for the User Management File (Users.ini) is absurd as when the users.ini file is deleted, the teststsand creates a new Users.ini file with a reset administrator user. And it was noticed that the newly created cfg file contains the administrator user with no password is created. I has a doubt.

 

1. Can the Users.ini file can be secured using Teststand itself, which I meant that can we give some unique password to the newly created administrator user as login apart from blank password.

 

I opt to secure the file using windows credentials. but a help to set a password for default user will be appreciated.

 

A BIG THANKS IN ADVANCE

LV with Producer\Consumer schematic in Teststand

$
0
0

Hello everyone,

 

I have a very complex experiment using several parallel statemachines. My Main-Machine is Event-triggered with the buttons on the UI. The whole project is based on the producer\ consumer example from NI.

 

Now I want to start testing a much wider range of points (e.g. frequency sweep from 0-10kHz in 1Hz steps). Normally I would set the frequency (and other inputs) and press start on my Main-Window. Some measurements and time-crucial events are triggered and the results all written to multiple measurement files. After each measurement a report is generated based on the results from each file.

 

Now my question: Can I use a producer\ consumer VI in Teststand and Loop over an input variable? How can I queue elements from Tesstand to the VI?

 

Or can I only use seperate VIs (without while loops inside that need external inputs) in Teststand and synchronize them via its own synchronization palette? This would mean completely separate the existing project and rebuild it fresh in Teststand with individual VIs completing my tasks.

looping a teststep

$
0
0

I have made a sequence file in Teststand 2014, wich send a message ("step failing") to a userinterface when a teststep is failing (SequenceFilePostStepFailure). The problem now is, when i use a teststep in a loop and the first itteration is failing, it send the "step failing" message, but when the next itteration is passed i want to send a "step passed" mesage somehowe. 

So i need a "SequenceFilePostStepPassed" callback but this isn't there in Teststand. 

 

What is the best way to solve this problem ?

 

Thanks in advance.

 

 

Using Type Files When Committing To Source Control

$
0
0

Hi all,

 

I have a project that will use custom steps types and custom data types. I would like to know how to manage this in source control.

 

The problem I have is that when I add a types.ini file, it does not allow me to enter a relative path (relative to my workspace) to its location. So I try to use the MyTypes.ini from the default <TestStand Public>/Components/TypePalettes/ directory. The problem with this is that If I revert to a previous version form source control on my deployment machine, the MyTypes.ini is not going to be reverted and I will get errors when they dont match the sequence files I just reverted, so I would have to manually do this which is not sustainable. 

 

Does anyone have a good idea of how to approach this problem? I basically want to use source control to develop the test on my development machine and check that code out of source control on the deployment machine without having to do any extra steps if I just want to revert to a previous version quickly. All the type files should go with my source control version so I can test a previous release but I cant use absolute paths because it may be different on the deployment machine. 

 

Thanks


How to wait for all threads created in a loop?

$
0
0

Hi, 

 

I am somewhat new to teststand. I have a situation that I can't find much information on. I suspect there is some simple solution like an unchecked box somewhere.

 

I have a For Loop that starts a varying number of asynchronous measurements on separate cDAQs in new threads. (it can be 1, 2, or 3 for now but could be expanded in the future) Each measurement is the same sample rate and number of samples, but there is some variance in the time it takes to send the command and return data from each cDAQ. I want to wait for all the measurements to complete before continuing and making calculations on the data. It seems that my 'Wait for Thread' is only waiting for the first thread to finish and not all of them. 

 

Is there a way to wait for all (1-3 threads) of them? For now my best solution is to change the "Wait for Thread" to just be the expected measurement time plus a little bit of "cushion". 

 

Sequence.PNG

 

WaitSettings.PNG

 

 

 

Teststand 2019 / LabVIEW 2019 - Packed library , not locating VIs after update packed library. anybody else?

$
0
0

I'm seeing this problem more and more, really annoying: 

 

 - Teststand step that calls a packed library

 - Update the packed library. All is good in LV. 

  - Teststand browse the packed library and the NEW or UPDATED VI is not visible. 

 - Close Teststand. Re-open. Browse the packed library again and VI is now visible. 

 

Anybody else seen this? 

 

I've tried reloading the step, unloading modules, closing LV, etc. nothing works but close TestStand and re-open. 

 

How to hide data in custom step so that test developer can't modify it in any expressions

$
0
0

Hi

 

I'm trying to create a custom step where I have few set of data which test sequence developer can edit in TestStand (using pre-expression), but I also have other set of data which test developer should not be editing from TestStand (forbid in TestStand).  How can I achieve this?

 

Usecase,

  1. Test developer configure the custom step with Edit VI.
  2. Edit VI saves the configuration to the step (like Step.Properties).
  3. Then on top of it test developer edits the same configuration in his pre-expression, which is causing workflow confusions.
  4. Finally when he runs the sequence, it confuses which configurations is running and which is not.  Whether one selected in Edit VI or one given in pre-expression.

 

Thanks,

AJ

 

Thanks,

Ajay.

Report Options Parameter access through Labview

$
0
0

Hi all,

 

I'm stuck inside the report options that i need to create a soft GUI which need to populate the parameters in the report options. I there any way to access the parameters in Report Options using property nodes. A hand of Help will be Appreciated...

 

A BIG THANKS IN ADVANCE

TestStand Database Table relationship ID's missing below UUT_Result : Step_Result using Microsoft SQL

$
0
0

First, I'm not a database person, but I am trying to get database logging turned on in order to mine test data anyways.  Instructed to use Microsoft SQL.  TestStand (2016) sequence is working fine.  When enabling database logging, the default schema order in Teststand resulted in errors when the sequence tried to write to the database.  Not really knowing why, played around with reordering the schema:

 

UUT Result

Step Result

Step SEQCALL

STEP NUMERICLIMIT1

STEP NUMERICLIMIT2

PROP RESULT

PROP_MULTINUMERICLIMIT1

PROP_MULTINUMERICLIMIT2

....

 

It was only after moving up PROP_RESULT between numericlimit and multinumericlimit did teststand stop reporting an error when writing to the database.  On another test application, encountered similar issues, and had to also swap numericlimit1 and numericlimit2, so 2 was above 1.  I have no idea of the ramifications of what this does.

 

I then use TestStand to create the SQL file, which looks to be good, no error reporting by TS.  When I run the SQL file in the database viewer, it creates errors.  

 

"-- 1. Multiple instances of 'CREATE PROCEDURE' SQL commands are present for the procedure 'InsertNumericLimit'. Please retain only one valid instance of the command and remove the others.

-- 2. Multiple instances of 'CREATE PROCEDURE' SQL commands are present for the procedure 'InsertPropResult'. Please retain only one valid instance of the command and remove the others."

 

Those duplicate procedures are identical, except they are inserting the results to two different locations.

 

GO
CREATE PROCEDURE InsertNumericLimit
@pID uniqueidentifier,
@pPROP_RESULT uniqueidentifier,
@pCOMP_OPERATOR varchar(32),
@pTHRESHOLD_TYPE varchar(32),
@pNOMINAL_VALUE float,
@pUPPER_THRESHOLD float,
@pLOWER_THRESHOLD float,
@pHIGH_LIMIT float,
@pLOW_LIMIT float,
@pUNITS varchar(255),
@pSTATUS varchar(255)
AS
INSERT INTO STEP_NUMERICLIMIT2 ( ID,PROP_RESULT,COMP_OPERATOR,THRESHOLD_TYPE,NOMINAL_VALUE,UPPER_THRESHOLD,LOWER_THRESHOLD,HIGH_LIMIT,LOW_LIMIT,UNITS,STATUS)
VALUES (
@pID,
@pPROP_RESULT,
@pCOMP_OPERATOR,
@pTHRESHOLD_TYPE,
@pNOMINAL_VALUE,
@pUPPER_THRESHOLD,
@pLOWER_THRESHOLD,
@pHIGH_LIMIT,
@pLOW_LIMIT,
@pUNITS,
@pSTATUS)

 

One inserts to:

 

INSERT INTO STEP_NUMERICLIMIT2 ( ID,PROP_RESULT,COMP_OPERATOR,THRESHOLD_TYPE,NOMINAL_VALUE,UPPER_THRESHOLD,LOWER_THRESHOLD,HIGH_LIMIT,LOW_LIMIT,UNITS,STATUS)

 

and the other identical procedure inserts to:

 

INSERT INTO PROP_MULTINUMERICLIMIT2 ( ID,PROP_RESULT,COMP_OPERATOR,THRESHOLD_TYPE,NOMINAL_VALUE,UPPER_THRESHOLD,LOWER_THRESHOLD,HIGH_LIMIT,LOW_LIMIT,UNITS,STATUS)

 

 

When I used my very limited database skills to try and join the tables to make some sense of the various tables, my JOIN attempts kept coming up blank.  I looked at the contents of the tables and I can see that I have valid ID's that link between UUT_RESULT and STEP_RESULT tables, but anything below that can't be linked.  When I looked at the other sub tables, I can't find an ID to link back to STEP_RESULTS, and some of the tables are completely blank.

 

Any idea on what I'm doing wrong or how to resolve?  Thanks in advance.

Viewing all 6530 articles
Browse latest View live


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