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

VISA error -1073807346 during each run

$
0
0

Hello everyone,
I have a problem with VISA. Every time when I want to run it I get this error message about my VI:

 

VISA Write in SKWP_Send_SPC2.vi->SKWP_Send_SPC2.vi.ProxyCaller

VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
Error code: -1073807346; User-defined error code.


Does anyone know how to solve my problems? 

 

Best Regards.


hiba6.1.png


BuildTSD.exe Won't Run Headless

$
0
0

Hi,

 

I've been using TestStand 2016 with Atlassian Bamboo for a few years now to do automated builds without any issues.

 

However, I've recently upgraded to TestStand 2019 x64 as am also quite a bit Python user so wanted to use the Python step types, and have discovered that I now have to be logged into the Build Server via remote desktop for the build to work, with the symptoms if I don't being that the build just hangs and is eventually terminated by the build agent with no error messages provided.

 

I've tried all of the usual tricks i.e. setting programs to run as Administrator, but to no avail.

 

Has anyone else seen this, or has anyone got any suggestions for things I can try to fix this?


Thanks in advance for any help.

How to create rendezvous to wait for threaded sequences

$
0
0

Hello,

in the attached testplan there art two subsequences as "New Thread" which contain a Wait 2s/3s.

The last teststeo is a messagepopup which says "End".

 

Now i want to configure the rendezvous teststep in this way the the last message popup appears after the two threads are finished.

 

For this i creaated a Rendezvoud at the beginning with "Number of Threads per Rendezvous = 2"

In the middle i execute "Get Status - NumberOfThreads" <-- returns 0. First strange thing. I thought his should return "2".

 

At the end ie execute the rendezvous but i never happened. So the last MessagePopup does not appear.

 

What is wrong here?

Thanks

How to display banner using batchModel with multiple sockets

$
0
0

Hi,

 

I am using BatchModel testing multiple UUTs. I would like to know how to display a pass/fail banner once all the sockets are complete. Right now, it is showing multiple banners corresponding to the number of sockets I use.

 

Thank you.

Precondition string compare problem

$
0
0

I can't believe I have to ask about this, but I am so confused why it doesn't work. It should be simple.

 

FileGlobal.ProductID = "07"

This is a string.

 

Why then, does this expression evaluate to True?

 

FileGlobals.ProductID == "01" || "02"

 

In order to debug, I made a Pass/fail step with it's Data Source expression set to:

(FileGlobals.ProductID == "01" || "02") ? (Step.Result.PassFail = True) : (Step.Result.PassFail = False)

This also evaluates to True.

 

I want it to be True for "01" or "02", but not for "03" etc...

 

 

Creating a .NET module from C# - Sequence File XML parser

$
0
0

Dears, I'm running the Sequence File XML parser, now I'm trying to modify the step type and full fill it internally with my own .net dlls.

Anyone has any clue about how can I fullfill the step module from the .net?

I was trying to use the loadModule from C# but I had no sucess.

 

 

The source code who creates the .seq is : 

 

public void new_sequence()
{
file = engine.NewSequenceFile();

// Sequence seq = file.GetSequenceByName("MainSequence");

Sequence seq = engine.NewSequence();
seq.Name = "Example";
file.InsertSequenceEx(file.NumSequences, seq);

Step step = engine.NewStep("DotNet Adapter", "PassFailTest");

step.Name = "MalAutomationTest";
file.AsPropertyObjectFile().TypeUsageList.AddUsedTypes(step.AsPropertyObject());
seq.InsertStep(step, 0, StepGroups.StepGroup_Main);

save_sequence_file(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\output.seq");


}

This is the result from this source code: 

Gabriel_Habib_0-1602184638787.png

Gabriel_Habib_1-1602184672808.png

 

 

However I still need to fullfill the module options, in the following picture I have done these configurations manually.

 

Gabriel_Habib_2-1602184727366.png

 

Is there anyone that can help with this?

 

Creating a .NET adapter step using Teststand API

$
0
0

Hello guys, I'm struggling with the teststand API to create a .seq using code, maybe someone could help.

Currently, I'm creating new steps using .NET adapter and setting its properties using AsPropertyObject().SetValString, as the example below:

 

step.AsPropertyObject().SetValString("TS.SData.AssemblyPath", 0, "BenchAbstractionLayer.dll");

 

But as you can see from fig1 below, there is a property .NET Invocation, which happens to be stored in Step.TS.SData.Calls, that I couldn't figure out how to set using the teststand API.

 

moduledotnet1.png

 

I noticed that if I create a new element in the Step.TS.SData.Calls using the teststand GUI, it will automatically come in the .NET structure, as shown in figs:

creating new element using GUIcreating new element using GUInew element creatednew element createdempty Calls after creating stepempty Calls after creating step

 

So I guess I need to insert a new element in the same way it is done in the GUI, but using the teststand API. Is there any way to do that?

 

Some attempts I tried but did not work were:

 

step.AsPropertyObject().SetValString("TS.SData.Calls.0.ClassName", 1, "Data_Here"); - doesn't work because it will not find the element called "0".

 step.AsPropertyObject().NewSubProperty("TS.SData.Calls.0", PropertyValueTypes.PropValType_Container, false, "", 0); - doesnt work because You cannot create a subproperty in an item that is not a container

 

Any other ideas?

TCP/IP Communication via TestStand and CVI

$
0
0

Hello,

 

Configuration:

 

  • Windows 10
  • TestStand 2017 SP1 (32-bit)
  • LabWindows CVI 2017

 

I have to connect to a TCP/IP server via my TestStand sequence. The adapter/tool I will be using is LabWindows CVI. I see that CVI has the client.cws example of TCP/IP communication, but this is designed to be built as an executable with a .uir panel interface. I am wondering how I could convert this example, or take advantage of some other example that is meant to be built as a DLL. I just want a DLL I can call from TestStand to handle the TCP/IP client-side communication. 

 

Thanks

Test Engineer 


Asynchronous VI in a Sub-Sequence

$
0
0

Hello,

 

I have a VI running asynchronously that is called in a sub-sequence.  The Test Stand variables that have been fed to it are from the FileGlobals.  The VI itself has been tested and validated in Test Stand on multiple occasions and the variables have been checked for errors.  

 

There are multiple issues.  None of the variables seem to update after we step out of this subsequence even though they are FileGlobals.  Also, I am unable to close the VI in a separate sub-sequence down the line.

 

My current band aid solution was to take the 'Run Async' step out of the sub-sequence and put it in a top level.  From there I am getting all variable updates without issue and I am able to close it.

 

Is there something about async VI running I don't know about in Test Stand?  Can't run them in sub-sequences?  Or are FileGlobals finicky?

Context Sequence を渡した場合の処理

$
0
0

TestStand上でLabVIEWのダイアログをモーダル表示させるために

TestStandのContextSequenceをLabVIEWに引数として与えています。

 

その結果、TestStandを実行が完了したあと、

VIファイルを開くと実行状態(編集不可)になってしまっています。

実行モードではありません。

 

TestStandを終了させるとVIは編集可能になります。

 

ContextSequenceを渡していないVIを実行した場合は

当該現象は起こらないので、ContextSequenceを渡していることが原因だと考えています。

 

原因がわかりましたら、ご教授のほどをよろしくお願いいたします。

 

Comportement Step Action different en SinglePass / TestUUTs

$
0
0

Bonjour ,

J'utilise TestStand 2019 f2 32-bits et labView 2019 f1 32-bits .

Voici mon problème .

Ma séquence de test est composé de plusieurs instances d'un CST (adapter séquence) lui même composé de CST (Action) faisant appel à un VI --> voir le screenshot .

Lorsque je lance la séquence en SinglePass elle se déroule entièrement sans problème .

Lorsque je lance la séquence en TestUUTs elle bloque sur le VI Logon lors de la 2eme instance du CST . la 1ere occurrence s’exécute correctement . Si je skip la 1ere, la 2eme s’exécute correctement et c'est la 3 eme qui bloque !

Comme si une référence n’était pas correctement fermé mais seulement lors de l'appel via TestUUTs .

 

Je ne vois pas de différence sur le process model lors de l'appel de la séquence (joint la séquence du process model) .

Merci de m'aider car je ne vois pas de solution .

Cordialement

 

Weird exceptions when running a .NET DLL from TS, but in VS2019 it works smoothly

$
0
0

Hi,

 

I try to run my app which includes some SignalR connections and other async methods.

As soon as the codes reaches

connection.StartAsync();

 I get this:

 

System.TypeInitializationException: 'The type initializer for 'Microsoft.AspNetCore.Http.Connections.Client.Internal.Constants' threw an exception.' Inner Exception: FormatException: The format of value '@BuiltBy: dlab-DDVSOWINAGE059 @Branch: release/2.1 @SrcCode: https://github.com/dotnet/corefx/tree/30ab651fcb4354552bd4891619a0bdd81e0ebdbf' is invalid. This exception was originally thrown at this call stack: System.Net.Http.Headers.ProductInfoHeaderValue.Parse(string) Microsoft.AspNetCore.Http.Connections.Client.Internal.Constants.Constants()

 

When running from VS all looks good and works fine.

So far, I have no clue.

 

Any ideas?

TestStand Database logging: String in [REPORT_TEXT] is truncated

$
0
0

Hello,

TestStand is logging to a Microsoft SQL Database with default Schema "Generic Recordset (NI)" and a step generates a "Report Text" which is written into SQL Table "STEP_RESULT" into column "REPORT_TEXT".

 

So far so good.

But REPORT_TEXT data is truncated at length 266 bytes.

I want this extend to 1024.

 

I modified the Database from "varchar(255)" to "varchar(MAX)" and

I modified the Recordset from "String (BSTR) 255" to "String (BSTR) 1024" or "String (VarChar) 2024".

but REPORT_TEXT data is still truncated.

 

Help is very welcome!

 

How to get test report to generate "No Test" for unused sockets

$
0
0

Hi,

 

I am using a batch model and configured it to test up to 4 UUTs sequentially. My entry point is Single Pass.

 

Test Scenario:

 

  1. Run single pass 
  2. User only enters 2 (out of 4) UUT serial numbers, each corresponds to a test socket
  3. Test starts until all sockets complete

I forced the test that corresponds to the first two socket to pass and fail respectively and the last two are unused (eg.. socket0 pass, socket0 fail, socket2 no test, socket3 no test), but when the report generates, the unused sockets default to pass. How do I get the unused sockets to report something like "No Test"

 

 

Read enum value from file

$
0
0

I would like to read a value from a file and write it to a TestStand enum variable. SetValNumber and SetValueString do not work. 

 

This must be done in a LabVIEW vi from Sequence Context.


I configure a different path for users in Station Options, but it does not take affect

$
0
0

Using: TestStand 2019 f3 32-bit

 

I have setup my own environment file:

 

Ozfarmboy_0-1602813535916.png

 

I goto Station Options, and despite my environment pointing CommonAppData to T:\TestStand Application Data, you can see that the Users.ini is still pointing to the original C:\Programdata... location

Ozfarmboy_1-1602813595181.png

 

So I unselect Use Default, and point it to my directory:

Ozfarmboy_2-1602813649857.png

 

Then I hit OK, and restart TestStand, change to my tsenv, and I go back to the Station Options, and I get this.  It didn't update.

 

Ozfarmboy_3-1602814046251.png

 

This was working BEFORE I created my environment.  

 

Thanks in advance for any guidance!

 

Is it possible to start TestStand to automatically load with a custom environment

$
0
0

Hi,

 

I've created my own TestStand environment file:

Ozfarmboy_0-1602814554790.png

 

But every time I open TestStand, it defaults to <Global> environment. And I have to open Configure --> Environment to change to my own environment, and press Set Engine Environment, which you then you have to wait for it to basically restart.  It's a time consuming effort every time you want to start TestStand!

 

Is it possible to change it so that it defaults to using my own custom environment?

 

Thanks in advance for any guidance!

Sequence Translator error

$
0
0

Setup: TestStand 2019 f3 32-bit

 

We have created a CSV-based Sequence translator.  We try to open a csv file on a colleague's computer, and we get this error:

 

Ozfarmboy_0-1602834818831.png

 

We know that the file format is ok, because it works fine on my machine.

 

We can see that the translator is in the correct location of <TestStand Public>:

Ozfarmboy_1-1602834937133.png

 

Note that we have changed our environment file to have the public directory redirected to T:\.  As I mentioned, this is working fine on my machine, but not on my colleagues.

 

Does the DLL need to be registered somewhere?

 

Does the error indicate that TestStand simply doesn't know about the translator we've created?

 

Thanks in advance for any guidance!

 

Offline Results Processing Utility (ORPU) no window

$
0
0

Hello everyone,

i have some troubles with the ORPU. If i start the ORPU i get the small icon near the clock, but if i try to access the window nothing happens. Also in the small preview, which you get when you hover over the icon in the taskbar in win10, you only see an empty white screen. (See attachements)

 

Even if i start the .exe manually out of the file explorer, nothing changes.


Is there a way to reset the whole ORPU? A few months ago i create a test profile in the ORPU, maybe it doesn´t work anymore. I already cleared the two ResultProcessing.cfg files at ...ProgramData\National Instruments\TestStand 2019 (64-bit)\Cfg\ModelPlugins

Thanks for your help.

TESTSTAND ATML6.0 STYLESHEET CUSOMIZATION

$
0
0

Hi all,

 

I'm working on customisation of the Teststand Offline Report. I'm using ATML 6.0 horizontal.xsl.

The requirement is to move the status column to the last of the table. I succeeded in moving the Header. But facing difficulties in moving the corresponding data in the table. 

Any help in editing or to find out from where the data is flowing to the table.

 

Report.PNG

Viewing all 6529 articles
Browse latest View live


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