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

TestStand Notification Examples

$
0
0

Attention all you TestStand gurus.  Does anyone have any good examples using Notifications in TestStand?

 

I am using the SequentialModel sequence file.  I am calling a new thread from my Main Sequence that Polls a device continously (every 100ms).  This thread is called "Polling Sequence."  I want to be run my Main Sequence at the same time but I also want to be able to shut down the "Polling Sequence" using a notification test step called from my Main Sequence.  I also want to be able to startup again the Polling Sequence from time to time from my Main Sequence.

 

Does anyone have good examples for this?  Is there a better way to do this?

 

Thanks!


AVI provider

$
0
0

Hi, 

 

I want to use the AVI provider , but when I send a video, it gives me an error "Error -1074396009 occurred at IMAQ AVI Open IMAQ Vision:  An internal DirectX error occurred. Try to update your version of DirectX." or "IMAQ Vision:  DirectX has reached the time limit when reading or writing the AVI file. When closing an AVI file, try adding additional waiting time. When playing an AVI file, try to reduce the load on the processor and hard drive."

I updated DirecX and I let only PQA working to try to solve the problems but it is the same.

 

PQA can read some videos on mpeg4 but not all mpeg 4 videos.

 

Why can't PQA read all mpeg4 videos? 

 

Best regards

 

Carolina

Configure Import/Export Properties in TestStand for multi-dimensional array

$
0
0

Hello All,

 

  I am developing a testing sequence in TestStand, and trying to use the Property Loader step to load an array of parameters into the sequence file (I would then (eventually) index the array and loop through each set of parameters for the applicable step).

 

 To set up this architecture, I have created a custom data type in TestStand to match the front panel control of the code module.  Next I created a File Global Parameter based on that custom data type (an array of custom data type).  I then inserted several empty "placeholder" elements into the array.  Each one of the elements matches the structure of the custom data type.  Everything up to this point appears to be working correctly. 

 

  My next step was to use the Import/Export Properties tool to create a parameter file, that would later be used to populate the File Global Parameter array.  What I am having difficulty with is configuring the Import/Export tool to match the structure I need.  I want to use the tool to ensure that the file is in a format that will be recognized when I call it with the Property Loader step.  The attached picture shows the structure I want, and what I am getting. 

 

  I've seen several examples that use the property loader and import/export tools, but none seem to have this setup.  The property loader example that came packaged with TestStand comes close, but it exports a text file.  The portion of the example that shows implementation for excel files is setup for Labwindows, and configured across multiple steps (adding 2 more layers of confusion for me).

 

  Please take a look and let me know how to configure the Export tool to match the structure I need. 

 

Thanks and have a great day.

 

GSinMN      

PropertyLoaderOutput.png

best practice for Logical OR pre-condition evaluation

$
0
0

Greetings,

 

I'm finding TS doesn't have basic features for decision making (imp) for execution. Any recommendations are welcomed and appreciated. Please see below scenario.

 

I'd like to execute setup steps (custom step types) for a signal generator based upon the user selected "Test".

 

To keep it simple for the signal generator let's say we have the following steps:

 

Set Freq | Set PWR lvl | Set Modulation Type | Set Modulation ON/OFF | Set RF Power ON/OFF

 

For User Selected Tests let's say we have Test A(0) | Test B(1) | Test C(2) (Test  A & C requires Modulation, B does not)

 

Here's my issue:

 

I can't get SET Freq | SET PWR lvl | Set RF Power ON/OFF to execute a pre-condition setup for evaluating Logical OR's. (i.e. locals.TestSelected ==0||1||2)

 

Same for Set Modulation Type | Set Modulation ON/OFF (i.e locals.TestSelected ==0||2)

 

Thanks in advance for any guidance provided.

 

Chazzzmd78

Setup ForEach Loop with 2D Array

$
0
0

Hello All,

 

  Would like to know how (if possible) to configure the "ForEach Loop" step in TestStand for an empty 2D Array.  What I have is a 2D array of character strings that represent sets of configuration parameters (i.e. each row contains several columns of parameters, and there are an undetermined amount of rows).  With the ForEach Loop, I would want it to loop once for each parameter row (not for each column of each row).  Right now it looks like it runs once for every column.  Please advise.  Thanks much.

 

Regards,

GSinMN     

switching modelsupport2.dll

$
0
0

We are using sequences running with batchmodel with a modified modelsupport.dll i teststand user directory, because we usually need an additional entry  an additional partnumber for  each UUT and overriding pre UUT callback doesn't work well in batchmodel.  

 

Now we have one type of UUT without that additional partnumber. Is it possible to make the sequence for that UUT using the "standart" modelsupport2.dll in installation path even if there is the modified modelsupport2.dll in teststand user ? 

UUT result in Post UUT Callback

$
0
0

Hi guys,

 

I have to read the UUT result  which is provioded by the below mentioned  expr.

 

RunState.Sequence.Main["MainSequence Callback"].Result.Status

 

The thing is I save the  result in Custom made TDM file and must close the file .

All this work I  do in Cleanup &  plan to do In  Post UUT   but  obviously  the

result is not available in  "  RunState.Sequence.Main["MainSequence Callback"].Result.Status"

 

as PostUUT callback is also part from Main Seq.

 

what is   the work around for this issue

 

Goto PreUUTLoop from Main Seq

$
0
0

Hi

 

Once the test is over with one sort of UUTs  I have to change the  PartNO  & the Code is in PreUUTLoop

 

how do I go there Programatically   from my Main Seq. Is there any Flag that could be set ?


TestStand ActiveX control compile warnings in WPF 2012

$
0
0

hello everyone,

 

I am using TestStand ActiveX controls(ApplicationMgr, SequenceMgr, ExcutionMgr) in my project written in WPF 2012.

After I put the controls on the form, there are some referrences automatically included in my project. But when I compile, I got the following warnings in the output window:

 

CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.UI\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.UI.dll' because of an indirect reference to that assembly created by assembly 'c:\Program Files (x86)\National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.UI.Support\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.UI.Support.dll' because of an indirect reference to that assembly created by assembly 'c:\Program Files (x86)\National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.API\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.API.dll' because of an indirect reference to that assembly created by assembly 'c:\Program Files (x86)\National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' because of an indirect reference to that assembly created by assembly 'c:\Program Files (x86)\National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll'. Consider changing the 'Embed Interop Types' property on either assembly.

 

When I change the "Embed Interop Types" property, I got errors instead. Can someone give some advise? What does the warning message mean? How should I get rid of the warnings or should I just ignore them?

 

thanks a lot!

 

Regards,

 

 

TestStand Workspace, Project and relative path

$
0
0

Hello everyone,

 

My coworkers and I are using a lot of little projects in TestStand that have the following folder architecture:

 

...\Package\

     Reports\

          TestStandReport1.html

          TestStandReport2.html

     SubSequence\

          SubSeq1.seq

          SubSeq2.seq

          Main.seq

     Configuratio_Files\

          ConfFile1.ini

          ConfFile2.ini

 

We move those package a lot on different bench that are not linked to the network and we also move them a lot within a bench (archive, working folder, ...).

 

Several package can have different revision of a same sequence, therefore from TestStand point of view those are different sequences with the same name. So the problem is when several package exist on a same computer, TestStand might take a sequence from a different package without generating any error but the user think the sequence used is the correct one.

 

So my question is : is there a way, using workspace and or project in our packages, to tell teststand to use the sequence from the package and not from another, WITHOUT having to update constantly the Search Directories ?

Something like defining the path of the sequences relatively to the path of the workspace file.

 

Thank you !

Spreadsheet String to array

$
0
0

Hello everyone.  I need advice from all you TestStand champions out there

 

I want to convert spreadsheet string to array dynamically.

My entry point are strings i receive from LabVIEW (0.060000    0.000000    0.000000    0.000000    0.000000    0.000000 ... ....)

I want to fill in my 1D array teststand in number (DBL) or labVIEW Dynamics data...

I can add in a previous step a statement step.

Any idea how to do this ? insert elements function ?

 

BR,

Vincent

Run Seq immediately (auto) after UI start

$
0
0

 

 I have to run the Seq  file Immediately  after  I start The   User Interface   without  the Entrypoint Buttons

C%23 Codemodule Debuging TestStand2013

$
0
0

Hi,

 

I have focused that debugging is not working when i am trying to debug "old" codemodules in TS 5.1 (2013) which where build with VS2010SP1 using

.Net Framework lower/equal 3.5

By switching to TS5.0   OR  setting .Net Framework to 4.0 debugging is working.

 

Is there a workaround that allows debugging without modifications ?

 

Regards

 

Juergen

 

 

sequence names

$
0
0

Hi,

 

I have a main sequence that calls a bunch of other sequences. Is there anyway to find out the names of all these other sequences that the main is calling??

 

Thanks,

 

Rohit

Get Name of Future Step in TestStand Sequence

$
0
0

Hello All,

 

  Working on a sequence of numeric limit tests, and need to set the limits programatically, based on an imported configuration file.  I use a simple action call to set the limits with a code module (TestStand Set Property Value function), but in order to make the code module reusable, I need to pass in the step name for the test step it applies to, each time I call it.  The problem is that the step that each limit applies to is several steps later in the sequence.  I know that I can get the name of the next step (RunState.NextStep.Name) but need to know if it is possible to get names of later steps as well.  I'm guessing it may have something to do with the "NextStepIndex" function, but can't seem to get the context right.  Please advise.  Thanks in advance.

 

GSinMN


Step Setting adapter

$
0
0

How can I change the Adapter type in the Step Settings for all of my sequence calls from the "NONE" to "CVI" type.

I have a large number of sequences and don't want to change each one individually.

 

Thanks

John

Checkbox to enable/disable report generation in Teststand

$
0
0

Just because this thread is closed:

 

http://forums.ni.com/t5/NI-TestStand/Disable-report-generation-API/m-p/2913362#M45903

 

I try to solve this problem in a new thread:

 

Add a Tab on a custom step type (e.g. duplicated a numeric limit test) with substep to enable / disable a record in report.

Respective to force it.

 

My attempt:

 

Types: MyTypes.ini --> Copy (e.g. Numeric Limit) in it--> Properties --> Edit Substeps

--> Add.. C/C++ DLL Call (Edit) --> then i tried the EditPassFailStep of the "CommonSubsteps.dll"

 

But dont work... :smileysad:, does not know how to use it neither i dont know whether its the right dll to touch...

 

Does anyone have a example solution for this problem?

report text based on test results

$
0
0

I would like to include debug information in the TestStand report.  For example, if test fails, report text = "Try replacing C1."  Is there one expression that would cover all types of tests?  I'm using TestStand 3.5.  Thanks.

Deployment Utility (Error Code -33)

$
0
0

Hello,

 

I was hoping to get some help on the following issue I've been seeing with TestStand 2010 SP1's Deployment Utility.  Everytime I start the Deployment Utility it appears to reinitialize to the default settings for the application.  Even if I attempt to load a TSD file, the Deployment Utility would quickly flash the settings and properties from the TSD file but would reinitialize quickly right after.  The following are the messages from the status log:

 

Starting a log for the deployment.
--------------------------------
Error occurred
Error Code:-33
TestStand - Deployment Utility Splash Screen.vi >> TestStand - Distribution Wizard GUI.vi >> TestStand - Load Engine Parts from Ini File.vi >> TestStand - Process Engine Info Dependencies.vi >> TestStand - Find Direct Engine Info Dependencies.vi >> TestStand - Get Dependent Products.vi >> MDFProdPreview_AddProductDone.vi

--------------------------------
+++++++++++++++++++++++++++++++++++++++

 

Any idea what this Error Code -33 is?  I could not find any information on this issue.

 

Thanks for any assistance,

Peter

TestStand performances running sequence using HMI and calling Engine

$
0
0

Hello,

 

I'm making many tests with TestStand to run the same sequence using the TestStand Editor and calling the Engine with a .NET application.

 

For the same custom step, it takes approximatively 1.5 secondes to run the step starting the sequence calling the engine using a .NET application and only 0.75 secondes running the same step using the TestStand Editor.

 

Here the code calling the sequence using .NET API.

Engine.NewExecution(seqFile, "Single Pass", seqFileModel, false, 0, null, null, null);

 

I don't understand why. What is the difference between the 2 ways ?

 

Best Regards,

CFOE

Viewing all 6223 articles
Browse latest View live


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