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

Help copying a file during TestStand deployment installation, or how to programmatically identify deployment version?

$
0
0

Hello,

 

     I'm attempting to set up a step in my TestStand sequence that compares the deployment version that's running to a released software configuration, so when the configuration is updated, TestStand sequences exit out and request to be updated. To do this, I need to programmatically identify the version number of the installed TestStand sequence.

 

     What I've come up with is that I can use a custom command in the deployment utility to copy the nidist.id file from <InstallerDir> to "<InstallationDir>\ProjectName\LabVIEW". Like another person who's had an issue here, I can run my command in a CMD window without issue, but the installer yields:

 

"Error code:2 occurred on command <InstallerDir>\copy nidist.id "<InstallationDir>\ProjectName\LabVIEW"

The system cannot find the file specified."

 

Similar to the other poster, I find that putting all commands into a batch file is a little ham-fisted, but I also suspect the batch file will not resolve <InstallationDir>, reducing its dynamic functionality.


How can i faster modify the entries in Step Type Menu Editor ?

$
0
0

Hello,

i created some custom tests and actions by copying the original testtype in Types (STRG + T)and liking them to my own DLL.

After coping the name is first "Action_2" which i rename to "Action_Reset".

 

On the left side i can rightclick on the seqeunce filename and select "Step Type Menu Editor" which opens a small window where my new copied Action is now in the same Group as the original NI-Action.

I created a new Group "Button Add Group) and moved my action into there.

This is what is working.

 

The problem is that this takes to much time for >300 custom teststeps/actions which have to be sorted into different groups.

 

So can i make the sorting also in an text-editor? Or is there any other faster way to do this?

 

Thx

 

2012 TestStand Training (Failed to Load VI)

$
0
0

Running TestStand 2013 and I also have LabView 2013 installed.

Running through some of the training exercises (Exercise 4) and I receive this error:


Error Code modules must be able to load General Module for Step 'Volume Label Test' not Loadable. Failed to load VI 'C:\Users\Public\Documents\National Instruments\TestStand 2013\Examples\TestStand 1Exercises\CD Test\Code Modules\Volume Information.vi' in the LabVIEW Run-Time Engine version '10.0.1f4'.

LabVIEW: The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.

VI Path: C:\Users\Public\Documents\National Instruments\TestStand 2013\Examples\TestStand 1Exercises\CD Test\Code Modules\Volume Information.vi CD Test.seq Seq["MainSequence"].Main["Volume Label Test"].TS.SData

 

The two subVIs that TS looks for when I investigate through the module tab in Step Settings:

Error Cluster From Error Code.vi

System Exec.vi

 

Not sure why TS does not find these subVIs

 

Fernando

Handle complicated and mass output

$
0
0

I have a Labview VI that has a very comlicated output(array of container of array...).I don't want to create a variable in TestStand ,is there a way that use a reference or variant ... to receive that output?

 

Thanks,

URLs in comments and requirements fields

$
0
0

Hi,

 

Sometime ago I've posted TS Idea asking for the step comments and requirements fields be able to recognise url links. http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/Enable-the-Requirements-fields-in-Step-property-to-recognise-url/idi-p/3166176

 

However, it looks like my idea did not gather a lot of aplaus :-(. Maybe I have to advocate for it more :-)

 

Nevertheless,  the problem still exists. For the second time I hit the situation in which this type of feature would be fantastic to have. It could help to document the sequence and to tie up with the requirement documents.

 

So, here is the question. Is there the way to do this somehow event this feature is not implemented? Is there the way to have a kind of url connect tion from the sequence to the web server (http link)?

An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'

$
0
0

I'd appreciate it if I could get some help regarding the following error.

----------------------------------------------------------------------------------------------------------------------------------------------

Error Message: An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred executing a statement.
Schema: SQL DalsaTE Rev02 - CamsatPearl - No Step Logging
Statement: ResultsUut.
Description: Connection failure
Number: -2147467259
NativeError: 0
SQLState: 08S01
Reported by: Microsoft OLE DB Provider for SQL ServerDescription: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Number: -2147217887
NativeError: 0
SQLState: 08S01
Reported by: Microsoft OLE DB Provider for SQL Server

Source: TSDBLog
Error Code: -2147467259

Step: Log Results to Database

SequenceFile: C:\Users\Public\Documents\National Instruments\TestStand 2012\Components\Models\ModelPlugins\NI_DatabaseLogger.seq

----------------------------------------------------------------------------------------------------------------------------------------------

 

1. I was using OTF and TestStand 2012

2. The issue occurred when I tried resetting (disabling and then enabling) Windows network adapter during the test. It happend quite often but not every time. The adapter was enabled when the error occurred.

 

Thanks.

Using Custom Commands in the Deployment Utility for TestStand, can I use the del command?...I keep getting an error...

$
0
0

Hello,

 

I have used xcopy in the past in the custom commands with no issue but I now want to delete a certain file from the "SupportVIs" folder that is automatically generated.  I have tried doing so using del "path\file.exention" however, I get and error "error code:2 ... the system cannot finde the file specified.  H put the same command in cmd and it works like a champ...If this file was available in exclude under "View Destination" I would but it is automatically put in the SupportVIs where I cannot exclude it.  I have also tried adding the file to the filter.ini but that did not work either...still showed up in the "SupportVIs" folder (I may have modified the filter.ini file wrong but I don't think so).

 

Any thoughts?

 

I tried to xcopy the file and that worked from the custom commands but for some reason I just can't use the del function...

 

 

Why is my NI TestStand having "TestStand Debug Options Warning" everytime I close it?

$
0
0

Hello,

 

I am having this problem with my NI TestStand.

At first I observed that I cannot launch Import/Export Properties Dialog box from Tools>>Import/Export Properties though it seems clickable.

When I click it, there's no response.

Then also, everytime I close the TestStand, I always got this error message box "TestStand Debug Options Warning". The error message is shown below.

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

TestStand Debug Options Warning (32-Bit).PNG

FULL Error Message:

 

References to PropertyObjects were not released properly.
Total number of objects: 37
Number of top-level objects: 5

Note: Some top-level objects may be included if they are referenced by
an incorrectly released top-level object. For example, an unreleased
SequenceContext object references a SequenceFile object.

The following top-level objects were not released:

Type Definitions [3 object(s) not released]
Type Definition #1:
Name: DatabasePropertyMapping

Type Definition #2:
Name: DatabaseColumnValue

Type Definition #3:
Name: Expression


PropertyObjects [2 object(s) not released]
PropertyObject #1:
Name: PropertiesList
Type: Array of Containers

PropertyObject #2:
Name: ExtraInfo
Type: Array of Containers

 

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

How do I fix this? Please see below details for your reference.  Thank you.

 

Software Version: TestStand 2014 (32-Bit)

Windows OS: Windows 7 Professional (64-Bit)

 

*Note: Using TestStand 64Bit instead will do as fine and no erros at all, however, I should use my 32Bit teststand since my Semiconductor Module is in 32Bit.

 


Complete a report path

$
0
0

I'm was trying to programmatically complete the report path.

The log is saved correctly if I define the list below in the de callback "ReportOptions":

Parameters.ReportOptions.ReportFileSequentialModelExpression = "\"C:\\\\DataLog\\\\<FileYear>\\\\" + FileGlobals.ProductCode + "\\\\<UUTStatus>\\\\<UUT>_Report[<FileDate>][<FileTime>]<Unique>.<FileExtension>\""

 

But what I want to do is to complete the "Parameters.ReportOptions.ReportFileSequentialModelExpression"(which is "C:\\DataLog") with "\\<FileYear>\\" + FileGlobals.ProductCode + "\\<UUTStatus>\\<UUT>_Report[<FileDate>][<FileTime>]<Unique>.<FileExtension>\""

 

Something rough like below would be in the "ReportOptions":

Parameters.ReportOptions.ReportFileSequentialModelExpression += "\\<FileYear>\\" + FileGlobals.ProductCode + "\\<UUTStatus>\\<UUT>_Report[<FileDate>][<FileTime>]<Unique>.<FileExtension>\""

 

 

Change Step Fail Causes Sequence Fail state from LW/CVI Custom Code Generator

$
0
0

Hi,

 

I have a CVI Code Generator as part of the ATML Importer Toolkit.  NI have kindly provided me with an example of how to change the Step Type as part of the Custom Code Generator DLL and that works fine.

 

However if I try to change the Step Fail Causes Sequence Fail value to VTRUE it appears not to fix the value when the Sequence is looked at in Test Stand.

 

The code I use is:

 

TS_StepChangeStepType (stepHandle, &errorInfo, typeDefinition);  

                         -where typeDefinition can be changed to change the step type, this works and I can change the step type as needed.

 

TS_StepSetStepFailCausesSequenceFail (stepHandle,&errorInfo, VTRUE); 

                         -which doesn't work, the tickbox is always set to VFALSE.

    

 

 

Is there something I'm missing?  

 

Many thanks,

 

Steve

TestStand Menu (Source Control)

$
0
0

Is it possible to use Source Control for TestStand Sequence and i am not using TestStand Workspace

 

Graphs in TestStand reports

$
0
0

Hi,

 

I'm using TS2014SP1.

 

I've found in the Mobile Device Test.seq example graphs displayed in HTML reports.

 

Do I need to use LV as a language of code module to have a graph on the report?

 

Why in this report graphs are displayed once as reported text and once as TestReport/Data?

 

002Capture.PNG

 

001Capture.PNG

How to use Call executable to run a ping command?

$
0
0

Hello,

i am using TestStand 2014 and want to use the Call Executable to open cmd.exe and run ping 127.0.0.1

For this i currently inserted C:\Windows\system32\cmd.exe at File Pathname and "ping 127.0.0.1" at Argument Expression.

But this only opens the command-window when executing the step.

How do i do it correct?

 

Thanks

 

Edit.

Solved: Only the parameter /r was missing in Argument Expression before the Ping command.

 

Industry Trend with ATML Report

$
0
0

We are considering using ATML as the standard reporting format moving forward, but I haven't hear many people talking about this format besides NI. What are everyone's experience with ATML? Pros and cons? And, what companies are currently using this standard?

Unknown System Error in TestStand - Set Property Value (String).vi-

$
0
0

Well I had a great Teststand program running and I had to stop it by killing the thread because of a vi that was running wild. After doing this I now cannot get any of the Teststand vi's to run properly without giving an error above. How can I fix this or what do I need to reinstall?

 

Unknown System Error in TestStand - Set Property Value (String).vi-> ERROR 97

 

 


DetermineReportFilePathNameExpr missing DLLs Testand 2014 SP1

$
0
0

In my Process Model Sequence is a call to DetermineReportFilePathNameExpr contained in modelsupport2.dll . (Teststand 2014 64 bit)  This call makes the Teststand Sequence Editor stop working. I guess (?) that the reason are missing DLLs as follows

 

My system

 

  • Windows 7 64 bit
  • Testand 2014 SP1 (14.0.1.103) 64 bit
  • Sequence Editor Version 14.0.1.103

In the Dependency Walker analysing modelsupport2.dll used in calling DetermineReportFilePathNameExpr i see the following DLLs missing on my system :

 

  • API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
  • API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
  • API-MS-WIN-CORE-WINRT-L1-1-0.DLL
  • API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
  • API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
  • API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
  • DCOMP.DLL
  • IESHIMS.DLL

How can i get these DLLs ?

 

Best regards

TestStand API.NET Action Property Setting

$
0
0

I want to create an .NET action step with C#, I know we can use code such as below to add an action step:

   mainSequence.stepGroups[(int)StepGroupName.setup].steps.Add(new StepData("Action", StepTypes.StepType_Action , AdapterKeyNames.NETAdapterKeyName));

but to make action step works, we need to set the Assbemly, Root Class, Method Invocated properties,  something like 

   mainSequence.stepGroups[(int)StepGroupName.main].steps.Last().stepProps.Add(new PropData("RootClass", "a.b.c"));

but i don't know the property path for them , cannot see it in property panel either, anymore can help me on this?

How to save .seq file to .xml in TS 2014

$
0
0

How to save .seq file to .xml in TS 2014? i cannot see the options in save as popup dialog, all are .seq file in different version

The following VIs or Project Libraries have duplicate names You must change the names or add them to project libraries

$
0
0

Hi,

I'm working with NI TestStand 4.2.1, the labview version is 2009 SP1. My operation system is windows 7.

When I tried to build my workspace to generate a deployment, I got the following error:

 

Error: The following VIs or Project Libraries have duplicate names
You must change the names or add them to project libraries:
C:\Program Files (x86)\National Instruments\LabVIEW 2009\vi.lib\Utility\NIReport.llb\sfp\shells\Append Front Panel Image to Report.vi while Processing VIs...
C:\Program Files (x86)\National Instruments\LabVIEW 2009\vi.lib\Utility\NIReport.llb\Append Front Panel Image to Report.vi while Processing VIs...

 

Those two Vi are from different folders, and the destinations are also different when building. (See the two attachments. ) The two Vis are from the library, I do not think it would work if I deselect either of them. However, I deselected "C:\Program Files (x86)\National Instruments\LabVIEW 2009\vi.lib\Utility\NIReport.llb\Append Front Panel Image to Report.vi"  in "distributed files" and built, then it reports this error:

 

Could not process LabVIEW VIs. Fix any broken VIs before rebuilding. LabVIEW error:
Create Folder in Create Directory Recursive.vi->AB_Destination.lvclass:Create_Destination.vi->AB_Build.lvclass:Create_Destinations.vi->AB_Build.lvclass:Build.vi->AB_API Build.vi->NI_AB_API_SDIST.lvclass:Build.vi->Build VI Distribution 8.6 - TestStand.vi->Build VI Distribution 8.6 - TestStand.vi.ProxyCaller<APPEND>
C:\Users\LLU\Documents\TestStand Deployment\Image\target\Projects\IP67\Install\LabVIEW 2009\vi.lib\Utility\NIReport.llb\Word

 

Since those VIs are related to labview library, I really do not know how to solve this problem and build my deployment successfully.

 

Could anybody help me to solve this problem? Any answer/reply is appreciated.

 

Thank you very much in advance!

 

Lijiao

 

Passing Data From Simple User Interface To TestStand Sequence

$
0
0

Hi everyone,

 

I know how to tranfer data from TestStand to the Simple User Interface that comes with Test Stand (using UIMessages) but I am unsure how to transfer data from a control on the Simple UI to TestStand for sequence use.  Is there an efficient way to do this?

 

Thanks so much!

Viewing all 6524 articles
Browse latest View live


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