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

Using Non-Administrator Windows Accounts results in sequence editor Crash.

$
0
0

Sequence file has an activeX/Com type step which tries to initliaze the Agilent 34970 device. This step is work fine with windows admin account but result in app crash when we try to run at non-admin [a.k.a: standar users]  accounts.

You can  find the error report picture at the attachments.

I guess it happens as a result of some restricted right on "C:" drive that standard users have, but I could not find which folders I should grand access.

I try to give write access to "IVI foundation" folder  and then  "program files(x86) /national instruments" and finally I grant write access to the "c:/programdata/nationalinstruments"  but could not solve the problem.

 

We are using test stand 2010i by the way.

 

Is there any one to help me out of this dead lock?


Generate TestStand Sequence according to TestStand Environment settings

$
0
0

I want to generate a TS sequence file (TS2017) in Labview 2015, and I have a TS environment, where all the custom steptypes are stored which will be needed.

After opening the IEngine I cannot find the method which could specify the right path to the TS environment file.

Did someone have some experience with this?

Integrate Labview Subvi with runtime

$
0
0

Hello,

im trying to integrate the attached subvi in TestStand (2017 64 bits), using only the runtime engine in the PC,  but im getting all the time errors or it is not working correctly.

I would appreciate any idea or help,

thanks so much in advance!!

Integrate Labview Subvi with runtime

$
0
0

Hello,

im trying to integrate the attached subvi in TestStand (2017 64 bits), using only the runtime engine in the PC,  but im getting all the time errors or it is not working correctly.

I would appreciate any idea or help,

thanks so much in advance!!

TestStand 3.1 Error

$
0
0

Hi all, 

I exprencing the following error when I try to start any  test stand (3.1) sequence. 

 

E01.JPG

 

 

 

 

 

 

 

 

 

 

 

 

then when I continue I get the following error.

E02.JPG

 

I believe these  two issues are related to together but I'm unable to find any clue where might be the error or the root cause of the fail.

These steps are using custom step type and custom DLLs. 

 

Has any one got any similar experience ?

or any advice is highly appreciated.   

 

 

Expression for Enum as string

$
0
0

I created a custom step type with a vi. I could not display the enum name as a string using the step description experession.

What is the expression to display an enum parameter name instead of its number?Custom step props.jpg

 

step params.jpg

 

Display LV cluster element value as an expression

$
0
0

I have a custom step type with a VI that has a cluster as input. I would like to display the value of a particular element of the cluster in the description of the step. I know how to get the value of other data-types with the expression

 

Step.TS.SData.ViCall.Parms["Parameter Name"].ArgVal

 

Since "Parameter Name" will be a cluster in my case, I can't find how to retrieve the value of a element.

Running FileDiffer from Beyond Compare

$
0
0

Does anyone know how to setup Beyond Compare to open FileDiffer when sequences are double clicked?

It looks like by adding *.seq to the file formats you could open the FileDiffer program.

 

I think the problem would be how to pass the file names to the command line


Running FileDiffer from Beyond Compare

$
0
0

Does anyone know how to setup Beyond Compare to open FileDiffer when sequences are double clicked?

It looks like by adding *.seq to the file formats you could open the FileDiffer program.

 

I think the problem would be how to pass the file names to the command line

Help needed, how to pass variables in Model callbacks

$
0
0

Hi guys,

I have a special problem. An important Index (something like the socket number) is needed everywhere during the execution of tests (in "call sequence" steps, in Model Options Callbacks, etc.). When the sequence is in the same file, I can use file globals to share the varaible, when the called sequence is in an other file I could propagate the variable or use a parameter. But parameters are seen only in the main sequence of the sequence file so how can I see a parameter from the caller in i.e the Model Options Callback? It is from a different file, so file globals do not work here!!!

 

Background: I need to define the Result directory for the report before or in the Report Options Model callback. So if I have a wrapper, which knows only by runtime which Test to call, this important index should come from the wrapper and should be handled before the Report Options Model callback is called (i.e. Model Options Callback would be my favorite, as this one is called only twice even with when two Reports are generated)....

Are there any ideas of how this parameter could be passed?

For me it is verry complicated to have such a lot of different methods to pass or share parameters, but still I haven't found a single one for my needs....

 

Thanks for your help.

 

Best Regards

Matthias  

How to create sequence call parameter to pass to external subsequence via lookupstrings

$
0
0

Hi guys,

 

I have a challenge to build test sequence (.seq) according customized xml file. I have been relating to TestStand example projects (<Examples\TestStand API\Building a Sequence Using API>).

However xml sequence will have plenty of sequenceCalls to external Sequence files (as drivers for instruments). Question is how to pass values which a described inside xml to external sequence of drivers.

According examples I should be using lookupStrings to set step configuration.

 

I am able to make such sequence calls by expressions dinamically however how to set them by design from xml script.

Attached you will find such functionality attempt inside xml file. Some parts are commented.

 

From the context you will see that I am calling external sequence called "_TIF.seq". External sequence has argument "parametras". My intention is to create sequence call with such argument.

 

Thank you in advance!

Karolis

Relocating report file path at runtime

$
0
0

Hi all,

 

I'm using parallelmodel to test DUT in parallel.

In the PreMainSequence, I connect to the DUT in order to ask its SN and PN.

And I set these 2 parameters in this sequence by : 

RunState.Root.Parameters.ModelData.TestSockets[RunState.TestSockets.MyIndex].UUT.SerialNumber = Locals.SerialNumber

RunState.Root.Parameters.ModelData.TestSockets[RunState.TestSockets.MyIndex].UUT.PartNumber = Locals.PartNumber

 

I'd like to store report file in the directory Root\PN\SN\Report.xml

for that, I setup XML report model with : 

Root\\$(UUTPartNum)\\$(UUT)\\Report[$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)"

 

When I test, the report file is stored in : 

Root\Empty_UUT_PartNum\Empty_UUT_SerialNo\Report[16 13 44][29 11 2018].xml

 

So it means that PN/SN settings has been made too late.

 

How can I proceed, please?

If possible, without modifying ReportModel

 

Thanks for your help.

Going from Sequential Model to Parallel Model with a lot of Testcases (how to reduce maintenance efford)

$
0
0

Hi all,

up to now I used the Sequential Model and an wrapper who chooses the test cases and replaces the "dummy Test case" with the correct one to call it later on in a new execution; In the test case (test sequence) I used the Model Options und Report Options callbacks.

Later on 

- a status with more states than passed / failed/terminated should be reported back to the caller to be able to react different

- the test cases should still use the callbacks independent if called by the wrapper or not 

- the parallel Model should be used later on with the socket index 

- a new user Interface needs to be written for that (4 independent test sockets).

 

As the Process Modell defines also the order of the callbacks, I better ask an expert Smiley Happy.

Questions:

how to pass a parameter into a sequence in a new execution, I found 2 possible approaches, one with the callbacks (use process modell) but I need to add a sequence name as additional parameter.....; Are there any other differences between the parallel model and the sequential modell that I need to have in mind?

 

So all these Decisions have an impact on the parameter list so that's why I need to be shure of the optimum approach before I change 180 Testcases (a lot of maintenance work when switching between sequential modell and parrallel model approach Smiley Happy 

  

 

Thanks a lot.

 

Best regards

M. Schreiner

Queue Array in Teststand and Dequeue in LabVIEW

$
0
0

Hello Everyone,

 

I apologize if this has been asked before but i didn't find any solution so i posted it. So my problem is as follow.

I am inserting data into Queue (Array) in Teststand  and dequeue data in LabVIEW(For monitor purpose) but when i create NewpropertyObject and give Value Type as Array. it always give me null reference. For single number it work fine, to dequeue element. I have created example program that attached with this post. 

 

Thanks 

on the fly reporting

$
0
0

How to write on the fly testresults log report generator


Mathscript in VIs to use in Teststand

$
0
0

Hi,

 

I'm using Teststand to create a small test sequence where I need to use a VI with a MathScript Node executed by MathScript RT Module. In MathScript Node I have a filter_zerophase and when I add this VI to an action in TestStand the message "Unable to load..." appears on Module tab. If I remove the filter_zerophase of the MathScript node everything works fine. Any one knows why this happens?

In this link (http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_filter_zerophase/) we can see that filter_zerophase is supported in the LabVIEW Run-Time Engine.

 

Thanks,

 

Ruben

Get Name of Loaded Sequence File from Station Model

$
0
0

Hi,

 

I want to query the test operator with a message box in my station model sequence file. I want the query to change based on which test sequence is loaded. Is there a way for me to get the name of the calling or loaded sequence file?

 

Curt

Dynamic Labview Subpanel in teststand user interface

Read Custom Command Line Arguments When Running Sequence

$
0
0

Hi,

 

I would like to be able to run a sequence file and have it accept a custom command line argument. For example I would like to run "TestSequence.seq" with the string "2710" as an argument to the sequence file (when I run via command line), which will be saved in a sequence local and used as an input to one of my VIs in the sequence file. Can anybody help me with this?

 

I have tried to capture the command line argument with the ActiveX module using RunState.Engine.GetInternalOption(InternalOption_ApplicationManager) & property CommandLineArguments

but I get an error popup saying the argument is not recognized. 

 

image.png

 

Any help is appreciated.

 

Thanks

How to get the termination state of sequence in a new execution?

$
0
0

Hi,

I found a way how to get the termination state during an execution (RunState.Execution.GetStates()).

Nice to know. But it is per execution, so if a wrapper calls another Sequence "as a new execution", the termination state inside

the new sequence is different than outside (in the wrapper).

 

I know that there is the run state which is available also for a previous step (and from inside of a new execution):

RunState.PreviousStep.Result.Status

But is there something similar also for the termination state (I could not find it)?

 

Thanks a lot.

 

Best Regards

Matthias

 

 

Viewing all 6529 articles
Browse latest View live