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

Tiling Threads on an Interface

$
0
0

Hi again,

 

I'm guessing I'm going to embarrass myself with this one - I searched but could not find exactly what I'm looking for.

Here's my situation:

  • I'm using the batch process model
  • Each socket must launch two sequences in parallel with the execution option, "Use New Thread" (so far so good. It runs.)
  • I need to be able to tile each spawned thread on the sequence editor (RTOI later on) so that the user can see each thread executing.

Hopefully this makes sense...

I've sorted the threads as object references in the order I'd like to tile them. I notice that for executions UIMsg_TileWindows seems to work, but I can't get it to work for threads.  Is this possible, and if so, what am I missing?

 

Thanks very much as always,

 

Mr. Jim

 

 


file.seq could no be loaded

$
0
0

Hello guys.

 

i'm working with ts 2014 but sometimes my file .seq fail and after can't to open de .seq file. when i try to open, this message appear:

 

incorrect file format

the sequence file file.seq could no be loaded

error code: -17100

source: 'TSAPI'

 

Could someone tell me how to fix it? Smiley Happy

How to obtain Execution Time、start time、total time in LabVIEW UI

$
0
0

 

I’m working on a project to edit a LabVIEW UI based on Build Script.lvproj to execute sequence files.This UI only use Single Pass to run sequence files, and it needs to display execution start time、duration time、total time, etc.

I use method as figure 1, return value “Exists” is true ,but “GetValString” shows nothing.Same to other premeters I want. But these variables got datas corrcetly when I check in TestStand.

I get problems as follow:

  • How to get Execution Time、start time、total time correctly in LabVIEW UI?Why does my method failed?
  • Some variables generated dynamiclly such as Locals.Resultlist[0].TS.Totaltime、RunState when sequence running in TestStand. Can these variables obtained in LabVIEW UI, and how to do it ?

 

Besides, Property fo TS.Execution “SecondesExecuting” returned value is different with Execution Time in XML report that generate automaticlly, especially in first run.Maybe it caused by analysising sequence, but I’m not sure.Do they have difference?

 

Thanks.

Best way to pass parameters to sequences called as new execution

$
0
0

Hi community,

 

I have a "test"sequence which has to be called several times under different environmental conditions and the runs should create individual log files. I have learnt that the only way to do this (without serious work on the station model) is to create a "Framework" sequence which makes the decision when should the "test" sequence needs to be called. So far easy, but as I need individual log files I need to call my test sequence in a "new execution".

 

I get separate report files for each execution of the test sequence which is great but by calling the test sequence in this way I lost the option to pass parameters to the test sequence, which is quite painful as I really need to pass data from my framework sequnce to the test sequence.

 

My question is: what would be the best way to address this problem?

 

thanks!

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

Measurement and Automation Explorer

$
0
0

I have a PC that won't run MAX.  Opening MAX gives me the following error:

The CniDMFuiProvider::Initialize plug-in caused an exception in the CmxExecutionThreadPool:Smiley Very HappyoWorkNonUI function in the MAX process.
See this file for details:
C:\ProgramData\National Instruments\MAX\Logs\MAX\af7d2d2a-3244-48ad-993b-067327b12a1e\8537cbf3-7f06-4679-bc57-158048e40089.dmp

I attached the dump file but .dmp files aren't supported so I zipped it.

 

This locks up MAX and the process must be killed.  ( Windows 7 64-bit )

I have installed, uninstalled ( all NI software ), and reinstalled NI-VISA, NI-DAQmx, NI-MAX and that didn't help.   I reset the configuration with the reset tool per another post I found and restarted the machine.  No help.

I repaired NI MAX and restarted.  No help.

 

I have installed NI SW for 15 years and never encountered this and since I can't uninstall, reinstall and go I searched the forums for help.  I didn't find a solution to this issue other than the repair and/or resetting of the configuration.

 

I'd appreciate any suggestions on how to fix this.  Thanks.

 

test code module labview

$
0
0

hi i'm begginer in teststand ,so i have to test a code module in labview ,this vi every second give a data (the vi is in while loop) ,in the teststand when i excute doesn't stop, so i should stop the test from labview ,so what should i do .(sorry for my poor english).

some screenshots:

 

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.

 

 

 

 

 

Viewing all 6277 articles
Browse latest View live


Latest Images

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