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

Numeric Limit Test result recorded to database in different manner dependent on adapter used.

$
0
0

1.0   Problem statement:

If a step using the Adapter: Sequence, uses the Type: NumericLimitTest, its results are not logged to the database in the same manner as a step that uses the Adapters:  LabVIEW or <None> (other adapters may fall in this bin but these are the only others I use). This forces data associated with NumericLimitTest to be retrieved in different manners, duplicating the effort of data analysis tools.

 

2.0   Details

2.1     Steps that use:

  • Adapters: LabVIEW or <None>
  • Type: NumericLimitTest

 

Log measurement results in the following manner:

 

Measurement information is stored in an explicit column for its type (high low limit, compare operator) this is the desired method for ease of data retrieval and analysis.

 

DB Table [PROP_RESULT] (Stores measurement name and measurement value)

 

ORDER_NUMBER

NAME

PATH

CATEGORY

TYPE_VALUE

TYPE_NAME

DISPLAY_FORMAT

DATA

0

Numeric

Numeric

2

0

NumericLimitTest

 

0

 

DB Table [PROP_NUMERICLIMIT] (Stores limit test specific information)

 

COMP_OPERATOR

HIGH_LIMIT

LOW_LIMIT

UNITS

STATUS

GELE

11

9

NULL

Failed

 

2.2     Steps that use:

  • Adapters: Sequence
  • Type: NumericLimitTest

 

Log measurement results in the following manner:

 

All step information is logged to the [PROP_RESULT] table in an Entity Attribute Value model format. (Difficult to work with from a SQL retrieval perspective)

 

DB Table [PROP_RESULT] (Stores data a measurement name, measurement value, measurement attribute(s) name and attribute(s) values)

 

ORDER_NUMBER

NAME

PATH

CATEGORY

TYPE_VALUE

TYPE_NAME

DISPLAY_FORMAT

DATA

1

Numeric

Numeric

2

3

Number

%#.2f

14.95969

2

Units

Units

2

1

String

NULL

V

3

Limits

Limits

2

0

Container

NULL

NULL

4

Low

Limits.Low

2

3

Number

%#.2f

14

5

High

Limits.High

2

3

Number

%#.2f

16

6

Comp

Comp

2

1

String

NULL

GELE

 

 

3.0   Suspected causes  

  1. It is suspected that this might be related to the fact that Sequence Call steps appear to not only be Adapter based but also have a type associated with them, aka SequenceCall type. This type is changed to NumericLimitTest when it desired to evaluate a measurement associated with the sequence call.

 

4.0   Development Environment Configuration:

  • TS Version: Confirmed issue using both, TS2012 and TS2014
  • Database Schema (result recoding config): Using a slightly modified version of the Generic Insert routine (see mod schema attached). I feel this is not related to the mods however I have not had the time to confirm at this point.  The mods are only to add additional information to the UUT_Resutls table.

 

 

5.0   Desired Outcome:

To be able to use steps with the adapter: Sequence of type: NumericLimitTest that log data in the same format as described in part 2.1 of this document.

 

The following workaround could be used but an alternative is desired so that this could be corrected at the test station level so that existing sequence file would not have to be individually updated and validated.

 

 

6.0   Known Workarounds

Use only steps of adapter: Sequence of type: SequenceCall and pass values from sequence call to steps of an adapter: <None> of type: NumericLimitTest for evaluation and logging of the measurement.

 


Test socket does not show as disable

$
0
0
I run batch model and skip socket 1 during the run. Teststand 2014 does skip the socket but when the batch is completed. The display does not the test socket as disable but has a green check mark as the picture show Teststand 2010 working does show the socket was disable while teststand 2014 does not.

VI is not executable in EXE

$
0
0

I am using TestStand 2014 and LabVIEW 2014 SP1 (both 32-bit versions) for my project. We are also using the LabVIEW OI to run the test sequences. One functional global is used in both the code modules called from TS & LV Operator Interface. The global is essentially some settings read from INI file and used by both TS & LV. The LV2 global is used only as a subVI from either the code modules or from the OI. The code is working well with the TestStand Sequence Editor and LabVIEW development system.

 

Before building the executable for Operator Interface, I mass compiled the entire folder that contains the code modules as well as the folder containing Operator Interface code. And then the executable was built. I changed the LabVIEW adapter in TestStand to use the LV RTE. Now when I ran the exe, I got an error.

 

"Failed to load VI <VI Name> in the LabVIEW Run-Time Engine version '14.0.1f1'.

LabVIEW: The VI is not executable. This error may occur because the VI is either broken or contains a subVI that LabVIEW cannot locate. Select File>>Open to open the VI and verify that you can run it."

 

where the VI name is the actual VI name that failed to load and this VI reads the LV2 global mentioned above. Once I put a disabled structure over the LV2 and try to run the sequence, it seems to load this VI but failed at some other VI that tries to load the LV2.

 

Then I changed all the code modules to "Load dynamically" (Before this, the step load option was "Preload when execution begins"). Now when I run the exe, I get the following error: 

 

Failed to load VI <VI Name> in the LabVIEW Run-Time Engine version '14.0.1f1'.

LabVIEW: The VI is not executable. This error may occur because the VI is either broken or contains a subVI that LabVIEW cannot locate. Select File>>Open to open the VI and verify that you can run it.

Error Code: -17600; Failed to load a required step's associated module.

 

 

What am I missing and how can I solve these errors?

 

Thanks,

Saranya

Can TestStand compare two text files

$
0
0

Is there a way for teststand to compare two text files without Labview?  I'm doing some loop testring and I just want to check that FileA is the same as FileB and show the differences if they're not the same.  

Keep Offline Results Processing Utility minimized

$
0
0

I've been using the "Offline Results Processing Utility" to upload data to a database but the utility has the anoying feature of poping up infront of the executing teststand GUI.  I minimize it (to the tray or taskbar) but as soon as a new result is in the inbox to be processed it pops back up.  How do I keep it minimized?

Terminate execution based on step output

$
0
0

Hi all,

 

I am looking for a cleaner way to terminate an execution based on the output of a step. I have a few simple VI's that prompt the operator, these give the operator the ability to cancel the execution as well as continuing the execution.

 

Up until now, I have been setting a local boolean (Locals.TerminateSequence) with the boolean output of the VI. I then check this with an if statement, and run RunState.Execution.Terminate() to terminate the execution if required.

 

I'm fairly certain that I can do this all in the steps post expression, but I cannot seem to figure out the syntax. If my VI has a "cancel" boolean output,what would be the correct syntax?

 

if(Runstate.Step.???"Cancel" ==  True) RunState.Execution.Terminate()

 

Getting the output of the VI is the confusing part for me, but I assume this is actually pretty trivial, and that my google fu is lacking.

 

Thanks!

 

how to acquire the revision of the deployment on the test certificate?

$
0
0

how to acquire the revision of the deployment on the test certificate?

TestStand reference in custom OPUI only valid for special version?

$
0
0

Hello,

i created a custom OPUI with C# that contains a reference to the installed TestStand 2013. Everything works fine.

Now i tried to execute the compiled program on another pc that has only TestStand 2010 - not working any more.

 

Do i have to compile a special OPUI for each TestStand-version? Or is there a trick to avoid this?

 

Thanks


While Loop with Status Expression to Fail the Loop

$
0
0

I'm trying to get a While Loop step to throw a Pass/Fail.

Basically we want to loop on some steps a max of 'X' number of times.

If the Loop condition goes False before the set number of iterations, we want the step to Pass.

If not, we want it to Fail.

It's a Loop Timeout based on the loop counter.

 

I've created a custom While Loop step with the Status Expression enabled so we can build an expression.

 

For testing, the While Loop Condition is simply "RunState.LoopIndex < 10"

The Status Expression is "RunState.LoopIndex == 10 ? Step.Result.PassFail = Evaluate(RunState.LoopIndex == 10) : False, Step.Result.PassFail ? "Passed" : "Failed" "

 

When this runs, the opening While step immediately fails, presumabely due to RunState.LoopIndex not equaling 10. This seems to override the Loop Condition statement.

 

Is this even possible or do I need to build some other logic to make this work?

HTML file path in property somewhere?

$
0
0

Hi,

I know that teststand derives the full html filename and path from the report options.  I'm trying to figure out:

1. Where in the process model the reporting is actually compete, as it appears to create a 0kb file prior to actually populating it.  I know this because I enabled the "generatereportpath" callback, put a breakpoint in there, and it had by that time already generated a placeholder for the html file 0kb long, but hadn't actually populated it yet. 

2. Where in the runstate tree this complete path might be stored.  I've hunted around the runstate tree while paused in the above callback but could not find it.

 

Anybody know?  Would appreciate it,

 

Thanks

David Jenkinson

TestStand UI SequenceView Control background color

$
0
0

Hi, 

 

(I use LabVIEW 2013 SP1, Teststand 2014)

 

I would like to edit the visual properties of the TestStand UI SequenceView Control. (and specifically the background color)

 

I have found this Help page - http://zone.ni.com/reference/en-XX/help/370052N-01/tsuiref/infotopics/seqview_proppage_font_color/

 

Indeed, when right clicking the control and selecting SequenceView >> Properties I am able to access some of the properties of the control in edit mode.

I also set the ApplicationMgr.UseStepListConfigurations property to False as suggested so the properties apply in Run-Mode.

 

What is working -

When I Removed some of the columns, the change also remains in Run-mode,

What isn't working -

When I change the background color (to blue in the attached VI), It applies only in the Edit-mode. In Run-mode it returns to the default grey color

 

Please open the VI attached and see that if you run it, the number of columns is 2 (in Run-mode), and when you set the ApplicationMgr.UseStepListConfigurations property to True, the number of columns (in run-mode) is 4.

 

Questions -

Do you know how can I make the background color apply in run-mode as well ?

Can I access the control properties programmatically ?

 

Amitai.

TestStand UI SequenceView Control and parallel threads

$
0
0

Dear NI community!

Could you, please, help me with the following - how to display test sequence results on LabVIEW operator interface, using TestStand UI SequenceView Control, when there are two parallel threads running? I'd like to use Parallel Process Model, and have on operator interface two separate TestStand UI SequenceView Controls. And, to display on each of them, correspondetly, one or another thread execution. How to assign this control to one of parallel threads?

Thanks a lot in advance!

Custom Operator Interface to show multi-thread results

$
0
0

Dear NI Comunity,

 

let me describe my problem:

 

The test in TestStand should be tested paralell, i need to use model based on Parallel Model.seq.

The executed test steps from all threads needed to be tracked in Operator Interface as shown on the picture below (in one VI).

 

 

Thank you for any recommendation!

Multithreading/Parallel Testing/Run VI Asynchronous

$
0
0

Hello, hoping someone can give me some guidance...

 

Here is my situation...I need to run a VI continuously through the entire test to maintain communications with the UUT while taking measurements at different points. I also need to be able to change the inputs to the continuously running VI along the way to change outputs I'm measuring.

 

So, my first question...is it possible to do that solely in TestStand? I tried to put the continuously running VI in its own subsequence and putting that on a different thread, but the sequence freezes once it gets to that VI because it never ends.

 

I'm making progress with getting it to work running it Asynchronously, but changing the inputs while it's running has been a little challenging. I'm using a VI that gets called when I need to make the changes in TestStand that uses a global variable in LabView to pass data to the continuously running VI.

 

Just wondering if I'm on the right track or if there is a simpler, more direct way to go about this.

 

Thanks,

 

Luke

testtand


capture text on screen

$
0
0

Hello all

 

I am trying to use Teststand to write a code which will read text on screen or text on pop up boxes

Is there a tool I can use to capture text from the screen? Once I figure this out then I can compare text captured with expected text

 

Thanks

 

how to solve teststand labview I issues(String not found in the langurage resource file)

$
0
0

Hi I've been having a lot of trouble with running Teststand sequence in Labview UI recently. I wonder if anyone can give me some tips.

Problem NO.1:

Recently I managed to run a Teststand sequence file i wrote in Labview UI simple, but when I made a new excution entry point in the sequence file i found that the Labview will prompt me to find the "modelSupport.seq". I later on found out that there seems to be two subtlely different file paths that Teststand seem to look for files from - "C:\Program Files(x86)\National Instruments\TestStand 2014..." and "C:\Program Files\National Instruments\TestStand 2014..." I think there was once Teststand 32 bits loaded in my PC but later on it was uninstalled (However not completely), therefore left some of the folders remaining. I think the 32 bits Teststand must have created the folders in the "Program Files(x86)", correct me if I'm wrong. I now work with 64 bits Teststand, and it has given me a lot of trouble because I think Labview is been constantly trying to use the 32 bits Teststand paths.

My question is: Would it work better if I removed all the 32 bits Teststand files and folders? (And how? I no longer have the uninstaller of Teststand 32 bits in the computer) Or is it probablly better if I just keep on adding files into neccessary folders so the Labview simple user interface can find what it needs?

(Since I have two problems which are quite possibly related, I'm just going to ask them both here. Smiley Surprised)

Problem 2: To solve some of the problem 1 above I copied the folder "models" folder from my other work computer with both Teststand 32 bits and 64 bits installed. I copied it from this folder "C:\Program Files (x86)\National Instruments\TestStand 2014\Components" and put it in the same directory in my office computer. it would no longer prompt me to find "modelSupport.seq".

I now have disovered when running the Labview UI simple, the execution entry point buttons (exept run main sequence button) and the report file would display "String not found in the langurage resource files" instead of normal text. (Please see the attached for pictures, both the file paths and report file with the strange text)

Does anyone have a clue what's going on in my Teststand? Would reinstal teststand and only keeping Teststand 64 bit fix the problem? Thanks a lot.

Execute another module after report generation before TestStand completes execution

$
0
0

 

In my application after TestStand generates and saves the report, I would like to run a step to send a flag informing that the test is complete and report is saved. How do I achieve this? The report is saved at the very end of TestStand execution.

I do not want On-the-fly reporting since I do not care about the information during execution. On-the-fly reporting, also saves the report at the very end. I would like the file to be saved and then the flag sent. It is fine if the results from the step for sending the flag are not recorded in the report.

Terminate Sequence button behaviour

$
0
0

Hi!

How can I modify the standard behaviour of Terminate button?

Actually if I press it during test execution the sequence will result in a "Terminated" status.

I'd like to overwrite this behaviour and provide a PASS/FAIL status if all steps are passed or if at least one step is failed.

Is it possibile?

 

Thanks in advance.

anyone know how to export a teststand workspace file (*.tsw)?

$
0
0

Exporting my Teststand Workspace file into a text file for importing it into another reqts app is what I want to do...does naybody know how to?

Viewing all 6575 articles
Browse latest View live


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