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

How to access the columns of measurement, low limit, ... in the report in my sequence

$
0
0

Hi everyone,

 

I created a little testsequence of a HDD-check as you can see:

 

Report.png

 

Now i was just wondering how to access the columns of measurement, low limit and high limit in the upper box, so that i only need one box for this sequence and don't "waste" so much place on my report.

The lower box is created with the "Numeric Limit Test"-function.

 

Is there any setting in my sequence, where i can access these things?

 

Settings of Sequence.png

 

 


Difficulty in downloading TestStand 2017 SP1 32 Bit

$
0
0

Recently I've purchased a TestStand Deployment License (777774-35) in order to set up a test system. This license has been registered to my account.

This test system specifically requires me to download TestStand 2017 SP1 32 bit in order to set it up correctly, however when I attempt to download this version from the NI website I get the following message:

 

"Previous versions are available only to customers with an active subscription license or service agreement for this product. Purchase a license or update your service information in your NI User Account to access locked versions."

 

Since I have already purchased a license I'm not exactly sure why I do not appear to qualify for the download of this older version?

Labview opening and causing error during TestStand Deployment

$
0
0

Hi All,

 

I am currently trying to create a deployment for my test stand code. I have set up the project in TestStand Deployment Utility and analyzed it, no problems show. However when I try and build it part way through labview pops up on my task bar. Then the build fails with the following error:

 

Open VI Reference in AB_Source_VI.lvclass:Open_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_API Do Two Step Build.vi:4020001->AB_API Build.vi:4700001->NI_AB_API_Build.lvclass:Build.vi->NI_AB_API_SDIST.lvclass:Build.vi->SDBuildClass_2018.lvclass:Build.vi->Build Distribution - TestStand.vi->Build VI Distribution 2010 - TestStand.vi->Build VI Distribution 2010 - TestStand.vi.ProxyCaller
VI Path: C:\Program Files\National Instruments\LabVIEW 2021\vi.lib\Utility\error.llb\Error Cluster From Error Code.vi

 

Within TestStand Deployment Utility I get the recommendation:

LabVIEW is using a file with the same name as one of the destination files. National Instruments recommends that you close LabVIEW before you build a deployment.

 

I have checked and error.llb is not something I have in my files. Honestly it seems like TestStand Deployment Utility is opening up Labview then complaining about it. I have no idea what to do?

 

Regards,


Ray

Open multiple terminal in RasPi from TestStand

$
0
0

Hello all, i have a solution to communicate with RasPi through SSH in TestStand.

However, i need to open two terminals at the same time and write some commands to this two terminals.

Can anyone advise if there is a way to open two terminals at the same time?

Thank you.

 

Best regards,

XJ

UUT Serial Number and Station ID

$
0
0

I develop the C# dot net to run the TestStand API.

I would like to check the SN format and some activity before let the test start.

 

However I have the problem to pass the UUT Serial Number from TextBox to TestStand.

 

I disabled the prompt to ask the Serial Number in TestStand model but I am not success to set the UUT Serial Number to TestStand and every times that run, the SN in REPORT always show blanks.

 

Anyone know the example code from C# or another program, please help to guide me or share?

Teststand Errors

$
0
0

NI error.PNG

Getting these errors at runtime. Tried changing to "Load Dynamically" but a different error is thrown.

 

LabView 2020 is installed, as is NXG and LabView 2020 Runtime.

Custom Plugins: TS Adding new entry every time I change the path of my workspace

$
0
0

I have worked to create a "portable" TS coding environment... that is, I can have multiple copies/versions of my codebase on disk in a folder anywhere:  Ex  c:\Test, c:\Test_newFeature, c:\subfolder\productionTest, etc.

 

I launch TS with an environment file that points to the relative paths within that folder, and I am using a TS workspace for coding.

 

I added a custom plugin to replace the std TS report generator.  This is working.

 

However, whenever I launch code from a new folder and run, TS appears to re-add the custom plugin from the new location, even though the old relative location works fine.  This is a problem.

 

Is there a setting that prevents TS from adding new custom plugins?

NI MAX - 42HG08DD

$
0
0

Hello, I receive the following error when opening NI MAX since a Windows 10 update happened last week. This is preventing configuration to all the instrumentation and halting testing. 

 

Any resolutions steps would be greatly appreciated. 

 

j_kelly_0-1692609411905.png

 

Thanks


Request to get status of development license for Test Stand

$
0
0

Hello,

 

I have Serial Number and Part Number for the TestStand Development System,Windows. And i am using the SN for activating Teststand to 2020 and it shows me invalid serial number for that license. Could you please help me if i can use this SN to upgrade test stand to 2020 or the one i am using is expired or it is for specific verison?

 

Please let me know. I have attached the Snap of SN information.

 

Thanks for the support,

Ami

Problems passing a variable from a python code into my teststand

$
0
0

Hey everyone,

 

i have some problems with passing a variable from a python code into my ni teststand. it always says "-17311; Could not accept the parameters passed in."

 

I think all my variables have the correct types and settings:

step settings.png

subsequence.png

Could it be that there is something wrong with my python code?:

python code.png

 

I tried the whole thing exactly in the same way but just with a way "easier" python code and it worked perfectly fine (below), so i assume the error is because of the python code.

working python code.png

it would be pretty nice if someone could help me with this! Thank you

Getting steps properties in c#

$
0
0

I have q question regarding getting step properties.

 

I get step in UIMessageEvent:

 

step = e.uiMsg.Thread.GetSequenceContext(0, out frameid).PreviousStep

 

I can see everything I need while debiugging in Visual Studio:

 

mikeccc_0-1692793839275.png

 

But when I try reading (i.e. 'Comment') using usual way, I have an error: Unknown variable or property name 'Comment'. Error accessing item 'Comment':

 

step.AsPropertyObject().GetValString("Comment",0);

 

I must do something wrong.

 

Thanks

Mike

 

 

Project 1 Sequence file missing VIs after working on Project 2 Sequence file.

$
0
0

Hello All

 

I have several TestStand codes for different products, I store each product's TestStand VIs in a separate folder. So when working on one product I don't change the other product's VIs. Or that's what I hope for.

 

Below are my different products in a separate folder:

 

1.png2.png

 

Last week I worked on Proloc II_Full_Test_01_22_A_01.seq and got everything to work.

Today I worked on another product (NC_Relay). Then out of curiosity, I opened Proloc II_Full_Test_01_22_A_01.seq again to see if it still runs. Now there are VI's missing. It happened in the past as well. Every time I change to another product the other product gets messed up.

 

I don't understand why. Each product's VIs are in separate folders. The only common VIs are the OMICRON driver VIs (See below)

 

3.JPG

 

What can I be doing wrong, see the Error I get in TestStand. Below

 

4.jpg5.png

 

 

 

If Statement vs Precondition - Which one is best practice?

$
0
0

What is best practice for when to use an If Statement vs Precondition to determine which code to run?

 

If Statement Example,

If A

   then Run B;

If C

   then Run D;

 

OR.............

 

Precondition Example For Same Code Above,

Precondition A then Run B

Precondition C then Run D

 

Thanks!

Array Manipulation

$
0
0

Hi... I'm going to try to explain what I am attempting to do.

 

I have a LabVIEW VI that returns an array of 64 positions.

 

Teststands call this VI 8 times in parallel, so I will be storing 8 arrays, one for each thread.

 

I need to concatenate the arrays into a single [8][64] array from each thread to send it to another VI in LabVIEW.

 

Thanks!

Need Help Navigating Through Subsequences in TestStand Using Python

$
0
0

Hello everyone,

I'm working on a project involving TestStand and Python. I aim to optimize the runtime of a TestStand sequence by pre-fetching global variables and step-specific information for each step in the main sequence and its subsequences. This is to efficiently populate a custom test report.

What I'm Trying to Do:

  • I plan to run a Python script as a module in TestStand before initiating the main sequence.
  • This Python script is designed to traverse the main sequence and its subsequences to fetch information like TestStepName, FileGlobals.Test_Sequence, FileGlobals.xx, etc.
  • My current sequence already fetches this information but does so inefficiently by querying the TestStand API during each step of the sequence through LabVIEW VIs. The goal is to make these VIs purely functional for tasks like measurements, reading LIN frames, sending LIN frames, etc., and to fetch test results when necessary.

Issue:

  • My existing Python script runs into an infinite loop because I can't seem to access the context of the subsequences.
  • While the script can successfully navigate the main sequence to fetch required information, it fails to enter any subsequences to evaluate their steps.
  • I need guidance on how to access the context for each subsequence so that my script can recursively fetch the information for all steps.

I've consulted the TestStand API documentation but have not found a clear solution to this issue.

Has anyone else faced a similar challenge or has any suggestions on how to resolve this? Your insights would be much appreciated.

Thank you in advance.


Ni TestStand-Veristand Patch File

$
0
0

Hi,

     I have to link NI Veristand with the NI Teststand. I'm having trouble installing the "ni-veristand-2017-steps-for teststand_8.1.0.173_windows_x64.nipkg" file using the NI Package Manager. NI package manager showed me some errors. An error screenshot is attached with the query. Please let me know if I missed any documents or other items. On my system, I had previously installed another patch file. That was removed.

Upgrading project from version 3.5 to latest

$
0
0

Hello,

 

We have project written on version 3.5 installed on XP. I want to port project to latest version of TestStand in order to run it on windows 10 environment. I've been looking for experienced freelancer or that can do the porting on several platforms with no luck. Looking here for someone can help on freelancer basis or company on contract basis.

Thank you.

Calling labview-vi and set Visa Resource Name

$
0
0

Hello,

i inserted an instrument driver which was downloaded from ni website.

In here all the VIs like "initialiate, Reset, Selftest" have the parameter VISA Resource Name.

The value for VISA Resource Name.Device Name and VISA Resource Name.Session Number is stored in StationGlobals.

 

Currently i manually add this global link to the Parameter value.

 

Is there a faster way to do this? Like a preexpression?

 

Thx

SQL file to create 2022 default schema

$
0
0

I'm following along with the KB article: Logging TestStand Results to a MySQL Database Tutorial and Log Test Results to Databases with TestStand. I am attempting to generate a new MySQL schema for the logging results to a MySQL database. I've managed to get the SQL file generated, but the generated sql file seems to have some errors in it. 

 

First, the PROP_ANALOGWAVEFORM table is generated twice. 

stanxiacom_0-1693518278774.png

 

Second, the text following the "CONSTRAINT" calls is causing an error when attempting to create the table. See here when attempting to create the UUT_RESULT table:

stanxiacom_1-1693518804568.png

 

I found some KB articles and this forum post talking about looking in the %TestStand%/Components/Models/TestStandModels/Database directory for the SQL files. It seems those files don't exist for 2022. 

 

Is there something I'm missing? What is the correct procedure for generating a new MySQL database with TestStand 2022?

 

 

Environment Information

  • TestStand 2022 Q4 (22.0.0.49152) 64-bit
  • Windows 11 Pro 
  • MySQL ODBC 8.1
  • MySQL 8.0.28-0ubuntu0.20.04.3

Representation of Data types

$
0
0

whenever i try to change representation of variable by default we have only 3 types of data types, and in that 3types it's automatically taking double data type.if i gave signed integer data type It's showing error why?

 

Viewing all 6255 articles
Browse latest View live


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