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

Memory leak issue

$
0
0

Hi all,

After a long period of development, I'm testing the robustess of my process in loop.

I get a memory increasing of around 100MB during 15 hours.

It's quite a lot and I need to fix it for production usage.

 

I'm using TS2019 with a custom OI developed in LV2019 (I don' t have the source code of this OI)

I'm using a lot of .NET code modules so to investigate, I run OI under Visual Studio debugger to profile memory usage.

I don't see any CLR memory leak.

 

But when I close OI, I get a TS memory leak warning like that :

 

"References to PropertyObjects were not released properly.
Total number of objects: 163367
Number of top-level objects: 647"

 

I think a lot of TS object has not been released during my loop test.

But I don't know why and I don't know how to get the root cause.

 

please, can someone help me and give me some way to investigate on this issue.

Thanks in advance for your help

 


Load custom palette with TestStand API LabView

$
0
0

Hello, 

 

I'm still trying to generate programmatically Sequence for TestStand with TestStabd API for Labview. But I don't know how to load my customs paletteS with the API.

 

CASE 1 :

If I create manually an Action Step in TestStand to launch my VI, where I plug  "ThisContext" in order to have an Engine reference in my VI, it generate functional SequenceFile. In the VI, I create a custom step "SET_TAG" ( from TestInView, maybe someone knows it ?)

The created file is visible with the file "SEQ well created.PNG".

 

CASE 2:

In my case, I don' want to launch directly TestStand and a sequence to launch my VI.

I'd like to launch only my VI. But when I try it, my customs palettes seem to not been loaded. And I have an error.

The error is visible with the file "Problem Front Panel.PNG".

 

To launch my VI with TestStand and do my demonstration, I edited my VI.

The difference in VI between the 2 CASES, is visible with the file "iew VI OK and NOK.png".

 

 

So my question, is : how to load my customs palettes with the API ?

 

By advance, thank you

 

make Guest Login the Default

$
0
0

Instead of Administrator being default Login, I want to use make Guest the default login. Is there a property or menu selection to do this in TestStand 2016 or later?

TestStand cannot locate a LabVIEW Run-Time Engine of version '9.0' and bitness '64-bit'.

$
0
0

So as a start I'm still pretty new at Labview and Test-stand in general but I'm hoping there's a solution to these errors.

 

To give some context we used to have a computer that ran this sequence but in time was reformatted and used somewhere else, now we need to start up this project again but I am having issues getting the test stand to run the sequence. It was created back in 2012 so quite old and I have the latest test stand installed on this laptop so not sure if that is busy creating an issue with running it. I've attached some screenshots of the error's and as well as the computer specs.

 

Any advice as to how I can go to solving this problem?

Writing to mdb file with a base install deployment

$
0
0

Is there anything special I need to do to have TS write to a database file in a built application deployment?  I have set the results processing to do so on my development machine, but when I deploy the application to another system, it does not write to the file.  However, if I deploy the app to a system with Test Stand full development installed, it does work.  TIA

How to convert numerical values to signed 16 Bit integer representation.

$
0
0

Hi Team,

I have these two values:

  • Min value: 0xEECB
  • Max Value: 0xF1EC

When I create them as variables in TestStand they are interpreted as 61131 and 61932 respectively, but their true nature is that of signed 16 bit integers, and should be interpreted as -4,405 and -3,604.

 

How do I make it so my two variables (Locals.minValue and Locals.maxValue) are interpreted correctly? 

 

How to use a LabVIEW Module Stop Button to programmatically bring my Test Sequences to Cleanup

$
0
0

I have a MainSequence which has the following

 

Setup
SubSequence 1
SubSequence 2
SubSequence 3
Cleanup

 

In SubSequence 1, I have to launch a LabVIEW Module which monitors my parameters and allow me to terminate the application with a Stop Button. Inside my LabVIEW Module I will have an Event Structure to handle the Stop button Event. My desire behavior for pushing the Stop Button is to

 

- Stop the LabVIEW Module
- Have SubSequence 1 go to Cleanup immediately
- Have MainSequence go to Cleanup immediately once SubSequence 1 finishes execution

 

Can you recommend a clean way to handle this inside my LabVIEW Module Stop Button Event? I already have my Sequence Reference wired into the LabVIEW module. I assume to call some Sequence API in this case?

 

Any recommendations would be appreciated.

Thank you

TestStand 2014 Preload Progress Dialog Box Bug

$
0
0

Our team noticed recently a potential bug with the Preload Progress Dialog Box in TestStand 2014. We have a number of complex sequence files, some of which take many hours to execute, with many calls to LabVIEW 2014 modules.

 

For the extremely long sequence files (> 6 hours execution time), we found a problem with module preloading - under certain execution conditions (specifically when the sequence file is being called from a command line system exec via a LabVIEW application) the preload progress dialog box would begin running and permanently livelock itself, looping across a series of modules and never completing.

 

We've gotten around this issue for the time being by setting the Preload Progress Dialog Box Delay in Station Options > Preferences to -1, disabling the dialog box. But perhaps there is a root cause for this issue that we can address more directly?


Issue with loading the modules in TestStand while running a set of files in a batch

$
0
0

Hello,

When a set of .seq files are grouped into a batch and giving for execution, it is found that modules associated with certain files are not getting loaded for the execution.

But when the value for "Preload Progress Dialog Box Delay"  is changed to -1 instead of 3, everything seems to be working fine.

 

How does changing the "Preload Progress Dialog Box Delay" impacts the loading of modules during the execution??

Restore ActiveX connection for the LabVIEW Adapter in TestStand

$
0
0

I am trying to restore the LabVIEW and TestStand ActiveX connection if LabVIEW crashes.  I have an 'error catching' section in my TS sequence that will restart my VeriStand simulation if VS crashes and do any clean up before returning the the beginning of my TS sequence.  I have been able to handle any VS crashes and restart my hardware and software to get back to my starting point, however, as soon as LabVIEW crashes I can't recover.  I have the 'error catching' method due to my runs taking several hours.

 

LabVIEW will reopen and restart when trying to call a LabVIEW action after the crash.  The problem from here is that the ActiveX communication between TestStand and LabVIEW will not allow me to pass data between the two.

 

I am currently using the LabVIEW 32-bit 2018 (18.0) Development System (not the Run-Time Engine) and reserving loaded VIs for execution in adapter settings.  I have tried a combination of different settings as well.

 

Does anybody know how to restore the ActiveX connection between LabVIEW and TestStand if LabVIEW crashes? 

Change the report file path in NI TestSTAND 2017

$
0
0

I have a need to store test results from "Golden UUTs" in their own folder to be easily viewed. I currently under Result Processing for Test Results use " Specify Report File Path by Expression" "$(ClientFileDir)\\Reports\\$(UUTStatus)\\$(ClientFileName)_Report[$(UUT)][$(UUTStatus)][$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)". Can I just an IF statement that modifies the report path in "NI_ReportsGenerator.seq" when Golden UUT serial number is entered or must I create a new callback process model for TestReport, which I have no experience doing? What would be the most efficient way to do this?

 

 

Memory Increase & Crash with Basic Example on Repeat

$
0
0

I'd like to understand why memory increases until a crash happens when running even basic examples from the TestStand Editor or User Interfaces.

 

For example, if I modify the PreUUT of the Computer Motherboard Test shipping example to run indefinitely, TestSTand memory will increase until a crash occurs - at around 500 MB.

 
What is causing the memory to increase?

Also shouldn't it take more than 500 MB to make TestStand crash with reasonable PC specs?

Screen Shot 2020-02-18 at 1.45.15 PM.png
C::\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Examples\Demos\Computer Motherboard Test\LabVIEW

 

TaskManager.vi in this solution allows memory to be cleared up and can prevent the crash:

https://forums.ni.com/t5/Example-Programs/Task-manager-in-Labview/ta-p/3524904

 

 Other resources:

https://forums.ni.com/t5/NI-TestStand/memory-leak-teststand/td-p/1637816/page/2?profile.language=en

 

How do i propagate custom step changes into old sequence files?

$
0
0

Hello Everyone,

 

I knew, this question was already asked but i didn't find any optimal solution.

 

I have created a custom step and used this step into sequence & saved it. At this point everything is fine, and the sequence executes as expected. Then I closed the sequence.

 

So Now i have made some changes to custom step (eg  icon changes, add comment or add default additional result) and save it so it has new build version number.

 

When I loaded the original test sequence, I was prompted on which definition of the step type I wanted to use. I picked the currently loaded type from the Type Palette. I am expecting that sequence is updated with new custom step but it's not.it has not updated new icon, comment and additional result that i edited. Only build version number changed.

 

is there any solution to update old sequence file with new custom step?

 

Thanks in advance.

How to migrate users from one test stand version to another

$
0
0

I would like to know how to migrate users from test stand 4.2.1 on one computer to test stand 2014 on another computer.  Ditto for migrating users from one test stand 2014 computer to another test 2014 computer.

 

Thanks

recommend stable Teststand version

$
0
0

Hi, everyone

Can you recommend me  stable teststand and labview version that can be compatibility with Win10 64 bit system.

Now I am use the teststand 2014 and labview 2014, I think this version is not stable as teststand would be shut down when i use the labview to write something in system disk. I think the most problem is that the teststand is not compatibility with Win10 64 bit.

I hope to hear from you soon!


Getting bin number

$
0
0

Hi,

 

i am a beginner of Teststand and, i am using TS2017 now.

I wonder if there is anything that i can access to a bin number by expression or property?

I would like to get and use a bin number stored in a execution for Set and Lock Bin expression.

Adding SequenceCallModule to Steps

$
0
0

I am new to TestStand and I am trying to programmatically a SequenceCall into a step in C#. I am able to create new steps with:

 

Step step = engine.NewStep("Sequence Adapter", "SequenceCall");

 

And add them with:

 

seq.InsertStep(step, 0, StepGroups.StepGroup_Main);

 

I have a SequenceCallModule that I loaded my path into.

 

SequenceCallModule SMod = (SequenceCallModule)step.Module;

SMod.SequenceFilePath = path;

 

How do I associate this module with my step so when I insert my step the sequence call will be in my main sequence?

 

Let me know if you need any further information or clarification about my question. I am new to TestStand.

 

Error propagation

$
0
0

Hi,

I want to create logger that loggs information about each error on the txt file. I created a code and placed on SequenceFilePostStepRuntimeError in the main.seq.
Works good.
Untill error happens in sequence in the subseq.seq file (which is obviously called from main.seq)

 

So it looks like errors are handled by the SequenceFilePostStepRuntimeError in the same *.seq file where they occur. I want to change that.

 

I want that every error, does not matter where it occurred, shall be propagated to the parent caller (main.seq) and handled in the SequenceFilePostStepRuntimeError callback of that parent caller.

Any ideas what is the best way to do that?

Use of translator with an non-txt script

$
0
0

Hello,

 

I want to use the TestStand translator functionnality to generate a sequence file from a script.

 

It's ok if I use a text-based script. But how can I do if the script is not in a text format, for example an excel file. I saw no callback in the translator which open the script

 

Any idea ?

 

Regards

Laurent

 

No corresponding subproperty in argument 'Locals.PSU_Array' of type 'PSU_Cluster_v5' for cluster element 'PSU_Array Output.VISA resource name'

$
0
0

Hi folks does anyone know how to resolve this error. I have older versions where the PSU array is fine, but on opening an older sequence at same time as having this faulty sequence open then the old one becomes fault as well.

 

Message : No corresponding subproperty in argument 'Locals.PSU_Array<Array Element Prototype>' of type 'PSU_Cluster_v5' for cluster element 'PSU_Array Output<Array Element Prototype>.VISA resource name'
File : C:\LABVIEW\Adum770x_all\dan\Teststand\Sequences\ADuM7702_Gain_INL.seq
Location : Seq["MainSequence"].Main["Enter Sequence Parameters"].TS.SData.ViCall.Parms["PSU_Array Output"].ArgVal
Rule : Step properties must have valid values
Description : All step properties must have valid values. Invalid property values can cause errors at run time.
Use the Step Settings pane to set the property to a valid value. Ignore this message if the property
will be set dynamically to a correct value at run time.

Viewing all 6525 articles
Browse latest View live


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