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

Re: Why can't I change the User's Password?

$
0
0

Ugh... ignore that last post. Figured it out. Thanks.


How to identify source of ApplicationMgr.ReportError event?

$
0
0

How can I identify the location that an error occurred when the ApplicationMgr.ReportError event is raised?

 

I have a C# operator interface based on the "Creating a Basic User Interface" example.  Sometimes my ApplicationMgr.ReportError event handler gets called, and I display a MessageBox with the error details as follows (where "this" is my MainForm):

            MessageBox.Show(
                this,
                ErrorMessage.AppendCodeAndDescription(axApplicationMgr, e.errorMessage, e.errorCode),
                "Error",
                MessageBoxButtons.OK,
                MessageBoxIcon.Stop);

The particular case I'm seeing is:

Unknown variable or property name 'Step'.

Error accessing item 'Step'.

Unknown variable or property name. [Error Code: -17306]

 

There are a lot of places in my sequence file where I reference a 'Step' property, so I'd like to narrow down the location of the problem.  The error only occurs on occasion and is difficult for me to reproduce.  If I try to force a similar error by referencing a non-existent property, then I get the standard runtime error dialog instead of my C# event handler.  How do I troubleshoot this?  Is there any way I can get access to the source of the problem from the ReportError event?

Re: TestStand 2019 is Now Available!

$
0
0

I have uninstalled TestStand  2019, deleted the folders that were left. Rebooted my PC for good measure.

Reinstalled TestStand 2019 but when I tried to launch it nothing happened.

Run up the Version Selector and found that only 2017 was available. Ni Licence Manager said I have 2017 and 2019 installed and 28 days of my evaluation was left.

I have unstalled the 2017 version but when this was run it also uninstalled the 2019 version, not seen that before.

I have re-installed 2019 version again. TestStand 2019 still doesn't run.

Launching the Version Selector again I have I have no version of teststand I can launch.

 

image.png

 

What the hell is going on.

 

回复: How to plus two additional serial number box in original PUUTPANEL in parallel mode of 2010 teststand?

$
0
0

Hi Shunfu,

Do you see this panel when you run in parallel mode? The picture below shows the default serial number input panel when you run Test UUT.

TestStand parallel.JPG

 

 

Re: Error "-17500" Using Python and TestStand

$
0
0

Hello,
Do you have Python Step Types for TestStand installed? If not, follow this link. Also, please make sure that all of the software that you are using is at the same bitness (32, 64),

Re: Error "-17500" Using Python and TestStand

$
0
0

I'm using Teststand 2019, which according to what I can determine already has these Step Types pre-installed. The installer you link only appears to search for TestStand 2014-2017 installations.

 

As stated above, I'm using both Python and Teststand in 64 bit on a 64 bit operating system. The whole setup works fine on a barebones Python install, it's merely the combination with our company's Anaconda3 environment that throws the error. The TestStand Python Adapter recognizes the environment as a valid Python 3.7 version, the problems only occur when I actually try to run a script.

 

EDIT: Is there any way to enable more detailed error logging in TestStand, so we can try to debug what part of our Python environment the code module loader is having trouble with?

Re: Error "-17500" Using Python and TestStand

$
0
0

In similar cases from our customers they're also encountering problems with Anaconda, but everything works fine with the barebones Python. So my recommndation would be using just Python.

Re: Error "-17500" Using Python and TestStand

$
0
0

Are any fixes for this Anaconda issue planned? The Anaconda environment is an integral part of our production line, as it integrates a lot of packages we require. If TestStand can't deal with that our solution will simply be not to purchase TestStand, rather than try to maintain a separate Python environment for it.


When updating a custom step type, user inserted values for this step type are overwritten.

$
0
0

I have a .dll with different functions inside. Each function with its own set of parameters.

 

I create a custom step type for each function. When using the custom step types the user specifies in the pre expression the values of the parameters to be passed to the module.

 

The problem is tha when I update the custom step type (adding a new parameter for example), and I select "Update all steps in sequences", all the pre expressions will change to the new values from the step type, overwriting the values entered by the user.

 

How can I prevent this?

I would like to be able to modify the custom step type, but to retain the values the user entered, (and the user will review the steps manually)

Any other solution (not using pre expressions) would also be acceptable.

 

Below some pictures of my tool chain.

I create a custom step type with the module taking the value from an intermediate IFC container (Created in the Custom Step).

specify_module.pngCustom_step_type_parameters_container.png

 

User inserts the step type in his sequence and modifies in the pre expression the value to be passed to the module.

pre_expression.png

 

 

Re: Cluster of Boolean Controls not updating in TestStand

$
0
0

Hello Salah_I,

 

Please find the answers to your questions.

 

1. The VI is called in TS and the API has not influence. I already observed the reactions from the clusters before I added the TS API. The API is used to stop the while loop at the end of my sequence run

2. No, that is why there are no changes.

3. See answer 1

4. Yes the Values are present in the wires.

Regards

Re: Error "-17500" Using Python and TestStand

Generating a very, very customized XML report

$
0
0

Hi there,

 

It might sound like this is an easy one from the title - maybe it is but I suspect not.

 

We've been experimenting with NI's offline results, and some time ago I'd gotten all of our customizations (additional columns in our tables, etc) working. To be perfectly frank, the stock offline results and ORPU leave much to be desired from our perspective.

 

Collaborating with my database wizard colleague, we're trying to keep things really simple. I'd like to generate a very direct XML dump of our results so that we can have SQL Server parse the XML and insert it. (Sample attached) He already has some code put together to do that.

 

Our schema is customized, but it's based off the stock TestStand schema with some extra columns. We use many of the common types for PROP_RESULT but nothing too exotic. (No waveform types)

 

I'm already familiar with the plugin architecture - I've written all our many model customizations into a plugin and customized two others. It seems to me that parsing ResultList objects into UUT_RESULT and STEP_RESULT records is for the most part pretty straightforward. Where I get hung up is how exactly to handle all the variations in additional results, step looping, PROP_RESULT records, etc. I've stared at some of NI's code for plugins and they've unsurprisingly put a lot of this functionality into libraries that may or may not be publicly documented? I thought maybe I could "borrow" some of their ResultList traversal code but it looks pretty challenging.

 

I thought about customizing an XML stylesheet and using the stock report generator, but I'm a little overwhelmed by the stylesheets that TestStand ships with. I'm a novice with XML stylesheets, and while I'm dangerous in JavaScript, wow that is a lot to take in.

 

Any ideas or experience relating to how to get this end result?

 

Thank you very much in advance,

 

Mr. Jim

 

 

Re: Generating a very, very customized XML report

$
0
0

Hi Mr_Jim,

 

The Stylesheets are large and can be quite daunting. We have a overview and splash page here, that can act as a starting place. 

This also points to how to add a column and row to an XML report, that provides a step by step guide how to add a column for StepID. You can use this and change the XPath value in the stylesheet from 

<xsl:value-of select=”./Prop[@Name="TS"]/Prop[@Name='StepId']/Value”/> to whatever XPath data value you want. 

 

To provide a little more insight on the hierarchy here is some info:

 

XML:

The Report XML that NI’s Report Generator creates for XML reports contains all the reported data for each step organized by step ID. All steps are recorded in separate nodes within the Prop nodes named TEResult> TS> SequenceCall > ResultList. Each step is reported in order in the form <Value ID=’[N]’>

Different pieces of data for the step are recorded in various nodes within the step. For example, the name of the step is within the Prop Node named StepName that exists in the relative path Value ID=’[N]’ > TEResult > TS > StepName

 

Stylesheet:

The Stylesheets that are used to modify and format the XML reports are organized by sections adding different pieces of info to the report. Within these sections there are templates used to select a node from the XML document to operate on. There will be a template match for your XML nodes such as <xsl:template match=”Value[@ID]/Prop[@Type=’TEResult’]”’>, which will apply to all the steps results. Within this template for step results, different properties are checked to determine what type of step it is and add the appropriate objects to the report.

 

Hope this helps a little!

Re: Error "-17500" Using Python and TestStand

$
0
0

Wanted to add more info to may last post and ask a few more questions:

 

1. How did you make your environment if you're reffering to environments in the pythonic sense? TestStand only supports virtual environments that were created using the virtualenv tool. 

2. Does the bitness of TestStand match with that of your Anaconda interperter?

 

Thanks,

Roxana

Custom IVI step types

$
0
0

So, I have a several RFSigGen devices, all with IVI-C drivers, and need to do use with them in TestStand 2017. I have it working with DLL calls, but I found this post from waaayyyy back and for the sake of my own education, I kind of want to go down the rabbit hole and explore making custom IVI step types (knowing full well that I'll probably chicken out before I make useful progress). It references the source for the IVI step types being in the following directory: \Components\NI\StepTypes\IVISteps

 

The closest I can find is  \TestStand 2017\Components\StepTypes\IVISteps which doesn't contain any source. I'm guessing I'm either a) looking in the wrong place, b) missed an option when installing, or c) the code no longer ships. Any chance someone could point me in the right direction?


Re: Calibrations

$
0
0

The TB-4330 is a terminal block and does not get calibrated.  I assume you're also using the PXIe-4330, which does have a calibration interval of 1 year.  

Re: Generating a very, very customized XML report

$
0
0

Thanks for the information, Dane. I will look through these in more detail.

 

Hopefully the following isn't a dumb question:

So, in your opinion, is it doable / practical to make the kinds of changes we're thinking of using a stylesheet? My intuition is that I'll pretty much have to throw everything in the shipped stylesheet out and start from scratch, because per the XML example I attached, what we're looking for is very different from the stylesheets that ship with TestStand. Is this something I should attempt?

 

Thanks again,

 

Mr. Jim

Re: Custom IVI step types

$
0
0

Hey Chris,

 

Those step types are now obsoleted as of 2019. The source for that is written VB6 and we stopped shipping the source at some point in 2012 or 2013. I suggest taking a look at Best Practices for Custom Steps Types.

 

However, if you are just starting out with these drivers, developing code modules might be a better starting point than jumping straight into customer step types.

 

Thanks,

Roxy

 

 

Re: Generating a very, very customized XML report

$
0
0

I think that depends on exactly what the end result of the changes you are looking for is. I've got a vague idea of the end goal but it would be easier to provide possible paths if we get a better more concrete idea of what you want in the end.

 

If parsing through the XML for results to plug into a SQL database is the end goal the stylesheet won't be worth re-writing. 

Re: Generating a very, very customized XML report

$
0
0

 wrote:

the stock offline results and ORPU leave much to be desired from our perspective


I would be curious to know what more you expected from ORPU. If you can provide any more details i would appreciate it.

 

My 2 cents on the stylesheet vs plugin scenario is mainly a matter of preference. Creating a basic stylesheet to do what you described should be possible, but it's somewhat miserable if you don't know XSLT. Here's a more basic example for Junit (another simple XML format):

https://forums.ni.com/t5/Example-Programs/Converting-TestStand-XML-Reports-to-JUnit/ta-p/3689131

 

You'll have to either use the MSXSL utility, or write a small .NET app to apply the translation before you ingest it.

 

If you already know how to write plug-ins, then you could start with the simple text report example and modify it to write your basic XML schema instead of CSV. You could also go a step further if you wanted and create a plug-in that has it's own store & forward mechanism to log directly to the database... that's how the new SystemLink Test Module Plugin works.

 

Hope this helps,

Trent

Viewing all 24613 articles
Browse latest View live


Latest Images

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