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

VI not opening! while step into (f8) during debugging in TestStand

$
0
0

Hello Every one,

I am new to TestStand, while debugging sequence steps in TestStand, I kept a breakpoint before a step. Then I started executing the sequence, the execution pauses at break point, but when I click on step into or F8 the respective step related VI front panel is not opening to debug. Kindly help me to fix this problem. 

Thanks in advance


Best practice for using hardware input to start tests from the parallel process model in TestStand

$
0
0

Hello TestStand users!

 

We are working on a test system that uses the parallel process model in TestStand, but unlike in all the examples I've seen, the tests for each test socket need to be "triggered" from hardware rather than from the operator entering a serial number and pressing "go".

 

I'm not that experienced with TestStand, but I believe the best way to do this will be to override the PreUUT model callback in the main sequence with something that monitors our hardware input, correct?

 

Now, if our hardware driver is a LabVIEW VI (actually three instances of a cloneable DQMH module as we'll have 24 test sockets monitored by three serial ports), could we communicate with that driver from a VI in our PreUUT override sequence, and then somehow notify our test socket to start testing based on a certain message from the hardware driver?

 

I'm just after some advice on how best to implement this hardware trigger in a parallel process mode. Any examples or experience would help greatly as we'd rather code it up right the first time!

 

Thank you!

 

(I've also posted this question on the DQMH forum here: https://forums.ni.com/t5/Delacor-Toolkits-Discussions/Best-practice-for-using-DQMH-to-trigger-tests-from-the-parallel/td-p/4091980?profile.language=en, I didn't know which forum was most suited!)

Where is the specification for the teststand funtions such as TS_SetPropertyToCtrlVal?

$
0
0
Hi, I use cvi coding for TestStand, But I can't find the specificaton to explain how to use these functions such as TS_SetPropertyToCtrlVal,TS_PropertyGetValString,TS_PropertyGetValNumber,TS_GetResourceString and so on. Would you please help me? B.R.

NI teststand 2019 - Python Integration

$
0
0

Hi Guys,

 

I am calling  one python function by using NI TestStand 2019. The called python function returns List which contains Int, Float and string in random order. 

I wanted to store and process python function return value List containing int, string and float in random order using TestStand 2019 Local variable. Can anyone help me in this?

 

I tried using TestStand  local variable  container which contains int, float and string but it throws error. Also i tried using local variable array of same type as python return list. Still it throws error.

 

Can anyone please help me in this?

 

Regards,

Prakash Choudhary

TestStand and LV runtime "Unable to load xxx.vi with the labview runtime engine" - Internet Access Required??

$
0
0

Hi,

 

I've seen a number of these posts so far but none specific to my issue.

I've developed using LV2015 and TS 2014 on the same machine that I now have LV2015 runtime environment and TS 2014 SP1 Runtime environment installed on.

 

When the PC has internet access, neither myself (as developer) or test technicians (runtime users) have any issues whatsoever.

Remove the internet access and I can still run as a developer but the runtime users see the error message in title, for every single VI. We can see the steps in the sequence, the pre-loading is more or less instant and then we cannot run the tests due to the error messages.

 

If we restore the internet access, the issues disappear and the test functions perfectly again. My problem is that the test kit is off-site with no internet access (& no way of getting it either) in a specialised test facilitiy.

 

I want to know why it would need internet access and how could I get around this? The licenses are both local and we have switched off the preference to search for a Licence volume server in the license manager, all of the search directories are are also local to the C:\.

 

I'm at a bit of a loss here and would hugely appreciate any help I can get.

 

 

 

Sending UI message from dotnet dll

$
0
0

I have created a UI and a sequence file with DotNet dll. In order to update my UI i start a measurement in my DotNet dll and in the next sequence step i sent the RunState.PreviousStep.Result.Numeric via PostUIMessageEx to my UI.  So, i need 2 sequence steps to do a measurment and update the UI.

Is it possible to send the UI message with the measurement result directly from my DotNet dll to the UI ?

 

If possible please send me an example

 

Thanks in advance.

C# - Async wait for Execution.WaitForEndEx

$
0
0

I want to run a TestStand sequence via .NET API in C#. I'm currently doing as follows:

 

Engine tsEngine = new Engine();
SequenceFile testSequenceFile = tsEngine.GetSequenceFileEx(pathToMySequence);
SequenceFile processModelSequenceFile = tsEngine.GetSequenceFileEx("MyProcessModel", GetSeqFileOptions.GetSeqFile_FindFile, TypeConflictHandlerTypes.ConflictHandler_Error);
Execution tsExecution = tsEngine .NewExecution(testSequenceFile, "MainSequence", processModelSequenceFile, false, 0);

var result = tsExecution.WaitForEndEx(1000);

 

Everything works fine, and WaitForEndEx returns true.

 

How can I wait for execution end in an async way? If I run WaitForEndEx in a separate Task it always time outs (example next line).

 

Task.Run(() => tsExecution.WaitForEndEx(1000));

 

Thanks.

Evaluating .NET structure

$
0
0

Hi everyone !

I am using Teststand 2013 and I am successfully calling functions from the "FlashMagicPS" .NET DLL/API

(like Connect, ReadSignature, Program2, Verify and Disconnect)..

This all works fine (most if the time)

Now I wish to evaluate the return value for better security.

I get a pointer to a structure, which also includes the desired "status int"

Q: How to open the structure (in the .NET DLL) and how to access and evaluate the value ?

 

Thanks


Front-End Callbacks Other Than Login

$
0
0

Anyone have examples/scenarios using custom Front-End Callbacks other than the basic login?  Just curious on how others might call and use this type of callback.

 

Thanks in advance for any info.

Test Requirements/Cases and TestStand

$
0
0

This question is more for asking community on examples of how they write test requirements for hardware and how they connect/design their TestStand sequences.  Basically looking for ideas on how to improve the process.

 

For example, let's say your hardware has LEDs, specific voltages/resistance you have to measure, etc..  How do you structure your test cases and make sure you cover everything in your tests.

 

Any documents/spreadsheets examples will be appreciated.

Facing problem to remove header and footer stamp from Print of Seq. file Hierarchy

$
0
0

Hello all, 

 

I am facing problem to remove header and footer stamp.

what I want to do is for example open the Seq. file hierarchy from Teststand then right click on the page and go the print option and save as a PDF.

But if you check the page preview then there is always header and footer stamp, I don't know how to remove it.

I already clear header and footer from internet explorer but still it is not working for me.

Is there any other suggestions to solve this issue?

 

Many thanks in advance.

Have a nice day!

 

Regards, 
Ankit.

How to convert code from a TestStand development license to a deployment license?

$
0
0

Looking to switch over TestStand code with a development license to a deployment license. 

So far the code has only worked on a development license, and when we try a deployment license it does not work. Any ideas on why this would be? Is it a screwup in how we have setup the deployment license/teststand on our production computer? I don't have any experience in creating a test sequence for a deployment license. Thanks.

How to execute test in parallel with shared and dedicated instruments to test two UUT at the same time.

$
0
0

Hello,

I would like some guidance/direction on the following:

 

Background:

I'm new to Test Stand and I'm working on an sequence which makes use of a fixture with two slots.  This is to test two UUT at the same time. 

 

The test station has 4 programmable DC power supplies and 4 programmable Electronic Load Units.  Each UUT uses two dedicated DC Power supplies and two Electronic Loads. 

 

Inside the fixture there is a 120VAC to 24VDC power supply.  The 120 VAC will be provided by a programmable AC Source.   This AC source is the only instrument that is being shared.

 

I wrote my sequence such that the main sequence prompts for the serial number, part number, operator ID etc...

 

Then it calls a sub sequence to turn on the AC source for the fixture

 

Then it runs a separate sub sequences to run the tests for UUT1 and UU2. 

  

The Sub sequence 1 (UUT1)  has a precondition to run for test socket 0,

 

The Sub sequence 2 (UUT2) has a precondition to run for test socket 1,

 

Then then sequence goes to clean up to disable the DC power supplies, AC Source, and Electronic Loads.

 

Question

  1. Am I going the right way on implementing this?
  2. Is there an easier way of implementing this?
  3. Do I need to use locks on the shared AC Source?
    • If so, How do I use it?
  4. Does parallel mode mean, run the exact same sequence in parallel?
    • If so, how do I use it such that the AC Source is Turned on by one sequence, then DC source 1 and 2 are used for testing UUT1, and DC Sources 3 and 4 are used for testing UUT2?

Thank you,

 

Test Stand Sequence Report Generation Feature request

$
0
0

My company requires us to generate a Test Specification document for each UUT.  This is for documentation purposes.

 

It is essentially a spreadsheet with the all the sequences and steps in my test sequence for a particular UUT.  The spreadsheet has separate columns for the step groups, description of the step, link to the instrument driver, parameters, upper and lower limits, and comments.

 

Right now, creating this test specification document is time consuming, cumbersome and error prone.

 

Does Test Stand have a feature which essentially takes a snapshot of the sequence and then exports to excel or any other type of document?  I realize that the UUT report at the end is similar but I'm looking for something that can export to excel.

 

If not, can this be something that can be implemented as a feature in the future?

 

Thanks

 

 

C# Unable to shutdown engine correctly

$
0
0

I am making an automated sequence generation script in C#. My code successfully creates the sequence file, but when the program is closing out it results in an error popup that it has stopped working. I believe that the TestStand engine I generated to create the sequence file was not closed out correctly.

 

I have been trying to follow the steps from the support article Shutting Down the Engine, but the popup still persists. Are there any other steps I should be taking that aren't listed in this guide? I am trying to not have a TestStand interface pop up at all, just have it execute in the background. Thanks.


TestStand Deployment fails due to lvanlys.dll

$
0
0

I've created a Test Sequence that utilize test VIs compiled into a packed library file. The sequence works and we're getting ready for deployment the problem is that when I try to build the Deployment, the build fails because it's looking for lvanlys.dll (see the attached screenshot)

 

What's baffling is that lvanlys.dll is at the specified destination. Even when I include lvanlys.dll in the packed library build, the TestStand Deployment utility doesn't seem to recognize it and give the same error. Has anyone encountered this issue before?

NI Teststand deployment error - unable to find my labview project

$
0
0

I am trying to deploy my teststand system and am getting error (-19027)

 

"Could not find file  '..\..\..\NITestStand_FTS2.lvproj'.
..\..\..\NITestStand_FTS2.lvproj

 

I've looked over the source path and it has the correct source path. I'm unsure why the deployment is having issues locating my labview project?Deployment error.PNG

 

How to pass string and numeric array in the same parameter from TestStand to CVI

$
0
0

Hi,

I am looking for a solution to able to pass string and numeric array TestStand variable in the same parameter into my dll.
The string is an array of char numeric to me so I would expect that TestStand handle the same way and it can send TS string variable as array of char numbers.
But unfortunately TS handle it separately and need different Property settings for string and for char numeric array.

Is there any way to pass any of them into the dll in the same parameter with the same Property settings?
Or is there any easy way to get the array representation of a string in TS?

Or is it possible to modify property settigs dynamically?

Thanks,

ArrayOfNumber and String into the same parameter.png

 

Debug View

$
0
0

I wonder if there is a simpler debug option, where I see the Steps Pane and the Variables at the same time.

Not in different Tabs.
Would make the debugging much easier.

 

(-19035) Error Can't locate the duplicate VI

$
0
0

Hi all,

 

I'm facing a problem during Teststand Deployment for having matching dll files. The problem is that one file path is clearly given and the next duplicate file i cant see any file path but has the name of the dll file only.

 

Can anyone help to rectify the Error or helping to find the second duplicate dll is much appreciated.

Viewing all 6532 articles
Browse latest View live


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