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

Assessing Command 'Analyze Source Files' via Command Line when running TestSTand Deployment Utility

$
0
0

Our Software Configuration Manager is running the TestStand Command Line Deployment Build Tool (Ref: https://decibel.ni.com/content/docs/DOC-38947).

        When he builds the application,  the code will not be at the same location it was in development. 

 

If you are Manually running the TestStand Deployment Utility, This is not a problem because everything is relative in the workspace.   Simply go to the Distributed Files Tab (of TestSTand Deployment Utility) and hit the, "Analyze Source Files" button.  This finds the required files and apparently creates an updated hard path to be used during the build (probably in the *.tsd).

 

PROBLEM:  We auto-run the Command Line Deployment Build Tool (Command Line), and we do not have access to the, 'Analyze Source Files' command.

            As a result, our build consist of many warnings and the output is missing many files (the location of the files have not been updated).

 

If we could access the 'Analyze Source Files' Command via command line, that would fix the issue. 

 

FYI:  We use an automatic builder called Quick Build as our builder.


Teststand New Thread VS LabVIEW "Call & Forget" Asynchronous call

$
0
0

Hi everyone,

 

Here is an example taken from the ni.com website showing how to use LabVIEW to post a TestStand Notifier.  I have modified the example to fit the situation I needed to use it for.  I have an example which works fine (When I use a TestStand new thread to launch the Notifier VI) and an example which does not work (When I use a LabVIEW "Call & Forget" Asynchronous call to launch the Notifier VI).

 

I would like to understand why it doesn't work in the second situation. The reason why I would prefer the 2nd situation which currently doesn't work is that I try to eliminate all multi-threads from an obsolete sequence written by someone else a few years ago so that I can troublesoot it and update the code to make it work with today's new reality.

 

Also, for my personal knowledge.  I don't understand why the second strategy doesn't work.  The Testsand notifier reference is the same and hadled the same way.  I have included my example files with the 2 situations in seperate sequences files.

 

Thanks in advance to the person who will be able to enlight me.

Nien 

Action Sequence Step Using LabVIEW VI Does Not Stop At VI Breakpoint

$
0
0

Hi everyone, in my sequence file I have an action step which calls a LabVIEW VI.  In this VI, at the beginning of the code, I use the TestStand "Start Modal Dialog VI" and at the end of this VI I use the TestStand "End Modal Dialog VI."  In between is my execution code.  I put a breakpoint in my VI to do some debugging while running this VI within my TestStand sequence.  

 

My issue is when running this step in my sequence file the breakpoint never gets hit and the VI does not get popped up and halted at the breakpoint.

When I run the VI by itself (outside of the sequence and just in LabVIEW), I see the breakpoint hit and the code halts at the breakpoint.

 

What could be causing the breakpoint to never get hit when running it as an action step in a sequence?

 

Thanks so much!

 

 

TestStand 2014 DeploymentUtility Warning: Required Runtime not included

$
0
0

Upon completion of the Build, I get a Warning.  The Warning states, "The installer does not include the following LabVIEW Run-Time Engines required to execute VIs:  LabVIEW 14.0.1 (2014 SP1) (32-bit)"

 

As you can see, it appears the correct RunTime is checked (SEE LabVIEW 2014 Runtime Checked.PNG).

 

Is this a bug?  Any ideas as to why we get the Warning. 

             Note:  This Warning is causing problems in our automaic builder (Quick Build).

 

 

Requirements Gateway and Doors Types

$
0
0

No Requirements Gateway board but am working with TestStand also..

 

I am pulling requirements from DOORS and I need to filter out a column but I cannot find a way to check that a column is NOT empty. I already made a DOORS advanced type and I am trying to edit the requirement field to filter out a column called Interface Name. I want to only pull in the rows where Interface Name is populated. I am currently pulling in useless information where the column is empty. I tried leaving the value blank and negating it to mimic a 'not empty' concept and that did not work. Any suggestions?

Sequence pass/fail variable for csv report

$
0
0

I need to write a small CSV file with my sequence test results. The way I am considering doing this is to

 

  • save the information I need as the test progresses in local, file, or station global variables
  • make a report string using the values stored in these variables, and
  • write the string to a file via a LabVIEW VI.

Is this a reasonable way to do it? In which variable does the overall UUT pass/fail result get stored?

 

StephenB

difference between Single Pass Execution Entry Point and executing a sequence directly in teststand

$
0
0

hi, 

 

I am new to teststand , i would like to know, what is the difference between Single Pass Execution Entry Point and executing a sequence directly. To executing a sequence directly, there is an option execute> run main sequence. For Single Pass Execution Entry Point , there is an option at execute> single pass. Here they both start from main sequnce and both doesnt ask UUT information. Can anybody tell the diffrence between these two?

 

Thank you

RJ

 

Custom device / I am trying to use a vehicle controller model developed in LabVIEW with compactRIO (cRIO-9024)

$
0
0

Now I have developed a vehile controller model with LabVIEW so as to run on VxWorks operating system. ( compactRIO cRIO-9024)

And I converted a controller model of labview into *.lvmodel in order to use it as I did with simulink models. 

However, converted *.lvmodel was not supported for VxWorks operating system. so after searching for this, I found out that I have to use a custom device. 

I am now studying the custom device, but it looks diffcult because I dont have much experience in real-time system.

 

Here are my questions.

1. Simulation model in VeriStand

Should I convert a labview controller model into *.lvmodel even if I use the custom device in order to run on VxWorks operating system? 

If not, what should I do after building a controller model with labview?

 

2. Operating system

It is silly question. anyway, as long as I run a controller model on compactRIO cRIO-9024, the operating system always has to be set to VxWorks. Is it right?

 

3. Custom device

This is the most difficult thing. I dont know even what to do. What functions should be inside a custom device template tool? The controller model send output signals to a vehicle model, and receive input signals from a vehicle model.

 

Thank you in advance. 

Hognjun

 


cannot open Import/Export Properties Tool

$
0
0

Hello all,

 

I am working with NI TestStand 2014 and I am trying to use the "Import/Export Properties" tool from Tools -> Import/Export Properties... but when I click it, nothing happens, no window, no warning, nothing.

 

The option is obviously enabled in the menu but are there other conditions that I might be missing? Looking the internet for exemples, it just appears trivial that this tool should at least show up...

 

Any suggestion would be very welcome.

 

Thank you very much in advance!

 

Matt.

TestStand Deployment Engine Serial Number

$
0
0

Is there a way to get the Serial Number/License of a TestStand Deployment Engine that is installed on a PC?

The NI License Manager does not report the Serial Number of the Deployment Engine.

I have even tried to search the Window Registry.

 

We have over 100 TestStand Deployment Licenses in our installed software database. Split between BASE and DEBUG Deployment.

But I can’t find any way to tell/verify which license is on which machine. Just about all are on XP machine that are in need of replacement.

Just about all are TestStand 4.1

StepIn StepOut StepInto ActiveX Buttons

$
0
0

Hi,

Here there a way to have StepIn StepOut StepInto ActiveX Buttons in a LV OI just like the terminate button ?

Or trough the TS engine with some methods ?

Thanks

Sebastien

.Net XmlNodeList.Item() returns the wrong object type

$
0
0

I'm trying to iterate through nodes in an xml file using .Net System.Xml classes. I create an XmlDocument object, load a file, get the Child nodes (which go into a an XmlNodeList). From there, you should be able to call the .Item(int index) method of the XmlNodeList and get an XmlNode object back. But, the call instead returns an XmlDeclaration object. Has anyone else seen this? Is this a bug in the TestStand implementation of the System.Xml classes?

percent complete

$
0
0

I currently display % complete (down in the bottom right - status bar) of individual tests.  I would now like to add something that to display the overall status of the test.  For this, however, I'd like to display some text that just says something simple like "Running Test 3 of 10", "Running Test 4 of 10", etc.  I still need to display the % complete of the current test, so this new status would be additional.  Any recommendations on where to start with this?

Retrieve Teststand Users ActiveX API Java

$
0
0

I'm trying to retrieve a List of Users from Teststand API with Java. Therefore I'm using an activex bridge (Jacob library). In this library I need a PRODID or a CLSID to instance it. I couldn't find this information anywhere in the help pages, forum, etc. So I tried to find out with the Microsoft OLE/COM Viewer I found 2 possiblities:

 

TestStand.Engine.1

TestStandRemoteEngine.RemoteEngine.1

 

I have also found the CLSID for each of them. I can connect with the remote API but not with the TestStand.Engine which I suppose is the correct on for my requirement. Here is the code:

 

ActiveXComponent sC = new ActiveXComponent("TestStand.Engine.1");
String result = Dispatch.call(sC, "GetUser", user).toString();
System.out.println(result);
sC.safeRelease();

The function I need is Engine.GetUser. I have already programmed a LabView VI which does this job, but I want to integrate this in a webservice for a bigger project.

 

Does anyone know the correct PROGID? Why is it not working? Anyone done this before? Any suggestions?

 

 

Get list of subsequences into an array

$
0
0

I am trying to create a program where I can programmitically control which subsequences run by providing the user with a list to select from. I can't figure out how to get the list of subsequences though.

 

kph


What is the correct way to use Version Information from the sequence and from the deployment tool

$
0
0

I seem to be missing something in how the various version numbers are supposed to be used.    My end goal is to log and possibly display in the UI the version of the sequence and which installer version was used to inspect a UUT.   I have gotten most of the way there using:

 

 How Can I Programmatically Query the Sequence File Version of My TestStand Sequence? 

and logging this into the report with a function which contains:

 

 

Parameters.UUT.AdditionalData.SetValString("Test Version",1,RunState.SequenceFile.Data.Version),
Parameters.UUT.AdditionalData.SetFlags("",0,PropFlags_IncludeInReport)

 

The "Deployment Version" in the TestStand Deployment Utility auto incrementing the 3rd position of a version number  while the sequence auto increment is working on the 4th.   

 

My first question is are these 2 version numbers in anyway supposed to be related to each other?   As it seems to me you would want those 2 reversed, I can make several installers based on sequence version X, making changes to what supporting files are also installed.

 

If they are not related as I suspect that they are not.  How do I programatically grabed the installer version and also log that into the result report?   

is there an option to perform a custom deployment build step to log the deployment version before it builds and then reference that log at runtime of the test?

Sequence context becomes invalid when execution time is longer

$
0
0

I have a sequence that loops for around 70k iterations (which is pretty huge). The sequence calls a sub-sequence where the called sequence's locals are modified. Issue is, around 65k th iteration, I am getting an error stating that Local's reference passed is invalid. The iteration count when error occurs  varies from PC to PC but always in the 65k range. When I try to run another sequence(simple one) consecutively, I get an "out-of memory" error. I guess the reason why Local's reference getting invalid is because the TS execution stops when TS memory gets full making Sequence Context and thus Local's reference invalid.

I would like to know how to reduce the TS memory consumption since I have disabled the result recording for all sequences(Configure->Station Options->Execution), disabled result recording for each iteration in the loop, Optimize non-reentrant Calls to thi sequence is also enabled. I even tested with just this sequence running and I am wondering if there is a maximum count for execution threads when looping.

 

PC Configuration

RAM-12 GB

LabVIEW and Teststand 2010 SP1

 

I will not be able to post the code but the looping is a custom step that has Sequence Call as its adapter.

 

Running a program in background of my sequence

$
0
0

As a first step to run a program in background of my Teststand sequence, I am trying to accomplish the very well detailed procedure that follows to run a VI asynchronously (my future intention is to call my program from a VI that runs in parallel during the Teststand sequence).

 

https://decibel.ni.com/content/docs/DOC-21743

 

I think I followed every single step, however my implementation has a signifcative failure : the "asynchronous VI" does not want to close eventhough the concerned boolean parameter is set to "true" and should be read by this VI ...

 

I assume I am missing something obvious ... But the fact is that I really miss it ! Can anyone show me my mistake please ?

 

Thank you in advance !

 

Attached, you can find my sequence and VI.

 

Specify Report File Path by Expression

$
0
0

TS201x Help under "Specifying Report File Paths by Expression" talks about  using a number of various macros, but starts the page showing how to also use FileGlobals. When specifying the expression (... >>Specify Report File Path by Expression>>Expression Browser), I'd like to combine macros with FileGlobals, but none of the FileGlobals are listed i.e. available. The expression builder has access to the StationGlobals though, but not to the FileGlobals.

Is there a workaround, or at least an explanation, for this behaviour?

 

Cheers

 

What is the NI Switch Executive Advantage? Any Downside to Use this Product?

$
0
0

Hi,

 

We are looking at using the NI Switch Exec software to integrate with our switch matrix. This NI layer seems to work well with TestStand and offers many seeming advantages. For our project, this includes not having to write several subsequences to: connect a DMM, read a DMM, and dis-connect DMM for a hundred signals. This could all be done on a single step in the main sequence, is that correct? How to do that way? We would like to know some of the disadvantages of this approach before we get too far down the road.

 

Thanks in advance!

Al

Viewing all 6542 articles
Browse latest View live


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