Quantcast
Channel: All NI TestStand posts
Viewing all 24460 articles
Browse latest View live

How to assign array value to container in Teststand?

$
0
0

Hi All,

 

I like to assign array values to container in teststand 

kindly help me to solve 

 

thanks in advance 

saran


Re: How to assign array value to container in Teststand?

$
0
0

Not sure I understand the question but here goes.

 

If you have a TestStand Container (Locals.MyContainer) which has two fields, Num1 and Num2 which are Numbers and you also have a TestStand Array of Numbers.

To pass the element0 of the array to Num1 of the container use

Locals.MyContainer.Num1  = Locals.MyArray[0]

 

Hope this answers your question.

Re: How to get or Set the Container Values using For loop index ?

$
0
0

To set the value to (from Container).

If you have a Container which has two fields Num1 and Num2 and you want to pass data from an array

 

Use:

Locals.MyContainer.SetValNumber("Num"+Str(Locals.Index+1),0, Locals.MyArray[Locals.Index]) (I have made the assumption that my types are numbers)

 

Now I have made my field names and types easy for me to do this.

You can use

Locals.PropName = Locals.MyContainer.GetNthSubPropertyName("", Locals.Index, 0)

Then use Locals.MyContainer.SetValNumber(Locals.PropName,0, Locals.MyArray[Locals.Index]). Again I am making the assumption that my types match.

 

hope this helps

 

Help with Error: 1386

$
0
0

Hello,

 

I'm new in testStand, and I'm doing the developing test programs using teststand course. And I'm trying to do the solar secuence test.seq.

 

I have : setup / main / cleanup.

 

And when I execute> rain main secuence, I obtain this error: (image)

I have already run the setup.bat how the exercices file says.

 

Could you help me please?

 

 

 

 

 

 

 

 

Re: Problem with Labview VI's

$
0
0

Hello

 

I have the same problem for the same exercice. (Solar test Sequence)

 

I have done the stepts that the link says , but when i execute the .seq in teststand I'm obtaining the error again.

 

I'm using testsstand 32 bits and Labview 32 bits.

Re: Help with Error: 1386

Re: Problem with Labview VI's

$
0
0

I have already solved 

 

Smiley Happy

 

Thanks for your help.

Get reference to a Local variable?

$
0
0

Hi Community,

 

I have a VI which I'd like to call hundreds of time with different parameters. The parameters are:

  1. Switching parameters cluster - unique to each test
  2. Limit parameters cluster - partially unique

So I have the following structure:

MAIN_TEST_CLUSTER

--------------------------------[0] TEST 01

----------------------------------- Switching_Cluster

----------------------------------- Limits_Cluster

--------------------------------[1] TEST 02

----------------------------------- Switching_Cluster

----------------------------------- Limits_Cluster

 

etc.

 

 

The problem I have is that the limits cluster is not completely unique for each test, but it is actually one of the 10 predefined set of limits. Instead of hardcoding the limits into Test 01, Test 02 etc I'd like create a reference to an array outside of my main test cluster to LimitSet[x].

 

Having this makes sure that I can easily roll out a change in the limitset because I have to change it at one place only. What would be the right approach to do this in TestStand?

 

thanks!

 

ps: I only can hope that my description was clear enough, but let me know if not. Smiley Happy

 


SQL query executes but returns no results

$
0
0

I am trying to query by a model number which I know exists in my SQL table.  When I run the query in SQL management studio and in the NI Database viewer the result is returned as expected but when I try and execute the same query via an open SQL statement in teststand no results are returned in the following Get Data Operation

Re: Is there a user guide section for 'Data Operation'?

$
0
0

Hey Daniel did you ever resolve this?  It sounds like a similar issue to the one I’m experiencing where my data operation returns no results but I know it should.

Re: How is this test case works ?

$
0
0

is this test case for old NI test executive?

but I still could not find any Doc. talk about this.

I think it is control. like cmd field maybe is for calling each vi.

but I did not understand each "; "  means inside the cmd.

 

Thanks

 

Re: Get reference to a Local variable?

Re: Get reference to a Local variable?

$
0
0

Hi 1984-

 

The TestStand Property Loader Step would also be a reasonable approach (see a simple example attached - saved in TestStand 2016). There are also several good shipping examples demonstrating its use (located in the <TestStand Public>\Examples\Built-In Step Types\Property Loader Step Type directory).

 

-Jeff

Reset Deployment Version Number

$
0
0

Is there a way to copy an existing .tsd deployment file to save time from having to reconfigure a new full deployment but reset the version number to 1.0.0? It seems the deployment when copied will only let you start from an incremented state, 1.0.1 for example. If I've released a build and made a quick fix, wanted to rebuild at 1.0.0, is this possible without having to totally reconfigure the deployment from scratch?

Re: Reset Deployment Version Number

$
0
0

There's not any way to do this currently. Part of the reason for this is that reverting back to a previous version of an installer can cause installers to have potentially unexpected behavior. See this doc for more specific details:

Upgrade Codes That Affect Installer Behavior

In short, the generated installer would have the same upgrade code by default, but an earlier installer version than the one you've already released.... meaning you can't run the installer without first uninstalling the existing one.

 

You could get around this by generating a new upgrade code, but unfortunately TSDU still has the limitation of not being able to revert versions.... so the current answer to this is to use version control (SCC, SVN, etc..) to keep the 1.0.0 version of the TSD file, and make sure you use a different upgrade code if you reuse the TSD file for multiple installers.

 

-Trent


Error in step: instrument reserve (-6 user defined code)

$
0
0

I'm doing the training couse of teststand.

 

Could anybody help me with this error please?

 

1.png

Thanks so much.

Re: How to stop TestStand taking control of other desktop programs while running

$
0
0

Hi Trent,

 

Thanks for giving up your time to look into this, much appreciated. I only have 3 VI's in my sequence that I need to edit so the "Activate" property solution will work in my case.

I will look into posting on the LabView idea exchange as you suggested.

 

Best Regards,

Sean

Re: Assigning VI result to certain teststand socket

$
0
0

It's possible to do this using a combination of Batch Synchronization steps and some kind of shared variable. I've attached a simple proof of concept.

Capture1.PNG

Only one socket will actually run the code inside of the Batch section, which retrieves values for all sockets and stores them in a local variable that has the shared flag set:

Capture2.PNG

Each Socket runs the next step and publishes results based off of the socket index:
Capture3.PNG

 

This probably isn't the only way (or the best way) to do this. For Example: TestStand Semiconductor Module has similar functionality built into its custom step types, effectively doing the same as above, but abstracting it away from the user because it's done in pre-step and post-step substeps of the step type.

 

Hope this helps!

Trent

Re: How is this test case works ?

$
0
0

zy6,

 

It's hard to answer your questions with the limited information given in the VI. I would suggest trying to reach out to the software engineer who developed this VI for those answers.

Simple user interface hangs when exit the application.

$
0
0

Hi,

 

I am using simple user interface and customized for my requirement. I have issue when i click the exit buttons. The user interface hangs and it will go to not responding state. How to fix this error and what is the cause for this issue.

 

Regards,

Anand

 

 

Viewing all 24460 articles
Browse latest View live


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