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

Unexpected error happen during the restart the GUI software

$
0
0

Hi, all

There is an Unexpected error happen during the restart the GUI software,following is the error

"

A newer type cannot automatically load because an execution is running.You can load the type by selecting cancel, terminating all executions, and then manually loading the file that contains the newer type.

Type 'NI_SequentialModelData' in 123.seq (E:\ABC\123.seq) is different from the currently loaded type 'NI_SequentialModelData'.

Currently Loaded Type
Version 5.1.0.1
Last modified: 2013/4/22 14:39:05 (Older)
Category: UserTypes
Location(s): SequentialModel.seq

Type in File
Version 14.0.0.0
Last modified: 2014/9/3 0:07:37 (Newer)
Category: UserTypes
Location: 123.seq

Summary of Differences:

NI_SequentialModelData (Value, Flag, or Representation Difference)
NI_SequentialModelData.StationInfo.AdditionalData (Value, Flag, or Representation Difference)

"

Actually, I just ran 1 execution, but it shows that i have run at leat 2 execution from the error message. Then it caused the conflict. I really don`t know where can this conflict occur.

111111.png

Can anyone  help me.

Thank you in advance!

open28


Programmatically hide items (Step Type or Templates) from the insertion palette TestStand

$
0
0

Dear Community,

 

I am wondering if it is possible to Programmatically hide some items like step types or templates from the Insertion palette. I am using LabVIEW to developpe a user interface that can choose which item is shown according to the logged user.

Digging in the forum I found this two links :

https://forums.ni.com/t5/NI-TestStand/Hide-groups-in-insertion-palette/m-p/3622616#M54460

https://forums.ni.com/t5/NI-TestStand-Idea-Exchange/API-for-the-insertion-palette-for-step-types/idi-p/1530380

which helped me a lot to achieve the required functionnality using the class  EngineInitializationSettings   or by setting a new environment and modifying the  GeneraleEngine.cfg file directly. but the my real need is not achieved yet. I am wondering if, in newer version of teststand, there is an API function that can directly tackle the problem?

 

Best Regards 

How to Read/write attributes of local variable of "Object Reference" type

Wrong search directory with LV run-time engine. Correct with development system

$
0
0

Hi all,

I am trying to run some code that is working on an older system, but I'm facing a rather strange behaviour when it comes to loading VIs.

This is standard VI, but added to a project. When I open the LV project, it shows the correct path.

 

LabVIEW development system loads VI from LabVIEW directory as referenced by the LV project fie.

Paulius_0-1585814015065.png

LabVIEW run-time engine fails to load the VI, because it searches for it in TestStand folder instead:

Paulius_1-1585814100903.png

 

What could cause this and how could I solve it? Preferably without touching code modules.

What are .opt and .tso files?

$
0
0

What is stored in these files?  Can they be ignored from source code control?

 

Thanks!

Deployment Utility Error -19041

$
0
0

I'm trying to create the deployment of TestStand but I'm getting the Error -19041 "Could not copy the Following files"

 

The file is a VI that is part of a Labview Class, the name of the VI is Close.vi, I have many VIs with that name but all of them are part of a different Class.

 

Has somebody had this issue?

error.png

Teststand 2016 exercise files needed

$
0
0

Good morning everyone,

 

I recently started a new job, and currently am taking the NI TestStand introductory course. However, the TS version at work is 2016, SP1... while the course exercises are written in 2017 version. I can't run the exercise sequences from my version here. Is there a trick to convert the new exercise files back to previous version, without a newer version of the software? Or can someone tell me where to download the exercise files written in older version of TS?

 

Thanks a lot!

 

Bests!

Using instance of IPropertySpecifier in custom step type edit tab

$
0
0

I've been following the PDF here to create edit tabs for some step types, I'd like to add in a way to manage a string array. The issue is I'm not sure what I'm supposed to pass as the rootProperty object parameter of GetValue() and SetValue() when I have an instance of IPropertySpecifier. 

 

Example:

// Get Specifier of Array of String property 

IPropertySpecifier specifier = StepCollection.GetPropertySpecifier("Items"); 

specifier.GetValue(not sure what I pass here) 

Usually you set the PropertySpecifier of a control but I can't see a control to manage an array so I'm trying to manually populate a flow control. 

 


.Net app hangs when using ApplicationMgr and Engine

$
0
0

I am writing a .Net WPF app to generate a TestStand app.  I create an ApplicationMgr object and get an Engine object from that (appMgr.GetEngine).  When I terminate my app, it hangs.  Through a series of experiments, I have traced this to the Engine object.  If I comment out its creation, my app terminates fine.

 

I wanted to try calling the various CloseXXX and Shutdown methods, but my app isn't getting far enough to invoke them.  For example, my app hangs while shutting down the main window and I do not have any means (destructor, Dispose, etc.) to call those methods.

 

Am I not using the ApplicationMgr and Engine in the proper way?  Is there something else I need to call?  An option I need to set?  Regarding how I create the objects, it is nothing special:

 

_appManager = new ApplicationMgr();
_testStandEngine = _appManager.GetEngine();

 

 

Reduce any delays between step execution

$
0
0

Hello guys.

 

I encounter a little problem because I need to execute two steps in a very short time, the second step must be executed in maximum 50-70ms after first. Sometimes it exceeds this time so I am searching a way to exclude any delay with can increase this time. I also serialized all executions. Maybe executing in two different threads, but I don't don't know how to do this.

 

Ty

TestStand Report is blank

$
0
0

I am currently running the Mobile Device Test Demo program in TestStand. I have used both the execute Test UUTs and Single Pass. The sequence file runs properly and shows the status of the steps. But unfortunately the report page is blank. I went to Configure- Result Processing and everything is enabled over there. I dont understand why my TestStand don't create a report. 

Count how many times a step is executed

$
0
0
Hello. Is there a method to count how many times a type of step is executed? I have multiple uses of this type of step so I search for a easier method putting a post-expression at every call of this step.

SystemLink Error -251251

$
0
0

Hello,

I am new to the SystemLink. I am trying to implement it in my program and view the results on Test Monitor. When I run the program, I get an error as shown in the screenshot below. Surprisingly, when I copy pasted the systemLink code (excluding my own program) in a new vi, it is working fine. It is giving the error only when implemented with my program. What could be the possible reasons?

 

ajinkya007_0-1586429410893.png

Thank you!

Dynamically rename report file while still loading in sequence editor after execution

$
0
0

Hello, I'm looking for help with the following problem. My sequences run tests for a number of different product families, and I want the reports to be stored in separate folders on a NAS based on the product family, but the sequence files don't live on the NAS, so I can't just use the client directory macro. From researching, it seems like the best way to accomplish this is to use the GetReportFilePath callback and rename both Parameters.ReportFilePath and RunState.Caller.Locals.ReportPath (although only the latter may be necessary). This leaves a 0-Byte "ghost" file with the original name/location specified in the Results Configuration page, but that's tolerable. Unfortunately, this makes it so that the report does not appear in the report tab after execution, it seems that TS is still looking at the ghost file, not at the actual file.

 

Is there any way to change that? I've looked through the TestReport callback but it's not clear to me what I would change, or when that even runs.

 

I could also potentially implement this by doing some complicated logic inside the report name expression box, but this is hampered by the macros executing after any logic, and the caller actually being the process model instead of the sequence file whose properties I'm interested in (although that could potentially be worked around I didn't see any examples that did so).

 

Any help would be appreciated.

 

Thanks,

Stuart

Thin dotted lines around step

$
0
0

Does anyone know what the thin dotted line around the step means?

 

 

 

 


Testsand Python interpreter session crashed

$
0
0

I'm running a python step in teststand that the only thing that is doing is trying to ssh to a specific IP, if this IP is not present in the network python will give you an error related to "socket.timeout: timed out" which is expected, the problem is when you try to run any python step again you'll get the following message: 

 

Error: Python interpreter session crashed. If a console is displayed, closing the console will crash the interpreter. Complete all the executions, unload all modules and retry executing the sequence file.[Error Code: -17500, Operation Failed. ]

 

In this case you would need to stop your sequence and unload all the modules to continue running, is there a way to avoid this problem and keep getting any error that could happen in python?

 

Teststand 2019 and Python 3.7

Thanks

Parallel execution of steps in Teststand within one sequence

$
0
0

I need to do parallel execution of few steps in teststand sequence to save time. For example, Firstly, I am doing the measurements and then at the end saving of data through datalogging. So I wanted to implement some thing like if the measurement of one device is completed and saving of data is getting performed, then in the same time, measurement of second device starts. So there parallel execution of steps is required. I need help that how I cam implement this using  batch synchronization steps.

Using Labview Front panel to assin value to Teststand variable

$
0
0

I have a teststand sequence where in the beginning I added an action step which calls a VI. This VI just takes some array values which i then send to an array in Teststand. I know I can directly assign the array values in Teststand. But i wanted to use the Labview Front panel to input the values. I also turned on the "Show VI front pnael' in Teststand. I thought when I run the sequence the action step would show the VI front panel and I will be able to assign the values to the variables using that front panel and then press okay and the testsand will move to the next step in the sequence. But when I run the sequence the VI front panle is shown just for a slight second and it continues to the next step without giving me the time to assign any values. Is there a way I can do this?

 

Thank you

Interfaz En Labview Para TestStand

$
0
0

Hola que tal A Todos 

 

Me encuentro desarrollando una visualización para un batch de pruebas, seria de mucha ayuda si me pudieran facilitar un manual para la visualización o si ya alguien desarrollado alguna podría facilitarme el código fuente para comprender el funcionamiento de Sequence File Callback para PreBatch como PostBach dado que la dll que usa por default teststand no la comprendo muy bien 

 

Muchas Gracias Por su aportación

TestStand if statement

$
0
0

In my Teststand sequence I am ruunning a loop which is iterating for different frequencies. I need to assign a value for a variable for example,

 

For Frequency = 50Hz, K=1

For Frequency = 60Hz,  K=2

For Frequency = 70 Hz, K=3

............................................

............................................

 

I know I can put a if statement or use case structures, but the problem is i have a lot of frequency steps so it will mean that I will have a lot of if statement or case structures. is there an easy way to solve this?

 

Thank you

Viewing all 6527 articles
Browse latest View live


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