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

Exception has been thrown by the target of an invocation

$
0
0

Hi 

 

I am using NI TestStand 4.2

I have been getting exception errors and my TestStand crashes. This happens randomly.

Sometimes when I am developing a sequence and sometimes when I am running a sequence, the exception occurs.

 

The message I get is "Exception has been thrown by the target of an invocation" in the Sequence Editor window.

 

I have attached an image of the Error.

 

Please let me know how to resolve this.

 

Thanks

 

 

 


Sequence File unload when execution starts and reference stays in memory through executions

$
0
0

Hi !

 

I'm facing a problem using a dynamic sequence file load.

Here's how my application works : I'm testing products on two different test sockets so I'm using (a customized) parallel processModel.

When lauching a test on one or the other test socket, I always the same proces model client (MyProcessModelClient) in which I wrote a PreUUT call back to override the usual one. In this customized PreUUT, I'm getting the serial number of a product, and according to this number I'm scripting a test sequence file and saving it (TestSequence_1.seq if it's on test socket 1 and TestSequence_2.seq if it's on the other one).

Then in the MainSequence of 'MyProcessModelClient' I have a single sequence call calling TestSequence_1/2.seq dynamically according to the current test socket (TestSocket.MyIndex+1). This sequence call is then set with :

  • load option : load dynamically
  • unload option : unload after step executes

 

And here comes the trouble !

First of all, the code stored in my sequence callback 'SequenceFileUnload' of TestSequence_x executes when the file is loaded... (i guess this one is loaded, copied in memory and unloaded just after...)

Then, when replaying PreUUT for the next product on the same test sockets produces an error when my scripting code tries to the save the new TestSequence_x file (error -17206 : '... a sequence file with that path is already loaded') !

 

Any idea why is it behaving like that ?

Issues with file references when loading TestStand on a new PC

$
0
0

We are looking at using a new PC for using TestStand at my work and we loaded LabView and TestStand onto the PC.  We saved all of our sequence and VI files using subersion and loaded that copied directory onto the newly created PC.  When we went to run TestStand, it would state the sequence file and see all of the sequence, data types, and steps from before, but there is an issue where it does not see the location of the VIs, .NET assemblies and so on that we used in the steps.  What am I missing on loading these items to use to run the test again?

how to get the "module" in the step settings pane

$
0
0

Hi,

 

I´m trying to rebuild an example for "Custom NI VeriStand Steps for NI TestStand". So far es I can see it I did the same things as in the examples. I draged a few stepst from the Insertion palette in the Main Sequence and now I want to specify the module but this button isn´t shown up in the Steps Settings pane.

I´m still a total beginner and have to work with Teststand for my bachelorwork. So please help me :)

 

Thanks

Why does TestStand 2010 SP1 not find functions in DLLs compiled in Visual Basic 2010 Express?

$
0
0

Hello,

TestStand 2010 SP1 does not appear to be able to find any functions in DLLs compiled by Visual Basic 2010 Express. I have spent large amounts of time trying to find a solution to this problem, but had no success.

The program I have compiled is a C++ program; I declared the functions to be exported using __cdeclspec(dllexport) in the definition of the function prototype.

The DLL can be found and opened, but the functions in the DLL can't be accessed from TestStand. Does anyone have an idea why this might be the case?

 

Thanks in advance!

D.W.

Dynamically get parameters names of a Step Type

$
0
0

Hello everybody,

 

I am coding the ProcessModelPreStep in order to have access to each step of the running sequence, before it has been execute. With the following expression I access to the type name of the step:

 

Locals.Type_Name = RunState.Caller.Step.StepType

 

But I can't find the expression to get access to all the parameter names of the step type.

Does somebody know such an expression to do that ?

 

Thanks you !

Deploying testexec.ini

$
0
0

All,

 

I've got a custom OI and process model that I am trying to transfer over to another computer, to do this I've created a LabVIEW installer from 3 source distributions and one application.  I went with 3 source distributions because each goes to a different path.

 

The 3 source distributions are as follows:

- Source vis

- process model

- config files (StationGlobals.ini, Users.ini and TestExec.ini)

 

My struggle enters the scene when I try and specify what process model I want to be used.  My plan was to do this by transferring TestExec.ini to C:\ProgramData\National Instruments\TestStand 2012\Cfg and hoping that TestStand took the changes; well TestStand does not seem to load the correct TestExec.ini, so my questions are as follows:

- Is there a better way to specify what process model I want TestStand to use?

- I do not delete the old config files from C:\ProgramData\National Instruments\TestStand 2012\Cfg, does that cause me a problem to write over them?

 

Thanks,

 

Bill

TestTand directories

$
0
0

Hi People,

 

I would like to get NI product installation directories (thinking about TestStand).

I think I got once a cmd command which shows (by typing TestStand+"something" on my cmd command prompt) TestStand installation directories.

such as (on windows seven):

 - C:\Program Files (x86)\National Instruments

 - C:\Users\Public\Documents\National Instruments

 

Note that those directories are different depending the OS you use !

 

But I cant remember this command.

 

Does anyone knows about it ? If not (may be I dreamt) does it exist ?

 

Thanks to all repliers...


Skip test mess up the test orders in the report

$
0
0

Hi , As part of my TestStand project I record the Test results in Excel. The problem I have is,  when I skip the tests it mess up the the orders in the report.  The test headers are dependent to the test. Could you please help me what should I do when I want to skip a test to not have this report problem

ProcessSetup Callback

$
0
0

Hi everybody.

 

I'm going to use standard sequentialmodel.seq in order to test my UUTs. I use ProcessSetup and ProcessCleanUp in order to execute one time the setup and cleanup phases while I'm testing UUTs with TestUUT entry point. I want to include result of some tests running in callbacks in my report XML.

I opened the sequential model and I checked record result and enabled tracing for callbacks.

 

The tracing runs and the recording too but my test doesn't record result from the test body in main sequence.


Does anyone explain to me why?

 

Thanks.

Saving string result data to access database

$
0
0

I am having problems when I try saving String Result Data (or additional Data.) to a database.

I think I need to modify the Database Schema but do not know how.

I have attached a simple VI, a sequence, and a database to illustrate the problem.

Also enclosed is a screen shot of the error message that Test Stand Throws up.

 

I am using TestStand 4.1.1

Can anyone tell me how to overcome this problem.

Thanks

Call LV example to launch WMP from TS

$
0
0

I used an example from the NI site.  https://decibel.ni.com/content/docs/DOC-25131.  The example works great for me when running it in LV.  I need to call it from Teststand.  I create an action step in TS and call the vi.  I get an error 97 on the IWMPPlayer4 URL Property Node.  The value for the Windows Media Player terminal is 0 when callled from TS which causes the error.  When running from LV the terminal has a number and works.    

I'm using LV2009, TS4.2.1, and WMP 11.

 

Mick

Modify UUT dialog for the parallel model

$
0
0

Hi,

 

I'm just new to Labview CVI and to modifying the modelsupport2 project file.

I wish to modify the InitializeParallelUUTDialog such that the MakeNewTestSocketCtrls align side by side instead of underneath each other. My model options will always be set to 2 two sockets.

 

Any help or direction will be much appreciated.

 

Thanks,

Dave 

teststand sequence looping

$
0
0

Hello

 

I have made a sequence with 4 numeric limit teststeps who collect data and 3 step numeric limit steps who do calculations with the data from the 4 previous steps.

 

When one of the calculation steps fail i want to loop the sequence for max 3 times in order to gather new data for the calculations. When on of the data collect steps fail i want to go to the cleanup of the sequence  and do no looping. In both situations the sequence has to fail in order to get the end result of the total test failing.

 

What is the best way to deal with this situation ?

Is it possible to change the looping conditions of the sequence on the fly? (switch looping off) 

 

With kind regards

Tonnie

copy TS container

$
0
0

in my sequence I collect some data into a Local.Result container. I have a lot of sequences, and I plan to collect all of these local containers in an array of containers in StationGlobals. The local containers in each sequence are built up identical.

 

I tried to use the Clone method, but I!m stucking with it. I could use the NewSubProperty method on each element of the container in each element of the StationGlobal array, but I there must me an easy way to copy the container.

 

Any idea?


plot a graph and show on a pop up

$
0
0

Hi,

Im developing a test execution in test stand which reads a waveform from NIPXI 5124 with ReadWaveform() function and get the data as an array.Now I want to plot this array content as if viewving the scope monitor ( as you know there is no monitor of 5124) , and show it to the operator asking if the wveform is similar to the waveform expected. only visual similarity is enough for us. I tried to use zNi TestStand graph control.ocx as activex control but I could not succeed.Because I dont know what to select for object reference and other variables.I could not find any example for test stand and cvi application on net or teststand examples directory.I' m not sure that I'm on the right way.Could you please send me an example for suca a case.Or is there any alternative way to create  an application which plots a graph of the waveform measured and shows as a pop up picture?

waiting for your immediate reply.

Regards

ActiveX/COM adapter - How to assign a Variant to hold an integer

$
0
0

We are using a 3rd-party component and need to interface from TestStand using COM. The interface uses a Variant to pass data into various objects. We are unable to successfully pass an integer.

 

When the expected type contained in the Variant is a string or a double, the call is successful. When the expected type is an integer, the call fails. Passing in a Boolean will succeed, but only for 0 and -1.

 

How can we assign an integer value to a Variant?  We can only find Int64() convert functions.

Perhaps a function which returns an integer type can be used to convert a TestStand number (double) to an integer value, but so far, no luck.

 

 

How to find/replace entire steps

$
0
0

Does anyone know of a way to search steps by name or type, and replace the step itself with a different step?  I've been trying to accomplish this with the Find/Replace in Files dialogue, but haven't been able to figure it out.  To clarify, my goal is to find all ActiveX controls with a specific name within a single sequence file, and replace them with a similar .NET control.  Doing this manually would be very time consuming.

 

Thanks in advance for any input!

Can't call a VI from remote server

$
0
0

I have a VI running on a labview development machine(Labview 2010), the main function is handling excel report using report generator. I follow the link http://www.ni.com/white-paper/14469/en to set up labview machine and teststand machine respectly. But when I tried to call the VI from remote server, it is still not able to load the VI front panel and show the connectors. See the  attachment. It looks like it still trying to load VI from local drive because it can't find the builded-in subvis for report generator function.

 

What should I do to make it work? Thanks!

How to dynamically configure the TestStand Report within the executing sequence

$
0
0

Good morning everyone,

 

The very first step of my sequence reads a configuration file where is written which format of report is to be set and if the execution times shall be recorded or not. 

I know there are TestStand variables that configure this but I cannot find them. Does someone know them ?

 

Thank you !

Viewing all 6563 articles
Browse latest View live


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