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

Ni Teststand for use in a full automated line with a production tester

$
0
0

Does anyone have experience using testand to run a full automated test cell with continous testing. I have a project in which this company bassically built an in circuit tester witha a conveyor and motor drivin clam shell. I have used teststand in the past, but was wondering about ideas on this one. I really dont want to build a custom GUI and sequencer with LabView, I would rather do this with test stand. Any feedback would be appreciated.

 


Write default value Programatically, in a numeric elemet belonging to an array of container

$
0
0

hallo,

I have an Array of container Cmix. Cmix has many elements one of then is numeric element  "n"

I need to initialise only this element "n" with a default value. I want t avoid using  for ..loop.

can the same be acheived with some Array funtion or property object..  like setelements()...

TestStand User Interface using C#

$
0
0

I am trying to modify the C# simple user interface which came with TestStand 2014.  I want to run a sub-sequence and retrieve the results from the parameters.  I can load parameters into the sequence prior to running it and I can run it, but I cannot figure out how to retrieve the parameter data after the sequence is run.

 

Here is my code:

this.axSequenceFileViewMgr.Sequence = this.axSequenceFileViewMgr.SequenceFile.GetSequenceByName("zzTestSeq");

this.axSequenceFileViewMgr.Sequence.AsPropertyObject().SetValNumber("Parameters.SetPoint", 0, 149.0);

Execution ex = this.axSequenceFileViewMgr.Run();

val = this.axSequenceFileViewMgr.Sequence.Parameters.GetValNumber("SetPoint", 0);

The TestStand sub-sequence zzTestSeq takes the SetPoint value and calculates a new value 321 which it returns in the same SetPoint variable.

The last line above, after the run command, only returns the original SetPoint value, 149, not the modified one.

How do I access the parameters, in this case the SetPoint AFTER the sequence runs with the updated values?


Thanks,

Robert

 

add element to empty array of container

$
0
0

Hi, 

I tried  follow this post to add element to empty array of container but cannot.

What i did is create a local container, which contain a string and a number.

In each loop, first fill up the container, then add the container to array of container.

but teststand says ' Variable or property types do not match or are not compatible.'

How to realize it?

thanks.

Nemo

 

 

-2146828212; User-defined error code problem

$
0
0

I am having this error message while calling an activex method using Microsoft Scripting Runtime 1.0 server. I use the method of Create Text file.

Actually if i enter filepath directly there's no problem but if i try to load to a variable from property loader it gives this error.

The interesting thing is it works on a similar system on a PC with similar configuration.

I am using TS 2016 on 64 bit Windows 7 Pro licenced PC 

Does anyone hosting a mysql database on AWS to log from teststand?

$
0
0

I have been trying but out of the box sql buildier is not working with the query to create the schema.

i am no expert on databases or sql queries, if anyone made it to work. could you share your schema?

Force Pass/Force Fail

$
0
0

I am using test stand 4.1 and when running in interactive mode I am setting the high level sequence call to either force pass or force fail when the test is running after a breakpoint is set. However i don't want to treat this as a regular fail or pass. Is there a variable I can use that states this. I have been looking at the folowing variable ... TS.mode but that just shows up as either a pass or fail if the run mode was changed to force pass or force fail and not normal before the test executes.  Any help would be appreciated.

 

Thanks

Mark 

TestStand gets hung up after running a test that contains a new thread

$
0
0

TestStand is getting hung up at the end of my test.  I'm trying to kick off a new test thread.  All that thread does is call the TestFunction() in my c++ dll.  I have another function that is called in my main test that is using a function in the same dll called StopTestFunction().  When StopTestFunction is run it sets a global variable to false which should cause the thread to finish since TestFunction() will finish.  Once TestStand gets through the test it simply gets hung up at the end and I have to kill the application with task manager.  Am I doing something wrong when I create the test thread?  I attached an image of the sequence and some code with the functions mentioned above.


How to read runtime value of TS variable in LabVIEW?

$
0
0

Hi,

I ahve already posted a query related to TS and LV data sharing but this is very specific question and hence posting here.

I have an application wherein I want to read the runtime value of the TS variable in my LabVIEW interface.

I am able to read the default value of variable but not the run time value.

I guess for reading the run time value , i need a active "This Context" reference of TS sequence in LabVIEW.

How can i  access this reference in LabVIEW?

 

Running two step sequences at the same time (Teststand 2010)

$
0
0

Hi all,

 

I wanted to thank you all for helping with Teststand 2010. I have another problem or something I wanted to do and I never tried it before. I am currently using Teststand 2010 and I wanted to run two sequences at the same time.

1. I want to do a measurement (voltage) using a DMM

2. I want also send a command via serial communicating with UUT.

3. I do not know where to begin or how start. I was told to use sync

Bottom line is I want to measure the voltage and also send a serial command to the UUT

Thanks in advanced any help would be greatly appreciated.

 

Thanks,

WJ

Changing many VI paths?

$
0
0

Hi All,

 

I am new to TestStand, and hoping there is an easy answer to this one. We have about 100 LabVIEW modules called from our various TestStand sequences and want to upgrade from LabVIEW 8.2.1 to a newer version (say LV 2011). Our LabVIEW modules are each stored separated by LV version in a separate folder with the top level VI having the same name as the folder. For example, module 1 might be stored in the following location prefixed by its "part number", which is a number we give it for internal tracking. 

 

LV 8.2.1

C:/ LabVIEW Code/LabVIEW 8.2.1/1234567-001 Module 1/1234567-001 Module1.vi

 

LV 2011

C:/ LabVIEW Code/LabVIEW 2011/2345678-001 Module 1/2345678-001 Module1.vi

 

TestStand just uses the 2 relative paths: "/1234567-001 Module 1/1234567-001 Module1.vi" and "/2345678-001 Module 1/2345678-001 Module1.vi"

Note that the part number prefix is different for different versions of LabVIEW.

 

So my question is, how do I update all of these relative paths quickly, without going to each place a VI is called?

 

Programmatically Renaming a Sequence in a Sequence File

$
0
0

I would like to have a master TestStand sequence that is able to select and insert  a "sub-sequence" into it'sself.  

For example, in the Setup section, the UUT is scanned and a part specific sequence then gets inserted into the Main section for execution. 

I tried calling the sequence directly but there's no way to pass the test results of the sub-sequence steps back to the master caller.  

when test stand call a VI

$
0
0

Hi,

I have test stand sequence calling some VIs. they all work fine.

My problem is when i update VI. then seams test stand still call the old VI.

I promiss i pressed the button 'reload VI prototype' and i also tried close Labview and close teststand then re open test stand.

meanwhile if run VI in labview debug mode, eveything works fine.

 

Any way force make sure test stand call the latest VI?

Thank you!

TestStand UI SequenceView Control - Description and tips

$
0
0

Hello,

 

I create a custom TS UI in LabVIEW. I want to enable users to edit sequences, so I placed a SequenceViewControl AcriveX control on the front panel.

 

I also register a CreateContextMenu callback to create Right-Click popup menu to edit the sequences. The problem is, most of the time when I right click on the SequenceView control, I get "Description and tips" instead of the context menu. Sometimes I get the context menu.

 

How to disable showing Description and tips?

 

Madottati

"Hide" some step from display on execution view in teststand 2016

$
0
0

Hi, does anyone know is there any way to hide some step in execution view (teststand 2016)? Because I didnt want it to show to operator as they do not need to know the process and it is confussing for them. I try to read through some old post which few years back on forum, found most of them saying it is impossible to do that unless by writing custom VI or put those into subsequence and disable trace to subsequence.


Simpler way to POST data to a site using System.Net.Http.dll in TestSTand or using another component.

$
0
0

I want to post data to a HTTP site using TestStand. I have managed to do that by using the System.Net.Http.dll. However it seem to be a bit to complicated. The problem is that correct media type (in this case "application/x-www-form-urlencoded") of the message content must be set using an Object Reference. It is possible to do that in a rather complicated way by creating a Request Message and use the Request Message header to set the media type. After that adding the content to the Request Message and finally Post the Request Message.

 

Is there an easier way to do thet using the System.Net.Http.dll or is there another component that makes it simpler ?

Ofcourse there is other ways to do this by for example use a script langauage but it would be rather nice if there is some component for this that is easy to integrate with TestStand.

XML file to object deserialization

$
0
0

How can I implement similar deserialize functionality from XML to object as seen below on a .NET code snippet?

What I understand is that it is using the .NET System.XML.Serialization(4.0.0.0) GAC. If I select this GAC on a step using .NET adapter in TestStand2016 I can't see any classes. Is this correct way to do this?

Computer has .NET framework 4.6.1 SDK installed.

private Macro.Macro[] ReadMacroFile(string macroFileName)

{

FileStream fs = null;

try

{

var ser = newXmlSerializer(typeof(Macro.Macro[]));

fs = newFileStream((newFileInfo(macroFileName)).FullName, FileMode.Open);

var macroList = (Macro.Macro[])ser.Deserialize(fs);

return macroList;

}

finally

{

if (fs != null) fs.Close();

}

}

 

Best Regards

Petri

How do I resuse message popups?

$
0
0

Hi All,

 

I am just learning TestStand without a lot of guidance available to me from my colleagues at work, so please be patient with my begginer's questions.  I ran through all the tutorials in the "Getting Started" manual, but I have a lot left to learn.

 

My current question regards message popups.  The sequence I am working on uses the same message popup repeatedly.  What is the best way for me to save this message popup so I can use the same one in multiple locations?

 

Thanks very much.

Access Softbin and Harbin Name in Teststand Sequence

$
0
0

Hi, I would like to access the SoftBin Name so that I can datalog it or print
it out to a file.  How can I access the SoftBin or Hardbin name in Teststand?

Questions in creating TestStand Deployment

$
0
0

Hi Teststand and labview gurus, Im just new with the teststand and Im using teststand 2014. I'm trying to learn the deployment tools . Newbie question: Do I need to convert the labview VI to runtime to be able to work?  

Viewing all 6527 articles
Browse latest View live


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