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

Re: Managing labview VIs

$
0
0

Would love to do that.  Unfortunately we are deep in product development, and I am constantly debugging on these systems.  Pre-building code and deploying like that is basically untenable at this point.  I hope to get there.


SQL database reports and batch testing

$
0
0

I am trying to run a batch test with Test Stand 2019 but I cannot get four separate reports for each of my UUTs.  The model Plugin that I am using works for a single UUT but not for multiple.  The section that is failing is Model Plugin-Batch Start.

Ken188_0-1729883838280.png

I am getting this error:

Ken188_1-1729883916300.png

I do not know what array it is referring to.  It might be RunState.TestSockets.MyIndex but I do not know.  I do not know how to convert this to a batch test. 

 

Re: SQL database reports and batch testing

$
0
0

The callback "Model Plugin - Batch Start" is called from the Batch model once from the batch controlling execution, and not from the individual batch test socket executions, so the value of "RunState.TestSockets.MyIndex" is -1 as the error suggests and the "Parameters.ModelPlugin.PluginSpecific.RuntimeVariables.PerSocket" array size starts at 0 and is TestSockets-1. If your code needs to setup a separate database per socket, you will need to loop on the said step equal to the number in RunState.TestSockets.Count.

 

 

Re: Error when logging to MySQL database after windows update

$
0
0

We have previously tested the MariaDB Connector, but we encountered other problems with that one and kept the MySQL connector. However, that was when we still were using the 32 bit version.

Re: SQL database reports and batch testing

$
0
0

Thank you for the reply.  I am relatively new to test stand. 

So, I would need to create a for loop in the Setup to run the function "Setup SQLite Database FileName" the same number of times that is equal to the number of sockets that I have which is 4?

 

Would I need to change any of my expression:

Locals.SQLitePath = "[" + #NoValidation(Mid(Parameters.ProcessModelClientPath, Find(Parameters.ProcessModelClientPath, "\\", 0, False, True) + 1)) +"][" + Date() + "][" + Time() + "]["
+ Parameters.UUT.SerialNumber + "]["
+ RunState.Sequence.Parameters.UUT.BatchSerialNumber + "].db",
Locals.SQLitePath = SearchAndReplace(Locals.SQLitePath,"/", " "),
Locals.SQLitePath = SearchAndReplace(Locals.SQLitePath,":", " "),
Locals.SQLitePath = Parameters.ModelPlugin.PluginSpecific.Options.SQLite_ResultsDirectory + Locals.SQLitePath,
Parameters.ModelPlugin.PluginSpecific.RuntimeVariables.PerSocket[RunState.TestSockets.MyIndex].SQLite_ReportPath = Locals.SQLitePath

Re: SQL database reports and batch testing

$
0
0

I added the for loop to the setup to run as many as RunState.TestSockets.Count however it is still failing for the same reason.

Ken188_0-1730124249829.png

Would I need to put a lock/unlock on the "main" due to it being a batch test to make sure one runs at a time?

Re: SQL database reports and batch testing

$
0
0

I think I got it to work.  I had to change "RunState.TestSockets.MyIndex to "Parameters.UUT.TestSocketIndex" and put a for loop around my setup and my main.

Ken188_0-1730130438717.png

 

Re: SQL database reports and batch testing

$
0
0

@Ken188 wrote:

I added the for loop to the setup to run as many as RunState.TestSockets.Count however it is still failing for the same reason.

 


You have the exact same error message?  If you have the same error message, please note that you cannot use RunState.TestSockets.MyIndex during Model Plugins - Batch Start. If your error is different, then please post the new error details.

 

Edit:  Looks like you corrected your issue before I had finished my post.


Re: Sequence editor UI manipulation in TestStand 2024

$
0
0

Today I found the variables pane disappears and the splitter does not stick right when the middle pane is Steps view, but it does resize properly in Report view! I had a call with NI support who suggested doing a repair and that has not worked. Has anyone else seen this?

 

As for customised tool bars that is now working. For now apparent reason.

 

My front end callback sequence was empty in both the program files folder and the public docs folder. Now it is not empty. Very strange behaviour going on. Has anyone else had gremlins like this?

Re: Appel d'une .dll qui s'appuie sur la technologie COM (Component Object Model) de Microsoft dans TestStand

How to use .NET 8 without GAC?

$
0
0

I'm looking for recommendations on using .NET 8, especially given the absence of the Global Assembly Cache (GAC). In my sequences, I frequently rely on mscorlib.dll, which previously could simply be selected from the GAC list. However, with the latest TestStand update, the GAC has been removed, requiring the DLL to be specified by its path.

 

What would you suggest for configuring the steps with the .NET adapter? Should I add the C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.8 folder to the PATH, or would it be better to add it to the TestStand Search Directories? Or is there another approach you'd recommend?

Re: How to use .NET 8 without GAC?

$
0
0

Good point! At least for the general Microsft stuff.

 

In the time before .net8 support, I have never used GAC fr my own assemblies, they are lcoated in the approproriate folders within the project / framework hierarchy

 

 

.NET get ThisContext

$
0
0

Hi,

 

I'm trying to get the ThisContext object of a specific sequence.

 

I'm using :

 

var = (Sequence)propertyObj.GetPropertyObject("RunState.SequenceFile.Data.Seq[1]", 0); to go to the specific sequence from the main sequence but I want to get to the selected sequence ThisContext object

Error Code -17502 in TestStand NI 2023 Q3

$
0
0

Hello everyone,

 

I'm experiencing an issue with TestStand NI 2023 Q3. I frequently encounter an error message with Error Code -17502 and the description "no details available." This leads to instability in my test sequences.

 

Sometimes, when I click "Retry" in the error window, the program continues after 2 or 3 attempts. However, it also crashes occasionally.

 

I would appreciate any suggestions or solutions to address this problem.

 

Thank you!

Re: Error when logging to MySQL database after windows update

$
0
0

I just tested "MariaDB ODBC connector 3.1.20 (x64)" but I still get the same error trying to write to PROP_BINARY.


Re: How to use .NET 8 without GAC?

$
0
0

I also didn't register my own assemblies in GAC but I often use the standard ones for simple file operations and such. GAC was very handy for it.

Re: Error Code -17502 in TestStand NI 2023 Q3

$
0
0

Hi, 

Error -17502 is an operating system exception being passed back to TestStand, which then reports it to the user. The operation the user performed is throwing error -17502, which can have different causes. Some common causes are:

  • Writing to memory which you do not have access to in your code
  • Exceeding array bounds in your code
  • Dividing by Zero in your code
  • Passing the wrong input parameters to DLL function call

Narrow down the step or the set of steps that cause the error and debug the calls to code modules from those steps.

That should help you narrow down the root cause of the error. 

 

Regards, 

Anand Jain

NI

Teststand 2024 i miss the Restart (F5) button

$
0
0

@Developers! please consider this:

we used to have the Test UUT green arrow on the toolbar that would become Restart on a completed execution. Now after an execution the view flips to Report as expected, but to restart you have to go to the bottom of the report screen and  click the steps tab to see Restart. This breaks the useability/ workflow a bit.  Please can we either have Test UUT/ Restart back on the toolbar or also show on the report view?  Every time I run an execution I'm looking for the Restart button. I think the second option works best as the Restart button on the report view could be in the same place as the new Test UUT button .

Thank you

 

Is this a Bug (needs a CAR) as its an old feature that has gone or an Idea for ideas exchange (which is not looked at often by NI). It should be a bug as its a 'feature reversion' IMO

Re: Problems passing arguments from teststand to python

$
0
0

benjohnk,

I was unable to reproduce the issue in TestStand 2024 Q4 release. You are using an older version of TestStand and the fix for the issue might have gone in after that release. I am not sure of exact release which fixed the issue.

 

Even though I haven't tried it explicitly, try the following possible workaround so that you can continue using the specific version of TestStand:

  • Create Numeric Local variables 'In' and 'Out'
  • In the pre-expression of the step, assign value of Parameters.In to Locals.In
  • Use Locals.In and Locals.Out as parameter values in your step
  • In the post-expression of the step, assign value of Locals.Out to Parameters.Out

 

-Shashidhar

Re: How to use .NET 8 without GAC?

$
0
0

Create .net project and referenace all libraries teststand might need to use. Best is to create wrappers that exposes simple datatypes to teststand instead of calling core libs directly.

 

In our setup project is compiled to bin directory where sequences reside and dlls are loaded by relative path from that dir. In .net8 all project dependencies will be copied to build output dir.

Viewing all 24396 articles
Browse latest View live