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

close teststand using cvi testStand API

$
0
0

i use cvi for Runing a seqFile but when i click close allways i get this message :

" this execution is currently running . what would you Like to do? 

  • Terminate Execution
  • Abort Execution
  • Automatically Close Execution when Done "

and how can i hide this message ? and whats the best way to stop and close teststand ? and what's the function should be used ?

Capture3.PNG


Pass teststand command line args (/run, /editor, ...) when starting Labview UI as VI and not as EXE

$
0
0

Hi!

(Setup: Teststand 2013 and LabView2013 on Windows7)

 

I want to start my UI (which is very close to the FullFeatured Labview UI) using the Development environment and pass the defined teststand command line arguments so that a seqeunce is started (after login). Somehow it does not work.

 

Start UI as EXE (working):

TestExec.exe /editor /run "StartupSequence" "D:\SequenceFile\Startup.seq"

 

Start UI as VI (not working, MyUi.vi does nothing more than calling the TopLevel VI of the FullFeatured UI):

Labview.exe "MyUi.vi" /editor /run "StartupSequence" "D:\SequenceFile\Startup.seq"

 

What did I do up to now?

1. I added code to the FFUI which shows me the cmdline args (App.args property ) of the Labview Application reference --> it shows the following string array (every array item in a new line)

LabView

/editor

/run

StartupSequence

D:\SequenceFile\Startup.seq

--> all arguments are passed like i write them on the command line excep the VI -> this is good because it is similar to the EXE situation.

 

2. I created a callback VI for the Application Manager Event ProcessUserCommandlineArguments --> Here I get an event for the command line item 'MyUi.vi' which means that the teststand AppMgr does not recognize this cmd line item. This is on one hand OK because the VI is not a known cmd line switch for teststand but on the other hand  a little bit strange because the VI is not part of the string array I described under point 1!

 

Situation: sequence in given sequence file is not started, no error dialog appears.

 

Best regards

  Waldemar

 

 

 

 

DisplayName of Child Executions

$
0
0

Hi all,

 

Another day, another obscure question.

I'm using the batch process model, launching two new executions per test socket.

I'm also using the sequence editor.

 

For each launch of the new execution I'm selecting "Do not use a process model." I'm doing this for simplification of results processing and so that I can display each child thread in its own window, which is a requirement. (Otherwise I would have used new threads instead of executions)

 

Is there any way to set the DisplayName of each child execution?  I can't figure out if there's a way to modify the DisplayExpression or set each execution's DisplayName to something other than the sequence call.

 

I did run across this thread, but I'm not sure if there's a way to get to the DisplayExpression in my circumstance.

 

Has anyone done this successfully?

 

Thanks as always,

 

Mr. Jim

 

 

Parallel model with separate reports for each subsequence

$
0
0

I've been working on a design which is based on the parallel process model.   I need to test 4 UUTs concurrently, with each test port running the same set of tests asynchronously.    For each phase of the testing performed on these UUTs  I have created a subsequence.   I've opted to launch each subsequence as a new execution so that I get a unique test report for each, and utilize the Sequential model and the Single Pass entry pointin these subsequences.    So far, so good, I think.     (I use the phrase "I think" since I'm not 100% sure that launching the subsequence as a new execution which uses the sequential model from a parent parallel model sequence is best practice.   So I invite any commentary on that point as well.)

 

My challenge is that I'd like the test reports generated from each of these subsequence calls to reflect the socket from which it was initiated.    Passing parameters to the new execution, including the current socket index from the main sequence, isn't a problem.     Short of utilizing model callbacks to tailor the subsequence's report header to include the socket information, is there a better way to get the socket information to appear in the subsequence's report header?       Attempts, for example, to just set RunState.TestSockets.MyIndex in the subsequence based on the socket index I passed in, don't work and result in runtime errors.   I suspect this is due to the use of the Sequential model for my subsequences?

 

I am also logging results to a database, so I'd also like an indication of parent test socket to somehow make it into the results TS is committing to the database.    Currently the database shows a socket of -1 for all subsequences launched as a new execution,  regardless of the actual parent parallel socket index (0..3).

 

Thanks!

Jim

Using Call Executable Step To Start EXE and Stop EXE

$
0
0

I would like to use the Call Executable step to Start an EXE (Executable) file which will run until I call another step to tell it to stop in my test sequence.  Basically, I want to be able to turn on the EXE and turn off the EXE when I want to inside the test sequence.  The EXE continuously pings a device.  Is there an efficient way to do this?  Thanks!

Teststand API and classes

$
0
0

Hi,

 

I have recently started using teststand. I felt that teststand has lots of API, classes and its method and properties. Its difficult remember all and to follow.

 

I just wanted to know is there any logical connection or flow these api has, so that i can quickly select which api i need to use , or which method/property i need to use.

 

Regards,

Anand

Testand engine 32 bit launch error

$
0
0

 

 

Hi ,

 

I have used the simple teststand user interface shipped with teststand and i customized it for my application.  I am using teststand 32 bit and labview 32 bit . After i customized and build the exe .

and when i run the exe i got the error as attached snapshot.

 

Anyone faced this issue. Do i need to configure any setting before building exe. Kindly note i have installed only teststand 32 bit and labview 32 bit on my system.

 

az.PNG

Regards,

Anand

User Manager Properties

$
0
0

 

Hi,

I have to create a TS User Management for my organization.

To keep it simple I would like to use the built in TS User Manager. BTW I need some additional properties in user's type definition.  For changing the properties I would like to do it by calling Engine.DisplayEditUserDialog method. As assumed, my properties are missing in this Dialog.Is there a way to override DisplayEditUserDialog to get desired behavior.

 

User Properties DesiredUser Properties Desired

 

Regards

Juergen

   


Drivers in Testand are missing windows API dlls under windows 10

$
0
0

We have Custom built a Testand UI using Visual Studio 2010

Works on XP, testand 2013 Fine

After compiling this UI in windows 10, Visual Studio 2017, some drivers gives Error:

"Could not load dll or external library

dsll could not be found"

see below..

The drivers work Fine if we are working directly from the testand sequence editor..so the problem is likely connected to a Testand API issue/visual studio? Maybe a Visual Studio property definition?

Does anyone have a similar problem?

Thank you

Capture.PNG

Display XML report with everything collapsed?

$
0
0

Hi,

 

Reports about a passing tests open with all steps collapsed, reports about a failing test. If I open one which failed then it opens with all the passing steps collapsed and all the failing steps expanded.

 

I'd like the report to open with all steps collapsed no matter if they passed or failed. Is it possible? (I used the standard expand.xls stylesheet)

 

thanks.

run one sequence at a time

$
0
0

I am developing a custom UI based on the simple UI example and I have most of what I want in it but one thing I want is to make sure that the user can only run one instance of the sequence file at a time. Currently they can run as many as they want.

teststand运行环境判断

$
0
0

是这样的,我现在更改了FrontEndCallbacks.seq,我希望在teststand环境下能跳出登录框,而在自定义的测试界面(包括NI 的两个测试界面),FrontEndCallbacks.seq直接默认一个账号登录,开始我以为是用RunState.Engine.ApplicationIsEditor这个去做区别,结果使用下来发现所有的自定义界面都是editor,所以问一下有没有什么属性或者方法可以区别这两者?

How to specify environment when using custom OI

$
0
0

So, I change the FrontEndCallbacks.seq, I hope in the teststand environment can jump out of the login box, and in the custom test interface (including two NI test interface), FrontEndCallbacks.seq directly to the default account login, start I thought  RunState.Engine.ApplicationIsEditor can determine the difference, the results used to find out all the custom interface is editing, so  if there are any attributes or methods that can distinguish between the two?I'm using Teststand 2013

Override Teststand callbacks from LabVIEW.

$
0
0

Hello,

I have a test sequence and I want to override the "SequenceFilePostStepRuntimeError" callback from a LabVIEW code module.

EngineCallback.png

I tried to register for callback event in LabVIEW but I was unable to find a callback with this name. I just found the UIMessageEvent.

EngineCallback.png

I would be very grateful if anyone could help me with hints on how to override Engine callbacks from LabVIEW.

 

 

 

 

 

Teststand - GetProperyValue Error.vi in Teststand Deployment Engine

$
0
0

Hi,

I am using Teststand 2016 Base Deployment Engine Test Executive using LabView 2014 adapter. I am getting error "Failed to load a required step's associated module. [Error Code: -17600].Error is cause by "TestStand - Get Property Value.vi". It runs fine in Teststand 2016 development software. What module am I missing?

 

Thanks in advance.

 

NP


Diff between 32 bit and 64 bit simple user interface

$
0
0

Hi, 

 

What is the difference between  32 bit and 64 bit simple user interface.

 

If I want to run 64 bit simple user interface in teststand 32 bit , what are the changes needs ti be done.

 

Anyone tried this.

 

Regards  

Anand 

create sequence files automatically starting from an excel test suite

$
0
0

Hello everyone,

I wanna know if it is possible to automatically create sequence files from excel test suites which contains actions and expected results then execute them in Teststand, without having to do that manually which takes tremendous amount of time.

thank you in advance for your answers.

NI teststand creat string into array

$
0
0

i want to creat a string into array in test stand using CVI

TS_PropertySetValString (seqContextAsPropObj, &errorInfo, "FileGlobals.Data.Measure[0].Value", TS_PropOption_InsertElement, "NOK");

firstly the array not existe and when i use the function above i see in test stand just FileGlobals.Data.Measure created but the Value not created

Capture951.PNG

how i can do this ?

LV Cluster to TestStand to keep element order

$
0
0

Hi,

 

alright, so I have created my nice cluster in LabVIEW which looks good and the elements in the cluster are ordered in a logical fashion.

 

When I work with this cluster in TS (this of course is true for all clusters not just for mine) then Teststand displays the elements in an alphabetical order. Which is quite a pain in the back because I lose good bit of the readibility.

 

I am wondering if there are any sort of a best practice to overcome this problem. My guess would be that I have to name the elements in a different way so when they are ordered alphabetically then they still keep a structure, but I dont want to reinvent the wheel. Somebody else probably did it already...

 

let me know your best practice about this.

thx. 

In BatchModel, Terminate All causes higher order threads (socket 1, socket 2, etc.) to ignore execution of lowest order thread (socket 0)

$
0
0

Hello,

 

In the attached sequence "terminating help.seq", I can recreate the issue. In the Main of MainSequence, I press Terminate All while socket 0 in the middle of the synchronized section "a". All of the sockets proceed to Cleanup. So far so good.

 

But now the problem! Socket 0 finishes sync'd section "b" but Sockets 1 and 2 never seem to notice; they hang on the Enter("b") step, never noticing that Socket 0 has Entered and Exited section "b".

 

It's not until Socket 0 is done with its execution that Sockets 1 and 2 finish. I assume that this is because Socket 1 becomes the "lowest order" thread after Socket 0 is done executing. But I want Socket 0 to be the lowest order thread and direct the execution of these sync'd sections; if I never hit Terminate All, this Socket-0-driven behavior is achieved.

 

What's going on here?

Viewing all 6579 articles
Browse latest View live


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