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

Start UUT tset programmatically without UUT info dialog

$
0
0

Dear Ni Comunity,

 

how is it possible to start test UUTs without using UUT info dialog?

 

By customizing Parallel model.seq i know how to skip that dialog popup window, but i need to start test autommaitically.

To set some action like: Choosed button: StartUUTtest = true

 

Thank you for ideas,

Tibor


Programatically adding field in array element

$
0
0

Hello.

I'm trying to make a generic "engine" to generate test reports/certificates.

I've made a custom data type container Report Element, which I've used to make a local variable array of Report Elements called Report Element Array.

The data type contains some generic fields (element title string, element type string, etc.), and a container Element Data.

The idea is to increment the Report Element Array with Report Elements, and then fill the Element Data container with the fields from e.g. a Table Element container.

Either that,  or to just add a field in the Report Element with the data type Table Element.

 

But I can't find a way to add fields in a container programmatically.

 

Anybody knows if this is even possible?

labview graph in new thread from teststand

$
0
0

Hello,

 

I'm trying to build a LabVIEW graph/chart that will run in parallel (started from TestStand) to show the results of my measurements as I loop through conditions in TestStand. I figured out how to start the vi in a new thread but I'm stuck with how to get the data into the graph. Has anyone done this or something similar?

 

kph

database query with parameters (Teststand Database Step Type)

$
0
0

Hello,
I am trying to use TestStand (2012) database step types but with no success so far...
My query looks like this:

"SELECT ffPart.PartNumber FROM ffPackage INNER JOIN ffPart ON ffPackage.CurrPartID = ffPart.ID WHERE ffPackage.SerialNumber = '" + Locals.BoxSerial + "'"

I have put a check mark next to Statement requires Parameters

The next statement is "DataOperation/ Execute- Set parametres and execute" where I do the parameters mapping.

 

1.jpg
The third statement is "DataOperation/ Close - Close and get Output Parameters" where I am trying to read ffPart.PartNumber.

 

2.jpg


So far everything fine, but when I am trying to run the sequence I get an error that the output parameter is not set ???
Actually it is an output parameter and value field are greyed out by default.
Can anyone help me?
Thanks in advance,
Cristian

Opening Database in ProcessSetup throws error

$
0
0

Hi all, 

 

 

I am having a strange issue regarding a database connection. My goal is to open the DB connection in the  ProcessSetup callback and to close it in the ProcessCleanup callback. I am using the LV database toolkit.

 

When I open the DB in ProcessSetup, I write the DB reference to FileGlobals.DatabaseRef. My first attempt at writing to the DB is then in a subsequence of the MainTest callback. When any DB VIs try to execute I get the error shown in the attached file "Error Message.png". 

 

Interestly, if I open the DB in the MainTest callback, everything works correctly.

 

Any ideas as to what could be causing this? I have set all executions to share FileGlobals in SequenceFileProperties. I have also traced the database reference and its value is set in ProcessSetup and is the same in the MainTest callback. I have attached images of the variable in three break points:

 

  1. Process Setup - "Process Setup after opening DB.png"
  2. Begining of Main Test subsequence  - "Main Test Subsequence begining.png"
  3. Before DB write in Main Test subsequence before first DB write  -  "Main Test SubSequence before DB write.png"

 

Thanks!

 

 

 

TS Version: 2014 SP1

LV Version: 2014 SP1

Change color of socket frame in Parallel Mode

$
0
0

Hello, good day everyone!

 

I'm runnning my sequences in Parallel Mode.

 

When I am running a sequence, its socket frame color change to Blue.

 

Image2.png

 

When I complete a sequence, its socket frame color change for a moment to Green.

 

Image3.png

 

I would like to modify that color programmatically from my TestStand sequence. I do not know if that it is possible.

 

Example: If the sequence is waiting for something, the color should change to Orange .

 

---

 

 

When I wanted to modify the text that appears in the big textbox of the socket, I needed to add some code to my paralleluutdlg.c, the PostParallelUUTDialogStatusMessage function.

 

http://forums.ni.com/t5/NI-TestStand/Parallel-model/m-p/345847/highlight/true#M10401

 

I am thinking maybe I would need to add something like that again for changing the color but I have found nothing related.

 

Thanks in advance!

 

message Popup Numerics Only

$
0
0

Hello All,

 

I am currently struggling to Error Trap an input to a Message Pop-Up to ensure it is only a numeric.

 

I am expecting a number to be entered, and then stored to a File.Globals as a Numeric (not a string). If the Operator was to enter nothing or a word, the routine does not work, and I am unsure how I would error trap an empty entry or characters that are not numbers (Numeric).

 

Could anyone be so kind to shed some light on this matter on how I would achieve this?

 

Many thanks in advance!

 

 

 

 

Error during loadind 32-bit .net dll by 64-bit TestStand

$
0
0

Hi,

 

During sequence development when I wanted to call 32-bit  .net dll I came across an error.

 

The DLL is a 32-bit DLL and thus cannot be loaded by 64-bit TestStand.

Could not load file or assembly 'xxx' or one of its dependencies. An attempt was made to load a program with incorrect format.

 

What options I have to successfully cal this module?


Calling methods(functions) from Python scripts

$
0
0

Hello All,

 

I have just recently started to use the NI TestStand.

 

I have already written scripts in Python for my test automation system. I have read this tutorial: http://www.ni.com/tutorial/8847/en/ and I have watched the demo videos.

 

My question is: How can I call the methods inside of the Python scripts in NI TestStand? 

 

I could not have found any information from the tutorial given above. I understood that how can I call the Python scripts but I did not get how can I reach the methods inside of those Python scripts?

 

BR,

Sequence Fields to Display in Sequence

$
0
0

How do I add the "Requirements" field to be displayed in my teststand sequence editor window next to the others like Step No. Description, Post Action, Setings...?

string not found in the langage resource files

$
0
0

I execute my sequence and at the end of the test, I've got the following popup instead of the failed message (see StringNotFound.jpg)

 

I checked my TestStand 2013\Components\Language\English folder and it seems that I have all the files (EngineString.ini ...)

 

The PC I'm using has been installed with an installer I made. My installer installs TestStand editor, Labview runtime and module, and my sequences with their librairies. I had a problem with my sequence as a module path was wrong after I installed it. So, in my installer, I put the option "Include without processing Item or dependencies" only for his sequence. This resolved my problem with the path, but maybe it causes this problem of string not found ?

 

Does anybody have an idea ?

 

Regards

Laurent

 

I deployed a Teststand Sequence to a standalone PC, the test sequence works perfectly but the test report does not appear anywhere and also does not show as the test sequence execute - can some assist

$
0
0

Firstly, my development PC is on a network. I deployed a Teststand sequence to another PC that is on a network without the development environment and the test sequence worked perfectly. I then deployed the same sequence to a PC that is not on a network (standalone PC) and also do not have the development environment installed. The sequence runs perfectly with the exception that the Test reports is not displaying and is also not saved anywhere.

 

Has anyone encountered similar problems?

 

I have a suspicion its something to do with network/internet connection. Can someone assist? 

Preload occasionally hangs on modelsupport2.dll

$
0
0

Hi all,

 

When I run my sequence in the UI exe (LV) it occasionally hangs/freezes when preloading the modelsupport2.dll. Are there any settings to be aware of to prevent this?

 

 

PreloadHang.png

Can not interface to MS Access 2010

$
0
0

I am trying to connect to a MS Access 2010 Database via a connection string.  The example provided with NI Teststand called "database step types" does not even work and it gives me an error message

 

 Native error code -2146824582 0x800a0e7a
ADODB.Connection:
Provider cannot be found. It may not be properly installed.

 

 

I am running Win 7 64 bit mode.  I have seen there is something odd about the Win 7 64 bit running with Access 2010 but I need to know the workaround for teststand.  Anybody know the answer? 

report options callback

$
0
0

This issue has been discussed in various threads before. However i'm still not able to get it to work properly.

I have attached a simple sequence containing one step, and a report options callback.

I only get a report named ".xml". The dynamic name is missing.

Can anyone "fix" the settings in the report options callback, to add any dynamic name (e.g. $UUT).

thanks  


Feed step MNLT parameters to called LabVIEW VI

$
0
0

Hi.

 

I'm trying to find a way to feed the parameters of NLT and MNLT steps to a called LabVIEW VI, so I don't have to keep editing measurements, limits and units at two places all the time.

I've been searching for hours, but I can't find where this data is located *when the VI is called*.

Everything I need is available in the ResultList array, but the allocated array element is only populated after the step has executed.

 

Regards,

Øystein.

Proper abstraction layers of standardised test system

$
0
0

Hello, I am working on a Standardtised test system intended for functional testing of manufactured products.

 

Hardware part of the system consinsts of:

1. Test system unit, which power supplies, loads, scopes, function generators, etc. and a PXI chassis with some devices.

2. Everything is connected to a test fixture through a standard mass interconnect interface.

3. Test fixture contains all the custom hardware for the DUT.

 

The goal is to have multiple test system units that could be easily interchangeable and that could accept any test fixture. Any test ficture must be plug-and-play capable on any test system unit. Furthermore, any system component must be replaceable with an identical component without modification to SW and with different component (different vendor, different series, different interface etc.) with least modification to SW. This calls for a hardware abstraction layer. What is not clear to me, what is the recommended strategy and how should the software layers be distributed between TestStand and LabView.

 

Assuming the usual layers of Test Application -> Application Specific Layer -> Device-Specific Software Plug-In -> Drivers, what should go where and how it should be implemented?

Currently all the layers are implemented in TestStand with ASL and DSSP layers mostly interleaved. TestStand sequences directly access LV hardware drivers. Adding new hardware requires editing these two layers, but allows leaving Test Application intact, but it is clear that such approach will not scale well.

 

Plase advice.

 

Thanks in advance!

.bat for a Teststand sequence file

$
0
0

Hi All,

 

I want to make the running of the sequence a single click process. Currently to run the sequence once I will have to open the sequence and then click 'Run Main Sequence'. This I wanted it to be a single click process. On exploring I found a .bat file is capable of doing so. Can anyone please suggest me a way to obtain the bat file for running the main sequence. Thanks in advance.

 

Regards,

S.P.Prasaanth

Novice TestStand Question: Best strategy for storing IPs, COM port locations, etc

$
0
0

Hi all,

 

I'm very proficient in LabVIEW, but I'm now joining the TestStand community.

As per usual, I performed a search but didn't find the information I'm looking for. Please forgive a redundant question...

 

What's the best way to persistently store IP addresses, COM port locations, serial resources and the like? When I write my LabVIEW applications, I typically use .ini or XML files.

 

The way I see it, I've got a couple of choices:

  1. Use station globals
  2. Write my own file IO and store the values the way I always have

Stations globals are an obvious choice, but there are multiple station types here with varying instrumentation. My concern is in having to version and track my station globals when some features will be the same and others will differ. There will also be a lot of these values in my typical use case. (a couple of dozen, perhaps?)

 

What's the "acceptable" practice and what do experienced developers do in this scenario?

 

Thanks very much,

 

Jim

modelsupport2.dll documentation?

$
0
0

Is there any documentation available for the modelsupport2.dll library?  

 

Specifically, I've got some scattered function calls in the code I've inherited, there are no comments to indicate what those function calls do, and I don't want to "just try it and see what happens".  

Viewing all 6525 articles
Browse latest View live


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