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

Loading the Front Panel of a VI executing in TestStand in a LV SubPanel

$
0
0

Hi,

 

I am trying to load the Front Panel of a VI in a SubPanel when this particular VI is running in TestStand (using LV2017 and TS2016 SP1). 

 

I am using the method shown here : https://forums.ni.com/t5/Example-Programs/Dynamic-LabVIEW-Subpanel-in-a-TestStand-User-Interface/ta-p/3635453, except I am using a UserMessage instead of the Trace UIMessage.

 

My TestStand sequence consists of 2 steps : 

- Statement Step sending the UserMessage. The path to the VI is retrieved and sent to LabVIEW UI by the UserMessage Callback.

- Action step executing the VI I want to show in the SubPanel. 

 

I then use an Open Reference and the Insert VI method of the SubPanel in the LabVIEW UI.

 

The problem is that the Front Panel is loaded in the SubPanel properly, but it is not updating during the execution of the VI (not displaying values in a waveform chart and not updating a boolean indicator). 

 

I also get a similar problem with the example in the link above. The Front Panel of the VI opens in a window and shows in the SubPanel. However, only the Front Panel in the window is being updated.

  

Thank you


Multiple references to the same instrument error

$
0
0

Hi All,

 

Having trouble completing a tutorial on Testand. (Developing Test Programs Using TestStand, Exercise 8:2) 

 

When running the sequence an error appears claiming I am running two instances of the same instrument.

The exercise is supposed to use two separate DMM while the other instruments share while testing multiple UUT.

 

Seems like I have a problem with my DMM.

 

Any ideas?

 

Thanks

Single Engine Multiple UIs

$
0
0

Seemingly straightforward question.  Is it possible (notice I didn't say recommended) to have a single TestStand Engine instance communicating with two different UIs via the sequence engine callbacks (PostUIMessage for example)?

 

Now some background.  My company has an establish custom UI for TestStand with a custom Process model for our testing.  I'm working solely with Single Slot "ATP" style tests right now.  I'm developing an add-on UI for higher level functionality for my customer.  Because of the requirements of our test architecture, I cannot replace our existing UI.  I have my new UI being launched from an asynchronous DLL within my TestStand code.

 

I'd like to be able to register to receive the same UI messages that primary UI is receiving.

 

I'm sure this is NOT recommended, but all I want to know is "will I break TestStand if I do this?"

 

Oh, for kicks and giggles, our existing UI is written in LabWindows/CVI.  Our new UI is written in C#/WPF.

Reading Teststand Result in C#

$
0
0

Hi Friends,

 

I am New to Teststand, I want to reading Teststand result in C# Program. Friends can you please me out of this issue

Programmatically accessing SequenceFilePath of a Sequence Call Step.

$
0
0

Hello, I'm using TestStand via Python and I want to access the File Path of a Sequence Call Step;

I'm using : MainSEQ_ref.GetStep(3,0).Module.SequenceFilePath and it gives me only the File name;

(http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/execution_sequencefilepath_p/)

Example for this step:NIHELP.PNG

 MainSEQ_ref.GetStep(3,0).Module.SequenceFilePath returns : u'Test8000.seq' , not the full path that is below: "H:\TheReviewer\Test8000.seq"

Is there a way to programmticly get the full path of the sequence file?

Thank you.

ExtraPutty TestStand API: ShowPutty parameter

$
0
0

Hello All,

 

I have been evaluating ExtraPutty's TestStand API for the last few days. It seems to work OK. The biggest issue that I have with it is that since I am using it in an automated test sequence I need to limit operator input as well as what windows are displayed. In order to not display my SSH Terminals I am setting the parameter "ShowPutty" to FALSE. The problem is that the terminal window is ALWAYS displayed regardless of what this parameter is set to.

Has anyone seen this issue before?

 

TestStand Version: 2013

ExtraPutty: SnapShot Release 0.29

 

*NOTE: Am not using the ExtraPutty TestStand step types but instead I am making calls to the c++ dll file.

 

Thanks!

-ES

Working with an external SQL database

$
0
0

Hello. First, I have never worked with, or know anything about the TestStand platform...please be gentle.  I have a relatively simple task to accomplish, but have no idea where to start.  The order of operations is as follows:

 

1. Operator scans a barcode (ID)

2. Pass the ID to an external SQL database using a stored procedure call

3. Receive the value returned from the SQL db

4. Flow control based on value returned

 

Seems simple enough, but the TS Sequence construction has me baffled.  How would one use the Open/Close/Data Operation commands to make this happen?  Steps 1 and 4 have been written and function properly.  My hangup is creating the sequence steps to accomplish this.

 

Open/Close Database works, but I cannot write an Open SQL Statement that will work.  Having said that....yes, the SQL db connection is good.  When I use the "Database Viewer" I can query to my hearts content, and the stored procedure call works as expected.  I'm in over my head here...again, I have no idea how to even manage variables or anything else in TS. I am a complete noob, and was asked to add this SQL check to an existing sequence.  Any help appreciated. Thanks!!

Custom Step issues

$
0
0

Dear all,

After going through several relevant topics posted in this forum, at the beginning I do want to know how a custom step works exactly but eventually I found this is an unachievable job.  

So, I create a Demo to verify what I suppose and there are several issues lastly:

1, Why there is no vi configuration in Step Settings Tab as shown in Pic 2.

2, How to sync the config to Step Settings?

3, How to switch to TS’s default style in its step setting Tab because those native parameter can not be quoted in LabVIEW front panel.

 

Please tell me the subtle techniques I missed, thanks.

 

More details about Pic 1,

Arrow 1 shows a callback to create a LV object of lvclass and store it to StationGlobals

Arrow 2 shows the custom step I create;

Arrow 3 shows the window once I click the button Edit.

 

In Demo.zip, Please copy StationGlobals.ini to your TS target folder(mine is C:\ProgramData\National Instruments\TestStand 2016 (64-bit)\Cfg), or create a station global named Instr_lvclass of type Object Reference.

 


Customize teststand tool menu

$
0
0

Hi,

I need to show only the customized tools menu (not default tools menu) in teststand user interface. How to do it.

 

i am using teststand 2016. For operator interface i am using shipped full feature OI.

 

Regards,

Anand

Using a .NET dll through LabVIEW and TestStand

$
0
0

I have my application all programmed and it works beautifully, except:

 

My company uses a merged .NET dll (testset.dll) for all of our calls to instruments.  We also use a custom UI through TestStand to manage all of our test process and results. I'm making calls from TestStand to individual test modules created in LabVIEW that perform the actual tests.

When I run the system without the testset.dll loaded into the Windows 7 GAC, with direct calls to the testset.dll file, everything works fine.

When I add "install" the dll so that it now resides in the GAC and add in the config file to the projects where applicable for the instruments, LabVIEW is happy, no broken VIs. Also if I do an analysis of the sequence(s) in TestStand, it reports no errors and all VIs are all loadable. (can't run it from here though).

When I try to run the system starting from our custom UI, I get errors where ever I try to call the testset.dll:  "... The specified .NET class is not available in LabVIEW."

 

I suspect that I have to add a config file for specifying the correct dll version to use, just like I did for the LabVIEW project, but this time add it to somewhere in the TestStand calls?  Maybe where the sequence file is? Or would it go where the LabVIEW runtime engine is? (I don't so much believe that because then the runtime engine would be limited to that dll only.

 

Any help would be greatly appreciated.

 

Generating report vs model

$
0
0

My test fixture is a 2 up but I can only unload it when both units have completed their test - 1 cover for 2 units.

 

I have a DLL that generate result xml file. That DLL is inserted into the sequentialmodel after the <Model Plugins - Post UUT> step. That is for 1 up test fixture.

 

For my 2 UUT test fixture, which model should I use and where should insert my DLL into that model to get result xml file for each UUT. After being tested the test has to go through my DLL to generate 1 xml file for each test.

 

I am using TestStand 2016

 

Get a sequence file from list of part numbers

$
0
0

I would like to modify the TestStand Simple UI interface so that the operator can choose from a drop down list of part numbers that will then open the appropriate sequence file instead of browsing to open a file.  Is this possible?

Teststand simple userinterface customization for username,loginlogout and timer.

$
0
0

Hi,

i am using teststand 2016 , Labview 2017 and teststand simple user interface for the operator interface.

I need to implement as below . pls guide me on this.

 

1. I am using third party application for authentication, after authentication , i will save user name in station Global.How to show this user name in simple user interface. is it possible to connect station global with Teststand label.

2. The login/logout button of the simple user interface calls the loginlogout sequence of frontendcallback.seq . Is there anyway i can connect login/logout button to my own sequence.

3. Need to implement timer for simple user interface(should show current time or test application start time with date), when i logged in timer should start and stops when application stops.

 

Regards,

Anand

 

Read station global variable from teststand simple user interface code.

$
0
0

Hi,

 

How to read a station global variable from testsstand simple user interface code.

 

sample code would help.

 

Regards,

Anand.

execute particular sequence from sequence file

$
0
0

How to execute particular sequence from sequuence file in teststand user interface.


Configure Sequence Editor to Execute Setup/Cleanup when Single Step is Executed

$
0
0

We have TestStand 2013 installed on several workstations. When a single step is selected and executed by right clicking and selecting 'Run Selected Steps' we observe different behavior on some of the machines. For some installations the Setup and Cleanup section will execute and on other machines only the selected step will execute. The same sequence file is being used on all machines.

 

There must be an option in the Sequence Editor to set this behavior but I have not been able to find it.

Run 10 DUTs with Set Order

$
0
0

Hello everyone,

 

I have the following project. There are 10 DUTs loaded to the test station. It is impossible to have less or more, always 10. The customer has 10 programmers so he can flash all 10 DUTs in parallel. Then he has 5 instruments, so each 2 specific sites have 1 instrument to share (e.g. instrument 1 for sites 1 and 6, instrument 2 for sites 2 and 7... etc.).  So after flashing the test system need to run sites 1 to 5 and after finishing switch to 6 to 10.

I have based my solution on Batch model. I do batch synchronization for 10 to flash then I check test socket number and allow to execute 1 to 5 and stop with while loop 6 to 10. Only after 1 to 5 finishes the I execute 6 to 10. I believe there should be better solution for my system.

Is it possible to make batch synchronization or Rendezvous step to detect the test socket number and synchronize based on it?

How to use Enum data type in teststand 2016?

$
0
0

Hi Everyone

I meet one problem during develop one test sequence using teststand 2016 lately,I want to know how to update the Enum data using teststand API automately,and how to use Enum when it is used as one parameter of subsequence ,I want to see the dropdown button when I called this subsequence.

Anyone can help me?

Parallel threads as Multiple Numeric Limit Test

$
0
0

It is not possible to evaluate a Multiple Numeric Limit Test when using new thread. Look at example Threads
I have made a workaround but it looks not like good code. Look at Threads Workaround

Is there a better way?

Get TestSocket Index in Display Execution Callback

$
0
0

Hello everyone,

 

I am developing custom OI for multi thread test system. I need to display 10 execution views on the interface.

I have found an example available in the forum, but I need to get Test Socket Index to be able correctly assign the Execution Views.

The example I have found on the forum on how to access socket index is giving error for some reason. The screen shot of Display Execution Callback VI is attached. Please help to understand the error.

Viewing all 6528 articles
Browse latest View live


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