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

TestStand can add comments for the sequence calls?

$
0
0

Hello,

I am writting ToolBox (a set of sequences and subsequence which I will using many of the times).

 

If I call a sub sequence from the ToolBox I want TestStand to add comments automatically for the sequence call.

 

Could someone help me in knowing where is the option to do so.

 

Thanks in advance.

 

Regards,

Sagar Joshi

 

 


Remove "all" unused variables with a single click

$
0
0

Hello,

 

The sequence analyzer in TestStand-2012 gives warning on "potentially unsed variable". The issue is, I have to click each warning, go to the variable and delete it.

 

Is there any way to delete all the potentially unsed variables at once?

 

Best regards

Ricky

Difference in Scope between "ordinary" Step and StepType definition

$
0
0

Hi guys,

 

probably I'm not the first to hit this issue, but I haven't found anything on the forum....

 

I'm planning to invoke a sequence in the PreExpr of my step definitions (to add GUI messaging). As an example, I refer to this this.

It works invoking sequences without parameters. As soon as parameters for the sequence to be called are introduced, I get errors.

 

tserror.png

 

The PreExpr used is

RunState.Engine.NewExecution(SeqFileReference, "SeqName", Nothing, False, 0, Step) where Step is the container to be passed.

 

During debugging, I found out, that using this PreExpr with a standard step (in this case a Statement) placed in the sequence, everything works as expected.

So I removed the PreExpr from my Typedef and retried inserting the PreExpr into the step manually.  No luck...

 

tserror2.png

 

 

So... is there a context-wise difference between the PreExpr used in the (user) TypeDef of the step and the NI Typedef?

 

Cheers

Oli

 

BTW.... still on TS2013 / Win7

 

 

 

Deployment license with development code

$
0
0

Hi Everyone,

 

I have teststand development code running on a PC with a development license.

 

I bought a deployment license and want to deactivate developer's license so as to use deployment license.

 

Can I continue to run my development code on this PC with deployment license or do I need to create an installer first then activate deployment license?

 

Thanks,

 

tstand

remove characters from string

$
0
0

I'm currently in the process of developing a seqence for barcode parsing , then writing specific data from the barcode to EE on the UUT.     Here's my issue:  One particular character sting from the barcode contains several "-" marks. The the raw barcode data is as follows "aaaa-bbbb-cccc-dddd-eeee".    However, to write the data to EE, I need the sting in the following format:  "aaaabbbbccccddddeeee".   Is it possible to use Testand to revome the any instance of "-" from the sting?

 

Thanks

Why isn't my GPIB-ENET device an option in MAX after TestStand deployment?

$
0
0

I have built a Test Stand deployment that includes NI MAX and what I think are all the required drivers and components. I go to my test machine after installing the deployment and try and configure MAX. I am trying to create a new GPIB-ENET/100/1000 device however under Network Devices that is not an option. This is the first deployment I have built since upgrading to this version from 2013. I am now running NI Developer Suite 2016. I have done this many times before. Any ideas as to what could be missing from my deployment file that would keep me from having this option? I have more choices than before as far as different things to add but none is the GPIB-ENET device.

 

Thanks in advance for any help.

 

Troy

add arrays

$
0
0

Hi,

 

I have 2 Local Arrays in TestStand

 

Local1

1,2,3

10,20,30

 

Local2

9,8,7

90,80,70

 

 

I also have a Labview VI with a 1d Array input that is within a FOR loop (3 loops using Local INDEX)

 

Is there a way to index the 2 Arrays and add them in TestStand and pass the result to the Labview VI?

 

I thought it would be as easy as writing this expression on the input of the VI...

 

Locals.Local1[Locals.INDEX] + Locals.Locals2[0]

 

eg.      loop1--- add 1,10 to 9,90

           loop2 --- add 2,20 to 9,90

           loop3 --- add 3,30 to 9,90

 

I hope this makes sense

 

Chris

lookup string for current user

$
0
0

Dears,

Anyone can tell me how can I get current user information(name, operator or developer or administrator...)? Whith what lookup string & vi?

    --- At custom UI program

    --- right after login

 

 

Thanks

WD


Calling Teststand API from Powershell

$
0
0

Hi.

 

What I want to accomplish is to change the sequence file version of all sequence files in a folder from a powershell script. Reason why I want to use powershell is that this operation is part of a visual studio build process which is using powershell as its post build script.

 

With my limited knowledge I have the feeling that this should be possible since powershell is able to load .net assemblies and com-objects, but I have not succeeded to get this to work. Cannot find any direct examples of this either.

 

Any help that could lead me in the right direction is greatly appreciated.

 

Teststand 2013

Powershell 3

How to reset an array to a default value?

$
0
0

Hello,

i have a 2D array type text that should be set to a special value.

Dimension is [5][50] where the 5 is the MyIndex parameter of the socket in the BatchModel.

Currently i am doing this in a for loop that loops 50 times for each socket and in the loop i set the array to the value.

StationGlobals[MyIndex][Counter] = "value".

 

Is there any faster way to do this?

 

Thx

 

SeqFileLoad in BatchModel

$
0
0

Hello,

is it correct that teststeps in SequenceFileLoad are only executed one time in BatchModel?

I have 5 batches but the steps in SequenceFileLoad are only executed one time and not for all batches. Is there an option to activate this or is it normal?

Thx

Dynamically calling a daemon or actor VI in TestStand

$
0
0

Hi all,

 

The context:

  • I have a non-reentrant VI that needs to run in parallel of a sequence
  • This VI is opened and closed several times during testing.
  • I'm closing the VI by sending it a queued request such that it closes itself.

 

It seems to me that there are a couple of ways to launch the VI:

  • Have TestStand call a LabVIEW VI that launches the dynamic VI. This could be via the ACBR node or an invoke node using a static VI ref.
  • Use the "Run VI Asynchronously" step type in TestStand.

Right now I'm using the "Run VI Asynchronously" step. I'm not using the "Reserve Loaded VIs for Execution" option, and every once in a while I get the "TestStand Sequence Editor has stopped working" crash.

 

My questions:

  1. With respect to memory management, what's the best way to implement my use case? Is it better to have LabVIEW make the dynamic call, or have TestStand make the dynamic call?
  2. What's the difference in how the memory management works between these two methods?

Thanks a lot - any suggestions are much appreciated.

 

Mr. Jim

How to pass numeric value in hex format to teststep parameter?

$
0
0

Hello,

my teststep is a custom c# function that has an input parameter of type Number (byte).

How can i insert the data in hex format? (Step settings + Tab Module)

Can i change the insert-field like in labview to decimal, hex, binary?

Thx

Get remote caller machine hostname

$
0
0

Hello,

 

in my project I'm using remote calls to execute certain subsequences on a separate machine. I would like this machine to get info about the caller, namely its hostname. It's clear that I can use a parameter to pass this info but I wonder whether there's any native method to do that?

 

Thanks in advance!

 

UIMessage from Labview to Teststand


SequenceView control doesn't display in deployed UI

$
0
0

Hi, Teststand users.  I placed a Teststand SequenceView control on my custom Labview UI, and it updates correctly on my development station as the sequence executes, including after I've built the UI into an EXE.  But when I deploy the package to a test station on the manufacturing floor, the SequenceView stays blank throughout the sequence, which executes correctly to completion.  The test station has Labview Run-Time Engine 2015 installed and Teststand sequence editor 2014 SP1.  Any idea what could cause the SequenceView to not update?  I'm calling the ExecutionViewMgr > ConnectExecutionView function in the normal recommended way.

Thanks.   -Joe Czapski

 

 

Parallel test using batch model

$
0
0

Hello!

 

I'm relatively new to TestStand and have a question that seems to have an easy solution but I can't figure out (looked at the examples, forums, etc)

 

We use the batch model (some slight modifications for reporting) but run everything sequentially and have the model option set to 1 socket. I have 2 DUTs being tested sharing a temp chamber and 2 PXI 4145s  (one for each DUT, using 1 channel as the power supply and the three other channels for measurements). I handle all the instrument initializationg in a ProcessSetup callback and jump into the MainSequence once the test is done I go into the ProcessCleanup call back and close all references (we are using DVRs for the instruments).

 

I'd like to set the model option to have 2 sockets. So if I set the VI call that sets the temperature to "One thread only" TestStand will start two sequences, and one of them would set the temp and the other would skip it but move on once the step in executed.  Is there a way to tell TestStand "for UUT 0, use SMU1 and for UUT 1 use SMU2" and have the rendezvous at the next temperature?

 

It's a weird situation because all the examples I've been able to find have the  "more UUTs than Instruments" problem so in my case it's a good problem to have Smiley Happy.

 

Thanks in advance!

How to join to bytearrays with MSB / LSB to real number?

$
0
0

Hello,

i have two numeric arrays. One with MSB bytes and the other with LSB bytes.

How can i join this two bytes into a third array with the full number?

Thx

Teststand Error -17000 Out of memory

$
0
0

Hi Everybody,

I am using Testand 2013 and sometimes (1 times a day, after 3-4 h of running tests) it runs out of memory (errorcode -17000).

I have a ATP sequence file which contains roundabout 40 (slim) sequences which call LV(2013) code modules populated as precompiled libs which do the hardware access for example. 

We use the BatchProcess Model WITHOUT OTF-reporting. Our custom report is generated within the overridden TestReport-callback at the end of each UUT-run by evaluation the MainSequence-Results. We do not use the BatchReport which is automatically generated by Teststand.

I tried to analyze the cause i the following order:

- I checked the memory usage with the Systernals process explorer -->the memory usage increases steadily

- I disabled the batch-report creation because we do not need it and Teststand appends the report for every batch. After this action I had no more problems for a few weeks?!

  (like described here: http://forums.ni.com/t5/NI-TestStand/How-do-I-disable-batch-report-in-the-batch-model/td-p/238387 I skipped the function in NI_ReportGenerator.seq and reportgen_atml.seq)

Unfortunally the error occured again now.

Does anybody have ideas or can help?

 

I would also like to trace the memory usage  of my Labview code to check if there are some bugs increasing memory usage. I tried to use the Desktop Execution TK but I do not know how to use it with PPL-populated code modules loaded by Teststand. I works fine when calling VIs o a normal LV-project, but when Teststand loaded PLL I cannot choose the ApplicationInstance within the DETK-UI

Are there any compile settings in the LV-project or within the DETK I have to change? Or could maybe the Performance & Memory Profiler help me?

Thanks

Batchmodel - Reuse of created resultvalues

$
0
0

Hello,

i have a batchmodel with 5 batches.

Now there is a teststep that gets a value and calculates a new value as output. Now i want to use this new value as an input parameter of an other teststep.

1. Can i simply save the value in locals.value? Or 2. do i have to create an array locals.value[0..4] to save for each batch the value in its own variable?

If variant 1 is working.. is this also valid for the StationGlobals or only for locals?

 

Thx

Viewing all 6524 articles
Browse latest View live


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