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

HELP Sequence file translator, how to insert a sub sequence ?

$
0
0

Hi,

 

I would like to know how insert sub sequence in the sequence pane and

how insert steps in this sub sequences with the sequence file translator which use

text file (.lvtf).

 

Which vi do i have to modify in the project LabVIEW of Seqfiletranslator ?

(I think about the main vi TextTranslateToSequenceFile.vi maybe it's here.)

 

Is someone who can help me please ?

 


Access denied. Error writing to file. -17205 Add UUT Report and Save

$
0
0

I cannot figure out why TestStand cannot generate my report. I have verified that I have write permissions to the folder and I have also tried running TestStand as an administrator. P:\ was originally the path to a network drive that I then mapped to P (in case that was what was causing the error, but it was not). The folder is being created but just the HTML report is not. I cannot even find Microsoft FindFast utility on my computer so the steps I found on Google to disable it are no help. Any help is appreciated. 

got the help, sorry! please delet it

$
0
0

got the help, sorry! please delet it

Call "MessageBox.Show Method" via DotNet

$
0
0

Hello,

 

usually I develop my code modules by LabVIEW. Therefore I havn't any experience with .NET.

 

For a new project I want to call the Windows Message Box via .NET (Screenshot 1 in attachment). But I don't know how I realize the right assignment of owners windows handle. Directly assignment of TestStand properties ThisContext.Engine.AppMainHwnd or &ThisContext.Engine.AppMainHwnd results a run time error (Screenshot 2 in attachment).

 

Does anybody know what the correctly property of calling application (=TestStand) is?

 

Thank you in advance.

 

Kind regards

 

Christian

How to get a edited string to be evaluated again

$
0
0

hello, I'm very new to TS and don't know if I express the problem clearly. however the question below:

I try to edit a numeric variable before it's evaluate at runtime and what i did is:

 

Val(SearchAndReplace("FileGlobals.I_LB_bin[FileGlobals.loop_BINi]","LB",FileGlobals.Mode[Locals.modei]))/2

 

but after the replacement seems the val function can get value with new string.

how can i get a string to represent a value and be evaluated again after edit?

thanks a lot!

Parallel thermocouples in NI 9213

$
0
0

Good morning,

How to connect to one of the channels, in module NI 9213, parallel thermocouples to mesure the average temperature of the room? The others channals is occupied for other measurements.

I need to connect compesation resistors ("swamping resistors") for each of the thermocouple wiche are in parallel? How to calculate its values?

Thanks

LabView TestStand interoperability with LabView runtime adapter

$
0
0

I would like to get some background information on how the interoperability of LabView and TestStand works.

We are using LabView steps mainly for some minor tasks in TestStand projects.

We do not use the regular deployment way as proposed by NI, but simply use one or more VI folders from which we reference LabView steps.

Deployment is done by copying the whole TestStand/LabView folder structure to the target machine.

We use the LabView runtime adapter within on our deployed systems.

We never mix LabView versions within one project.

 

Now, we frequently face the situation that the exact same project structure on two different machines has problems with the LabView steps.

So one changed VI runs on one target machine while the other after copy deployment is broken. Due to the same project structure and the virtual drives the paths must be the same.

A mass compile usually solves the situation.

So this is mystery number 1.

 

Today, I had the same problem, however I did not mass compile the full VI folder but simply some folders which I assumed had changed.

One VI which was referenced by TestStand was not mass compiled and was declared as broken by TestStand.

All I did was opening the broken VI in LabView Development System and nothing was obviously changed by LabView.
I closed the VI  and pressed the Reload VI button on the TestStand step and the VI was working again, however the sequence file now had changed somehow (* at file name).

 

Another phenomenon:

An existing project on a machine was running with a certain user.

After switching the user, the VI steps of the project were suddenly broken.

 

My questions?

1) Why do VIs which run in the development system flawlessly  become broken in the runtime?

2) Does the runtime use different search paths than the development system?

3) What kind of information does the mass compilation produce and where is it stored.

4) What kind of information does TestStand store along with the VI?

5) Is there a way to diagnose the problem with the runtime adapter ? With the runtime adapter I cannot open the VI to see what is the problem and in the developer mode it works.

 

 

 

 

 

 

 

 

multiple expressions in value field

$
0
0

I'm using a multiple numeric limit step.

i would like to add a value to the step.numericArray[0] and the same value to a local.xxxx

(see picture)

is that possible or do i have to do it for the local.xxxx in the post-expression ?

 

br

Nikolaj

 


Message PopUp Maximum Button

$
0
0

 

Hi Guys.

 

I'm using the Message PopUp to select diferent options, but I need to put more than 6 Options.

 

The Message PopUp have 6 maximum, it is any way to increase the number of buttons into a message PopUp (more than 6)?

 

 

Passing in formula as a string

$
0
0

I am attempting to use a string parameter to contain a formula that, when passed into a called sequence, will populate the value of another string and be evaluated as a formula.

E.G.

CalledStep has:

a string parameter called Name,

a number local called Val, and

a message popup step with a precondition to only run if  name equals Carl.

 

MainSequence :

is needs to pass in a formula for the parameter Name, so that inside CalledStep the name changes based on Val.

 

I have tried using "Parameters.Name = Locals.Val == 2? "+ Str("Carl") + ":" + Str("Jim") (with quotes as depicted), but it doesn't work. Watch view shows the equation in Parameters.Name but I suspect the quotes on the whole statement make it, just another string, instead of a working equation.

 

Is there a way, either in CalledStep or in the MainSequence to cause the above equation to be evaluated once inside the called sequence? Can I remove the quotes in CalledStep? Would I use an Expression (string) parameter?

 

Thank you for any help you can provide.

parameters.continuetesting

$
0
0

i can't change the value of parameters.continuetesting in my PreUUT callback.

I try to set the value passed on user button input, but it keeps having the value "true"...

 

what am i doing wrong ?

How I can log Sequence File version number to database?

$
0
0

Hi,

As in the subject.

How I can log Sequence File version number to database?

There is nothing like that under Logging object.

 

Boolean indicator showing fileglobals

$
0
0

Hi!

I´m using this OI in my projectsince it has (almost) all we need:

http://www.ni.com/example/31278/en/

 

However, I´m having a hard time understanding how to add stuff on the interface. The only thing i need is four LED:s for four specific test step results. I was thinking about using Fileglobals and the get property vi but how do I get the seqcontext for that inside the top-level vi of the OI? If anyone could supply a specific example for that I´d be very grateful!

 

Thanks!

Log step in PreUUT

$
0
0

I try to log data in PreUUT seq.

Even if i mark it in additional data pane, i don't see it in the report.

How should i do it ?

Example with cluster and enum from LV in Teststand

$
0
0

Hello,

I am trying to run one small example but I am having some problems which I do not understand. I have already tried several combinations and I am still not getting what I need.

I have test case already developed in LabView. Test is checking whether the system is recognizing the voltage max value (U_Mon Max) and voltage min value (U_Mon Min). This VI has input cluster which contains of enum U_Mon Mode (U_Mon Max, U_Mon Min) and number U_Mon input (voltage value).

The implementation I used in LabView was with 2 nested For loops:
1. for loop: executes the VI for Max and Min value
     2. for loop: loops the test by incrementing (in case of Max) or decrementing (in case of Min) the U_Mon input value as long as the indicator Done is True.

This logic is not applicable to TestStand, and I do not understand why.

To make it more simple I made two sequencial For loops with explicetely defined start conditions by using the Statement. I have following problems:
1. TestStand automatically recognizes enum as Number (U16) instead of array of number or string (so I have to adjust it manually in Types tab)

2. My second For loop is not executing, not even once! It is basically the same as the first one, just checking the min voltage value by decrementing the same counter. Is this a problem? Should I use different local variables within one sequence?

 

Could you please give me some hint about how and where to use local variables? Should I use parameters instead? Thank you!

 

 

 

 

 


Sequence pass fail or terminated

$
0
0

Hi there.

 

In my teststand sequence cleanup (see attached) I have an "if" "else" statement that will log a "TEST_PASS" or "TEST_FAIL" whether the test has passed or failed.

What I am finding is that if the test is terminated it logs as "TEST_PASS", but I would actually like it to log as "Terminated".

What would be the best method for doing this?

 

TIA

Jim.

"Break" monitor

$
0
0

In LabVIEW we have the Termination Monitor VI's we can use to watch for the sequence being terminated.

 

I've been poking through the properties and methods to see if there's a similar way to monitor for a "Break" command in the sequence and so far can't seem to find one.

 

Does one exist or do I need to just create my own?

How to log parallel test result using Teststand log function to database

$
0
0

Hi

 

How can I log a test result from 4 duts tested in parallel  using Teststand log function to database

 

I am using Labview 2013, Teststand 2013 and Sequential model.

 

The test is done using a single digital board (pxie-6556). The 4 duts are connected to the digital board port and are tested in parallel.

Currently at the end of the test I have one report with all measurements, but I need 4 reports (1 report / dut)

 

 

Tks

TS 2014 Save as previous version not working

$
0
0

I have installed the latest version of TS 2014  and LV 2014 on my development system however all of my deployment stations run 2012. Despite using the save as function and selecting the 2012 version for my sequence files and saving my labview libraries for the previous versions as well if I create a deployment without TSRTE and LVRTE the error occurs that the sequence file was created in a newer version and cannot open the sequence file. Even when i bring the previous version saved sequence files over directly i cannot open them in TS 2012, i still get the same error -17098. Is there a setting in the deployment utility or a setting in the workspace or configuration that is necessary to run a deployment on a previous version of TS and LV. I understand my adapter settings may have something to do with it but anytime I select anyhting other than my labview 2014 development my code modules become worthless. any info is appreciated, as ive searched and searched in help and on forums and have found only tidbits that have gotten me thus far.  

TestStand running incredibly slowly when calling VIs in moderately-sized projects

$
0
0

I've recently finished developing the first iteration of a "Utility" library that allows LabVIEW projects to easily interact with a microcontroller-based application that our company has developed. I'm currently trying to create TestStand sequences that will perform tests of the microcontroller-based application via the Utility API. Specifically, I use the LabVIEW adapter to add calls to VIs included in a packed library version of this Utility library.

 

My problem is that TestStand's performance degrades to the point of being unusable for even the simplest sequences that rely on this library. Below is an example of a very simple sequence for instructing the microcontroller to turn on a relay, checking that it's turned on and then switching it off again. It took 5 minutes just to take a screenshot of the sequence because of the time it took for TestStand to load the sequence.

 

SimpleSequence.png

 

It seems that TestStand is running slowly because of the calls being made to the Utility library. This library consists of around 800 VIs, which is larger than other projects we've developed but not what I'd expect to be unreasonably large.

 

This library was developed in LabVIEW 2014 SP1 (32-bit). I'm creating and running these sequences using TestStand 2014 - Sequence Editor (32-bit). The computer I'm running this on has an i7 processor and 8 GB of RAM and does not generally experience performance problems. I have tested using the Utility library directly within a LabVIEW environment and do not notice any performance problems other than the fact that the development environment becomes slightly laggy when including a packed version of the Utility library in a new project.

 

I have read through Best Practices for Improving NI TestStand System Performance and taken the following steps:

  • Confirmed that the LabVIEW adapter is configured to use the 2014 Run-time Engine to execute VIs instead of the 2014 Development System (this should speed up execution if not the initial loading)
  • Created a central "code module repo" where I've included the Utility library. I include the path to this repo as the first item in the Search Directories listing.

This is my first TestStand project and I'm wondering if there's anything I could do to improve TestStand's performance to a manageable level.

Viewing all 6581 articles
Browse latest View live


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