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

Change report folder programmatically with an expression in Report options window.

$
0
0

First of all I am a beginner in Teststand so apologies for any mistake.

I was trying to change folder path in Report Options window where we can specify path with expression.

But I don't want to  change the current file name which is created using Macro ($FileDate, $FileExtension)

I was not getting a specific answer to my question.

Here is the screenshot. So in Report Options dialog I want to specify folder name (Currently 'Folder1') and change it to 'Folder2' based on condition that if specific sequence runs.

 

teststandIssue.png

 

Note:

I have tried using sequence callback and creating Report Options sequence and defining the path based on expression but that does not let me access Macro in report options ( $FileDate, $FileExtension, etc..)


Re: Change report folder programmatically with an expression in Report options window.

$
0
0

Hi LVK

 

You can specify an Expression in that box not only a pathname.  Maybe go for something like:

 

(Locals.Operator == "SercoSteveB") ? <Your Folder 1 Path> : <Your Folder  2 Path>

 

Clearly Locals.Operator == "SercoSteveB" is probably not going to work for you, but any expression that evaluates to True or False will do the trick. Smiley Wink

 

Steve

 

Re: Change report folder programmatically with an expression in Report options window.

$
0
0

wrote:

Hi LVK

 

You can specify an Expression in that box not only a pathname.  Maybe go for something like:

 

(Locals.Operator == "SercoSteveB") ? <Your Folder 1 Path> : <Your Folder  2 Path>

 

Clearly Locals.Operator == "SercoSteveB" is probably not going to work for you, but any expression that evaluates to True or False will do the trick. Smiley Wink

 

Steve

 


Thanks Steve,

I have a question here, I know how to define variables in sequence but how can I define variable (say Locals.Operator) for the ReportOptions window?

reportIssue2.png

Re: Change report folder programmatically with an expression in Report options window.

$
0
0

We are moving into territory that I haven't been before.  If you need to switch paths based on the sequence file that was run I am not sure a Local is going to give you the scope that you need.   You could do it with a StationGlobal, but that feels like overkill (but maybe worth it to trial the method).

Problem with Labview subvi in parallel

$
0
0

Hallo,

I need to execute a subvi in background (reading data) and after some steps in Teststand,  close it and get the array with all data.

For that, i have created a sequence with execution Options: Use New Thread, so the sequence carry on with the new steps in parallel (see picture sequence.png)

In the subvi, i included FP.Open and Hide State (Attached picture read_data.png)). So until here everything was working pretty fine, but when i am trying to close the subvi the system is stopped in this step, crashes. For that i was using the following subvi (Stop.png)

 

Could you please help me with this??

I would apreciate any idea,

 

Thanks in advance

Re: How to pass a constant, #define or enum values from CVI dll to teststand

$
0
0

Hi AI B,

  I am test stand user and I had a problem I would like to ask you.

    I had enum type in C CVI dll and I use FP to interfere with test stand by drop down box select in test stand. After I select value in test stand, I got wrong index in test stand. EX: I define enum type is A .. D (index 0 .. 3) and I chose C (index 2) but I got other than 2. Do you know what wrong about that and how I fix this problem. Thanks for you help.

 

 

Binh T Pham

Re: Problem with Labview subvi in parallel

$
0
0

well you don't need the Exit function in STOP.vi. You don't what to close LabVIEW.

 

Also pop a Close Reference function after the FP.Close.

 

 

Oddly formatted report file

$
0
0

Hello Community,

 

I have noticed something strange with the report file generated by my sequence. As you see that besides some other stuff I have two input clusters with I'd like to log ("Parameters" and "Limits"). (attachment1)

 

According to my understanding I have set every logging option the same for these clusters, but they show up in a different format in my log file. (attachment2):


The "Parameters" cluster doesnt show up, but its element do. The elements are indented. The space between eg: "Freq Start" was replace by an underscore.

 

The elements of the Limit cluster show up in a different way and by the way same for the elements of the results output cluster.

 

The ideal way would be:

 

Cluster name:

        Param 1

        Param 2

        Param 3

 

 

etc, but for now I would be happy even if you could explain me why do I see a difference in the displayed format.

 

Thanks!


Re: How to pass a constant, #define or enum values from CVI dll to teststand

$
0
0

Please show me your new link because I can not load from this link. Thanks

Using the Array SetElements function

$
0
0

Hello fellow users.  I have searched the forums for a solution but haven't found exactly what I am looking for.  I have a sequence file with many steps and it has been in use for several years without issue.  I am now going to modify this sequence to run on a sampling plan with a lot size of 18 UUTs.  The sampling plan specifies that the first 3 UUTs must be tested at 100% and pass in order that the remaining 15 can skip certain tests.  In order to keep track of the final test result of the first 3 UUTs, I am attempting to use an initialized array with 18 string elements.  I have a second numeric variable which is incremented at the end of each sequence basically to act as a counter of the UUT number and is reset to 0 when 18 is reached.  Each time a UUT has completed testing, I would like to write PASS into the element indexed by the counter.

 

It appears that the SetElements(Array array, PropertyObject value, [String range]) to accomplish this, but it doesn't change the array in any way.  I would like to have the optional [String range] to be the counter value.

 

What am I doing wrong and is there a better way to accomplish this task?

 

Thank you for your time

Brian

Change Procesmodel in sequence

$
0
0

Hello everyone,

 

I have a problem with teststand. I have multiple programs to test UUTs with, and some of them need a procesmodel parallel instead of sequential. I already found out how to do this, thanks to this forum. But the problem I have now  is this:

Normally the proces model is Sequential. Some programs have a built in statement in the PreUUTLoop to change the proces model to parallel. In the PostUUT I change it back to sequential.

But when I run it the first time after testing sequential, it still runs in sequential mode. I need to stop the parallel test and then rerun it.

I have attached the file I test with.

I already added a delay, even though I think it is pointless.

Any help is welcome.

Re: Change teststand buttons caption name and font size

Re: Change Procesmodel in sequence

$
0
0

Sorry I can not view your sequencefile as I haven't got TS 2017.

 

You would need to stop your sequential model executing before you can change the process model.

I would suggest that you have an initial top level sequence that runs without any processmodel which you prompt for a selection for the process model to run with then launch the required sequencefile/sequence using that selection.

Once the execution has completed it could then return you to your selection.

 

 

 

 

Re: Problem with Labview subvi in parallel

$
0
0

Thanks so much for your reply.

I was trying to do it with the FP.Close and the Close reference as you indicated in your email, but with that, i only close the Front Panel and the subvi is still running, so my teststand program crashes.

I was also trying to do it with "Abort VI" but i am getting the following error

"Error 1000 occurred at Invoke Node "

 

Any idea how should i proceed??

Thanks again for your time

Re: Change Procesmodel in sequence

$
0
0

If you want I can save the file as a different TS version.

But as far as I understand your reply, I should have a different sequence file, where I choose the procesmodel and according to that choice it should open the real testsequence?

Because that is a bit of a workaround, because I am now writing the testprogram for the production people. And they need it as much automated and without too much choices, to limit the error possibilites.


Re: Change Procesmodel in sequence

$
0
0

Is your PreUUTLoop  in your client sequencefile?

 

I have TS 2014

Unable to See Logged Value in Test Report

$
0
0

I am new to Test Stand, and I have read a lot of posts about logging, but I can't seem to make it work. I have a sequence that calls a method from my C# DLL called getValue() to return a double. When I check the "Log" box for the Return Value of the method call, the report does not show the return value (or anything else).

I am able to store this value in a local variable and see the value if I set a break point after the step and then look at the current value of the variable, so I know the method is working from Test Stand. However, if the sequence ends it resets the value of the local variable back to 0.

 

"Disable Result Recording for all sequences" is not checked in the station options, the sequence options, or the step options. Please help.

Re: Unable to See Logged Value in Test Report

$
0
0

Solved it. Under Configuration -> Result Reporting -> make sure result filtering Expression shows All Results.

Result filtering works for ASCII but not for database result processing

$
0
0

The following result filtering expression works for the ASCII text file result processing but not for the database adapter. Why is that?

 

Result.Status != "Done" && Result.Status != "Skipped"

 

An error occurred calling 'LogMultipleResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred evaluating the database logging result filter expression.
Unknown variable or property name 'Result'.
Error accessing item 'Result'.
Source: TSDBLog

Re: Module for step not loadable

$
0
0

I don't use Labwindows CVI, but maybe mass compiling your VIs might help?

Viewing all 24446 articles
Browse latest View live


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