Quantcast
Channel: All NI TestStand posts
Viewing all 24401 articles
Browse latest View live

Property Loader in sub-sequence doesn't change MainSequence

$
0
0

We have several Numeric Limit tests in our MainSequence and we want to change the test-limits with the Property Loader.

 

If the Property Loader step is in the MainSequence (either in Setup or in Main), then the limits get changed.

If the Property Loader step is in a sub-sequence of the MainSequence, then the limits doesn't get changed.

The limits of Numeric Limit tests in other sub-sequences always get changed.

 

Attached are two examples (Teststand 4.2):

"PropertyLoader does work.zip" - the Property Loader step is in the MainSequence.

"PropertyLoader doesn't work.zip" - the Property Loader step is in a sub-sequence of the MainSequence.

 

Is this a bug, or is this expected behaviour?

Or is there a setting that would make "PropertyLoader doesn't work.zip" work correctly?


Re: build array by concatenating 2 arrays

$
0
0

Glad to be of assistance to you. :smileyhappy:

Command Line Call From TestExec With TestStand 2014

$
0
0

We are upgrading our Testsuites to TestStand 2014.

When I want to Run a Sequence File with TestExec from an external Batch using the Entry Point "Test UUTs" I get the Error (see attached file)

 

Entry point 'Test UUTs' does not exist.

Value invalid or out of Range. Error Code -17300


The contents of the external Batch is:

 

Echo on
"C:\Projects\TestStand\UserInterfaces\Full-Featured\CVI\win32\TestExec.exe" /runEntryPoint "Test UUTs" "C:\Projects\FrameworkFkt\TestProg\B1_SequenceFiles\E4_FRAMEWORK_SHORT.seq"
pause
Ech off

 

With TestStand 2013 this worked well. Does anybody know a solution for this problem. And the Entry Point "Test UUTs" exists.

 

Further I would like To unload all Sequences wenn I close the TestExec. Is there an easy way to do this, without changing the TestExec-Source-Code?

Thank you for the help.

 

Best Regards Paul

Re: how to transfer a VISA resource name between Teststand and labview

$
0
0

I apologize for resurecting an old post but ran into  "VISA: (Hex 0xBFFF000E) The given session or object reference is invalid" error with LabVIEW + TestStand.

 

I used breakpoints at various steps and launched the LabVIEW VIs in debug mode. I noticed the "Value" of the VISA resource name FileGlobal in the Variables pane was not retained after execution was completed.
This proves anything stored in the FileGlobals at runtime is lost. To summarize, I am unable to pass VISA resource name from one sequence to another as a FileGlobal in TestStand with my implementation. 

 

While searching through the forums, I came across three possible solutions. I was able to solve using the workaround suggested by Ray Farmer. i.e. use StationGlobal in TestStand for the VISA resource name. Hopefully, this helps someone.

 

Thanks,

Mohit Kapur

Re: how to transfer a VISA resource name between Teststand and labview

$
0
0

In my opinion, TestStand shouldn't even be holding the VISA Resource.  It is used in LabVIEW, so LabVIEW should hold it.  Therefore, I use Action Engines to hold my references and act on them when appropriate.

Re: how to transfer a VISA resource name between Teststand and labview

$
0
0

The only caveat to the crossrulz is doing it is if something dynamically unloads all modules in the middle somewhere.  Then the Action Engine will no longer have the session and the next call will have to create one.  However, I do like the action engine idea.

 

Personally I hate the idea of using StationGlobals.   It requires the variable to exist.  So now you have to deploy or have some tool set up that variable on a first run.  Plus it is more prone to race conditions and coupling.  Seriously, I can do this all day... :smileyhappy:  Globals are a bad idea.

 

We use parameters.  The same way it's used in LabVIEW.  Passing the active handle around.

 

Cheers,

Re: Assigning a result to two variables

$
0
0

This isn't possible.  I don't know of any language that allows you to assign one parameter to 2 variables.  Interesting concept though.

 

I would just use the local variable and then in the post expression assign that to the report text as you mentioned.  Why are you against that?  Just curious.

 

Regards,

Re: Assigning a result to two variables

$
0
0

You can do something like locals.a = locals.b = "blah" in an expression.  That will assign the value to both variables.  But coming straight from a code module, things don't work that way.  Equations just don't work on module outputs.  I'm with just leaving it in the post expression.


17306 Error accessing item 'Locals'.

$
0
0

I have a sequence called "ProgramAssetData" in the same file as it is being called in.  The first time I call ProgramAssetData, it works fine.  The second time I call ProgramAssetData as part of a loop, I get the error below. The "Run-Time Error" window pops up and I select "Retry" and that always works.

I do not beleive it to be a timing error because stepping through the code does not help.

How can a property name 'Locals' be unknown?   ... and always work in Retry?

What does "Retry" do that is different from normal running?

 

How do I get rid of this error? 

 

FYI- A CVI call in in the previous step.

----------------------------------------------------------------------

Details:

Error calling sequence ProgramAssetData.
Unknown variable or property name 'Locals'.
Error accessing item 'Locals'.

 

Error Code:

-17306; Unknown variable or property name.

 

Handle Current Error

    Retry

                                              OK

---------------------------------------------------------------------

 

17306 = TS_Err_UnknownVariableOrProperty

How to log strings stored in Station Globals and/or PreUUT values?

$
0
0

Hi all,

 

I have a Station Global that is persistent across all UUTs in a particular PC. I have also created a custom PreUUT dialog to obtain user input that applies to the upcoming UUT (I pass this user input to the UUT by storing it in a File Global). Both the Station Global and the File Global store a string.

 

What is a good way to log these strings into the ATML report and SQL database?

 

Currently, the best solution I can think of is:

  1. Create a LabVIEW VI that takes a string input and passes it straight through to the output
  2. Pass the Station Global (or the File Global) into the VI input
  3. Assign the VI output to Step.Result.ReportText

This seems rather cumbersome though. Is there a simpler way to achieve this? (i.e. is there a built-in TestStand action that logs a variable directly into the report?)

 

In case it's important, I'm using TestStand 2013 SP1 and I'm using the default report templates: tr5_horizontal.xsl for ATML, and C:\Program Files\National Instruments\TestStand 2013\Components\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql for SQL.

 

 

Thanks!

Re: TestStand 2013 ships with invalid SQL scripts

$
0
0

Hi,

 

The issue still persists. TestStand 2014 still ships with invalid SQL scripts.

Reading Edit step details from a Pre-step

$
0
0

Hi

 

I'm trying to programatically read the VI module output names and associated step variables for a custom Edit Step, from within a Pre-step VI. Opening up a TestStand sequence (an old 3.1 version) in a text editor, I've found data blocks headed:

 

 [SF.Seq[x].Main[y].TS.SData.ViCall.Parms[z]] 

 

which include a 'Label' and 'ArgVal' and the values given are what I'm after. From Labview the closest I can get to this, from passing a sequence context, is Step.TS.SData.ViCall.Parms which I'm not sure is correct as I can't seem to expand it any further.

 

Very much appreciate any advice.

Thanks
Bruce

Re: Assigning a result to two variables

$
0
0

Jigg,

I want to use the content of the Step.Result.ReportText in a post step callback, but as soon as I step into the callback the step properties for the calling step go out of scope and are not accessible. The file global gets around that, so if I could have assigned the desired text to both spots in one fell scoop it would have saved me a little time. Looks like a post expression is the way to go.

Re: Assigning a result to two variables

$
0
0

rimfire44 wrote:

Jigg,

I want to use the content of the Step.Result.ReportText in a post step callback, but as soon as I step into the callback the step properties for the calling step go out of scope and are not accessible. The file global gets around that, so if I could have assigned the desired text to both spots in one fell scoop it would have saved me a little time. Looks like a post expression is the way to go.


You could try PreviousStep.Result.ReportText

Re: How to log strings stored in Station Globals and/or PreUUT values?

$
0
0

JKSH,

 

You can handle this with the Additional Results functionality in TestStand, which can be configured in the settings for an existing step, or as a standalone step type. We have an example of this in the TestStand Fundamental Example series here: http://www.ni.com/product-documentation/52354/en/#toc3  (Look for section 3, "Adding Custom Data to a Report"

 

I hope it helps, and let us know if we can do anything else to help!


Re: Command Line Call From TestExec With TestStand 2014

executing locked sequence file

$
0
0

Having some trouble getting a locked (password protected, not viewable) sequence file to execute (TS2012):

Saved sequence file as password protected / locked / not viewable.

it appears properly as not viewable in the sequence editor and any UIs.

I can start an execution through my custom process model, but partway through the execution the process model references "

RunState.ProcessModelClient.Data.FileGlobalDefaults.***", and I get an error specifying that

"The lookup string RunState.ProcessModelClient.Data.FileGlobalDefaults.*** references a protected object that is locked."

http://zone.ni.com/reference/en-XX/help/370052M-01/tsref/infotopics/db_seq_file_prop_adv_tab/ suggests that the API is not supposed to be limited to access during execution.

 

Any recomendations as to how to allow the process model access to Client Sequence File information during execution when the client sequence file is locked as not viewable?

 

 

 

 

Using Open Test Architecture (OTA) Library Methods In TestStand

$
0
0

Hello,

 

I am trying to find information on how to use the OTA library that HP provides to control their HP Application Life-cycle Management (ALM), formerly HP Quality Center, test tracking software. I want to use ActiveX actions in TestStand that will create test runs, load in generic information about the test (pass/fail, tester name, timestamp, etc.), and attach the log file to the test run.

 

I have only gotten so far as logging into my desired HP ALM project, sent an email from HP ALM to myself (subject, and message, nothing really valuable), and logging out of said project. When I try and create an object for getting information from certain fields in HP ALM as a "proof of concept," I run into the issue where I cant create the object type I need in order to use the methods I want. I think I should be making an ITestFactory object in order to get the data from the fields, but the option to "Create Object" is greyed out in TestStand when I select that object class.

 

Could someone with experience please help me out?

 

Thanks,

Mitch M.

Re: 17306 Error accessing item 'Locals'.

$
0
0

Hi EP_MN,

 

Does the location indicate a specific step that the error occurs in? Is it in the sub sequence or main sequence?

 

Is the first time the sub sequence is called inside a loop or is it called once before the loop? Does this error continue to occur every subsequent time the sequence is called?

 

The Retry option causes the step to run again, though this could be the Sequence Call step or a step within the sub sequence. You could add error handling to that step to automatically retry it in the event of an error.

Re: Checkbox to enable/disable report generation in Teststand

Viewing all 24401 articles
Browse latest View live


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