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

SQL data base

$
0
0

 

 

SQL data base Teststand Error.PNG

 

Hello All,

 

I am new to the SQL , I configured teststand to MySQL connector version 3.5x as the instrunction I updated in configuration settings.and set the My sql results data base .I am getting the above error .

 

Help in solving the about error .

 

Regards,

Padugur

 

 


Is there a way to get the name of the Main Sequence test running to send back to LabVIEW?

$
0
0

Hi,

I am currently trying to get the name of my Main Sequence tests being run and send the name over to my LabVIEW GUI interface for a custom progress bar. However, I am relatively new to TestStand and I am having some difficulty figuring out how exactly to do this as well as determining the time for each step to run in my Main Sequence.

Running sequence programatically

$
0
0

Hello,

 

I am finding a problem in running sequence file programatically. I referred the example VI (C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\Examples\TestStand API\Executing Sequences Using API\LabVIEW) shipped with TS2014 that runs the sequence through sequence context by invoking TSEngine so the inputs to the VI are seqeunce context, sequence file, process model.

To make my task easier I modified the attached code to make it standalone by running the sequence through TSEngine directly so the inputs to the VI are sequence file, and process model.

 

it works fine when i run as VI but doesn't work when converted into exe.

 

Please let me know if I am doing something wrong or missing something

Thanks in Advance

 

-Vivek

Check for Sequence Running via Model

$
0
0

Hi,

Is there a method for checking which sequence has run if I am editing a Model? I am attempting to use a Model to check for when a Main Sequence test is running based on an expression. It would check when a sub-sequence is called by the main sequence and then get the name of the Main Sequence running once. I am new to teststand and need some help doing this.

 

Thank you

Returning Step Names

$
0
0

Hi,

I am attempting to return Main Sequence Test names in the Main section of the code and ignore any labels, steup and cleanup routine steps in my log. Is there a way to use an expression to do this? I have a current expression that will grab all of the Main Step test names, but will also include labels, setup and cleanup route steps, which I do not need. The expression I am using is RunState.Caller.Main.Step.Name which will grab all of the steps in the Main Sequnce of my interested sequence file.

TestStand 2012 csv result processing

$
0
0

The TestStand 2012 results processing has a ascii text file but no .csv file format. I want to have a simple one line per result in csv format; what is the easiest method of achiving this? Not sure how to do this, maybe edit the existing ascii text file result process somehow? Has anyone achieved this and/or has an example?

 

 

string value test results in default database

$
0
0

Using the default TestStand database, numerical results get stored in the PROP_RESULT.DATA column.

 

Where do results of string value tests get stored?

the attribute of property

$
0
0

Hi,all:

 

     I am a new learner of teststand, and i have some questions confused! There are two ones:

 

1: the property attributes

 

    The help file of TS tells we can creat a attribute of property,such as step or sequence; and i don't know in which condition we can use it ,

 

show me the examples may be better; i was confused about it for long time.

 

2: the attribute named "TestStand Hyperlink"

 

    I find one sample for TDMS, and the attribute named " TestStand Hyperlink",  and i don't know where it define? 


can I use Rendezvous only in sigle pass test mode?

$
0
0

Hello,

 

can I use Rendezvous only in sigle pass test mode? see my example attached, I created a new thread and wait them end use Rendezvous,but not success,pls help check,thanks.

 

How can I execute specific Sequences chained with TestStand API

$
0
0

Hi, I have a sequence file with several subsequences. Is there any way to run a bunch of sub sequences with the TestStand API?

I am building a TestStand User Interface in LabVIEW and this feature would be useful.

In this moment I have a listbox  which is populated with the Subsequences Names of the selected Sequence File but I don't know if there is way to use any Collection and CommandKind to perform the described above. I have only seen the "RunCurrentSequence" Command Kind which let you execute the sequence selected in the Sequences Combobox but is just 1 sequence, I want to be able to use the listbox selections and running all the selected sequences.


Thanks for the help you can give me.

VI not loadable when inserting GetPropertyValue

$
0
0

Hello,

i created a simple dialog in Labview that pops up a window to insert a number that is returned as output and in TestStand set to a StationGlobal.

Now the idea was to readout the current value of this StaionGlobal and preset thevalue of the dialog.

For this i wanted to use the "Get Property Value.vi" and passing addition the SequenceContext to the vi.

 

But now the vi is not runable anymire. After i press reload in testststand for this labview-action its says "Picture Not Available" and a red circle with exclemation mark which says:

 

Unable to load VI withe the Labview RunTime Engline 15.0

The version of the subvie migzt not match the version of the runtime engine ore a vi dependyny migzt be missing

Try using the update vi calls tool with the labview adapter set to labview development system to resolve this issue.

 

What should i do?

 

TestStand 2014 SP1

Labview 2015

 

Thanks

Custom Menu item in Tools menu - Enable Expression

$
0
0

Hi All,

 

I am trying to add a custom menu item into the TestStand >> Tools menu. This menu item should be accessible only during edit-time and not while any executions are running. I want the menu item to be enabled only on the condition that the directory in which the active sequence file is present should also contain an associated file with the same name as the sequence. I tried getting the Active sequence file path with Runstate.SequenceFile.Path and Runstate.InitialSelection.SequenceFile.Path expressions but the menu item is always disabled whenever I click on the Tools menu.

 

The entire expression that I use to check whether this associated file is available or not is this:

FindFile(SearchAndReplace((Split(RunState.SequenceFile.Path,"\\")[GetNumElements(Split(RunState.SequenceFile.Path,"\\"))-1]),".seq",".ini",0,False,-1,False,0),True,"",3,1,False,False)

 

Split(RunState.SequenceFile.Path,"\\") - Splits the entire path with \\ demiliter. The output of the function is an array.

 

Split(RunState.SequenceFile.Path,"\\")[GetNumElements(Split(RunState.SequenceFile.Path,"\\"))-1] - Splits the entire path with \\ delimiter, get the number of elements in this array and indexes the last element. The last element would give the name of the sequence.

 

SearchAndReplace((Split(RunState.SequenceFile.Path,"\\")[GetNumElements(Split(RunState.SequenceFile.Path,"\\"))-1]),".seq",".ini",0,False,-1,False,0) - Searches and replaces the .seq file extension with .ini extension.

 

Finally the Find File function searches for the ini file in the same directory as the sequence.

 

If I put this same expression in a Message popup and convert the result of FindFile to True/False, the result is displayed properly based on the sequence that I put this message popup into.

 

If the expression I have used is not correct, how should the expression be?

 

Thanks,

Saranya

Can I use active directory to validate users?

$
0
0

Hi

 

Is it possible to link Active Directory to Teststand users ?

I would like to do this as it  will allow the user to use their same log in password for the PC.

 

Kind Regards

Shakeel

Error on changing the teststand version from 2014 to 2010 using version selector

$
0
0

Hi All,

 

I am obtaining the following error when I try to change the active version of teststand.

 

Untitled.png 

 

Also I get the same error whenever I launch Teststand 2014. Any inputs in resolving it are welcome. Thanks in advance.

 

Regards,

Prasaanth

TestStand menu, how to show & hide

$
0
0

I have a copy of TestStand where the menu (File, Edit, view, Execut, etc.) is not visible.  How can I make it visible?


testbench@Bob_schor

$
0
0

Please look through this VI if it needs any improvements or changes specifically in report section @Bob_schor@crossrulz.

How to get Socket Time shown in OI in Sequence Editor?

$
0
0

Hello Everyone,

 

Is it possible to get the socket time shown in the default NI Semiconductor Test Operator Interface of NI in Sequence Editor?

OI Socket Time.png

Is there any expression in Sequence Editor that can get this socket time in Operator Interface?

How can I include this Socket Time in the STDF generated by Result Processing in Sequence Editor?

ThanksSTDF Result Processing.png

 

 

How to correctly start / shutdown TestStand engine using API?

$
0
0

I try to restart TestStand engine between 2 sequence file executions. Using the TS API from VB .Net.

 

Steps: Start the TestStand engine -> execute a sequence -> close the engine -> start the engine again -> execute a sequence ....

 

When I want to start the second execution I get the following error:

 

"

Exception thrown: 'System.Runtime.InteropServices.COMException' in RestartEngineTest.exe

Additional information: Operation failed because TestStand Engine was shutdown.

"

 

What would be the correct engine restart procedure?

 

2'nd problem: If I try to force the Garbage Collector

                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()
                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()

 

after Engine.Shutdown(True) complete application hangs "inside" the first GC.Collect().

 

A sample solution is Enclosed.

 

I start the execution with "myTsEngine.NewExecution"

Upon API.UIMessageCodes.UIMsg_EndExecution I release the sequence file and the model.

Upon API.UIMessageCodes.UIMsg_ShutDownComplete I unload all modules and type palletes and call Shutdown(false) followed on second entry by Shutdown(True)

 

 Private Sub StartSequenceExecution(nameOfExistingSequenceFile As String)

        Try
            myTsEngine = New API.Engine()
            myTsEngine.LoadTypePaletteFilesEx()

            sequenceFile = myTsEngine.GetSequenceFileEx(nameOfExistingSequenceFile, 107)
            modelSequenceFile = myTsEngine.GetSequenceFileEx("SequentialModel.seq", 107)

            myExecution = myTsEngine.NewExecution(sequenceFile, "Single Pass", modelSequenceFile, False, 0)
        Catch ex As Exception
            Throw New Exception("TestStand Api Problem!" & vbCrLf & ex.Message)
        End Try
    End Sub

    Public Sub TS_UI_Message_Handler(ByVal aktUImessage As NationalInstruments.TestStand.Interop.API.UIMessage) Handles myTsEngine.UIMessageEvent

        Try
            Select Case aktUImessage.Event

                Case Is = API.UIMessageCodes.UIMsg_EndExecution
                    Try
                        If Not sequenceFile Is Nothing Then

                            If sequenceFile.CanUnload Then
                                myTsEngine.ReleaseSequenceFileEx(sequenceFile, 5)     ' UnloadFile, UnloadFileIfModified
                                sequenceFile = Nothing
                            End If
                        End If

                        If Not modelSequenceFile Is Nothing Then
                            If modelSequenceFile.CanUnload Then
                                myTsEngine.ReleaseSequenceFileEx(modelSequenceFile, 5)     ' UnloadFile, UnloadFileIfModified
                                modelSequenceFile = Nothing
                            End If
                        End If

                        myTsEngine.ShutDown(False)

                    Catch ex As Exception
                        ' ignore
                    End Try

                Case Is = API.UIMessageCodes.UIMsg_ShutDownComplete
                    If Not isFinalShutdown Then
                        myExecution = Nothing
                        myTsEngine.UnloadAllModules()
                        myTsEngine.UnloadTypePaletteFiles()
                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()
                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()
                        myTsEngine.ShutDown(True) ' 2'nd shutdown

                        isFinalShutdown = True
                    Else
                        myTsEngine = Nothing
                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()
                        'GC.Collect()
                        'GC.WaitForPendingFinalizers()
                        MsgBox("First Execution Complete, Starting the second one...", MsgBoxStyle.ApplicationModal Or MsgBoxStyle.Exclamation Or MsgBoxStyle.OkOnly)
                        StartSequenceExecution("Test.seq")
                    End If

                Case Else
                    ' Optional: Do something or not to notify the the user/programmer about unknown messages !
            End Select

            aktUImessage.Acknowledge()
            aktUImessage = Nothing

        Catch ex As Exception
            MsgBox("UIMessageEvent Error: " & ex.Message, MsgBoxStyle.ApplicationModal Or MsgBoxStyle.Exclamation Or MsgBoxStyle.OkOnly)
        Finally
        End Try
    End Sub

Batch model resource management with step order flexibility

$
0
0

Hey, Teststand folks.  What's the best way in Teststand 2014 to do this?  I'm setting up testing 4 UUTs in parallel using the Batch model.  The test sequence has two parts.  2 UUTs at a time can run Part 1.  While 2 UUTs are doing the Part 1 test, I want the other 2 UUTs to do the Part 2 test.  Then when they're done Part 2, wait for Part 1 slots to become available and then run Part 1.  And those UUTs that had run Part 1 first will then run Part 2.

 

Thanks.   -Joe

 

Joe Czapski

Sonos

Boston, Mass.

 

 

Teststand has Detected a Fetal Error !!

$
0
0

an error box called "Teststand has Detected a Fetal Error" accures while the teststand works. And it show up randomly. if we click OK it close the Teststand. Anyone saw thiss ?? and How can I solve it?

Viewing all 6589 articles
Browse latest View live


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