NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple User Interface - Test UUTs bug?

Hello,

When I execute a sequence (I'm using the NI example computer.seq) from the Simple operator interface (enclosed with TestStand 3.0) using the Test UUTs entry point, I notice that the previous executions cannot be accessed using the Executions pull down string control located near the top of the operator interface. When I execute the same sequence from the same operator interface using the Single Pass entry point, I can access all of the previous sequence executions from the Executions control. I see the same "problem" with both the CVI and LabView simple operator interfaces.
So my problem is that I want to use the Test UUTs entry point but also have the ability to look up previous executions using the Executions control. Is there a modification I can make to this interface (I am using the CVI example) to get it to operate the way I want it too?
Thank you in advance for your time and response.

Thanx,
Jim
0 Kudos
Message 1 of 9
(4,301 Views)
Hello Jim,

I have ran the Simple LabVIEW Operator Interface that ships with TestStand 3.0 and do not have the same problem. I open a sequencefile. I run an execution through the TestUUT entry point. Then I start a second one. I can pull down the execution listbox and toggle between the two executions (whether they are running or have completed). I am attaching a zip file with the executable as well as a screen shot of the OI that shows the execution listbox being pulled down and displaying the two TestUUT executions. If this is not what you meant when you said that you cannot access the previous sequence executions, please let me know. Take care!

Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 9
(4,279 Views)
Hi Aaron,

Thank you for responding to my question. Your screen capture is exactly what I am talking about. I did try running your enclosed simple operatlor interface and I still got the same results where the Exection window is only showing me the last execution and I cannot access any of the previous executions (they are not shown in the Execution pull down combo control). Is there perhaps a setting in the Sequence Editor environment (i.e. Report Options..., etc.) that I might have setup differently on my PC than on yours. I did notice from your screen capture that you are running WIndows XP. I am running Windows 2000. Is it possible that this difference with the operating systems might cause this? Again this works fine when I run from the Single Pass entry point, but I really wat to run from the Test UUTs entry point AND have the capability to look at previous test executions.

Please let me know if there is something else you would liek me to look at or try.

Thanks again for your time and assistance.

Regards,
Jim
0 Kudos
Message 3 of 9
(4,274 Views)
Hi Jim,

Just to be certain, I ghosted a machine with Windows 2K SP2 and I still did not have any trouble. I cannot think of any possible setting that would restrict only TestUUT executions and not Single Pass executions from displaying in the execution listbox. But just to be safe, I would recommend deleting the files any INI files. Doing this will reset the station and model options to their default behavior. Many are located in the \Cfg directory. Also, OperatorInterface.ini is located in \Documents and Settings\\Local Settings\Application Data. If that does not work, you may want to try simply uninstalling and reinstalling TestStand. I will look into this matter further for you and let you know what I discover.

Regards,

Aaron B.
National Instruments
0 Kudos
Message 4 of 9
(4,262 Views)
Just to be certain there is no misunderstanding I want to state that Test UUTs tests multiple uuts within a single execution. After each UUT completes, the same execution continues to run, so you won't see a separate entry in the execution ring for each UUT.
0 Kudos
Message 5 of 9
(4,259 Views)
James and Aaron,

Thank you for taking the time to respond to my question.

James, I agree with your response, however I was a little confused as to how Aaron got 2 UUT serial numbers to appear in the Execution control, as shown in the screen shot enclosed in Aaron's first response (since this is what I can do when running form Single Pass but not from Test UUTs). I am now assuming that Aaron ran UUT serial number 1, then stopped the test at the "Next UUT" message box. He then probably pressed Test UUTs to start another test on UUT serial number 2. Aaron, is this a correct assumption on my part?

If so, then there is no problem, just a little confusion on my part. However this still does not solve my overall problem.

My problem is that I was hoping to use the Test UUTs entry point, as this sequence allows me to do some "one time" initialization of my test equipment prior to the start of testing any UUTs. In addition to this "one time" initialization, I also wanted each UUT execution to be viewable in the user interface, AND each UUT to have its own test report (HTML) file, like I can get when running from the Single Pass entry point. Thus, it looks like my only solution to this problem is to use the Single Pass entry point so I can get the viewable executions and individual report files (also viewable on the UI), and modify the Single Pass sequence with a "Pre-ProcessSetup" callback that is only executed when the very first UUT is tested (i.e. UUT test count = 0).

Any input on a better way to resolve this problem is much appreciated.

Again, thank you for your assistance.

Thanx,
Jim
0 Kudos
Message 6 of 9
(4,251 Views)
Hello Jim,

Sorry for the confusion. To answer your new question: yes, there is a much better way to accomplish your goal. For one thing, if you want an initialization routine that runs before the first UUT (and only the first), you can use the PreUUTLoop model callback. By default, this is empty and gets called by the Process Model before the loop in which UUTs are processed.

The next thing you want to do is to have a separate report for each UUT. By default, the Operator (and Sequence Editor) only allow you to display one report per execution. So you could modify your Process Model such that, instead of running each UUT in the same execution, you programmatically create a new execution for each one.

There is another way that is more difficult, but (I think) a lot more elegant. In the Sequence Editor, modify your reporting options by going to "configure >> Report Options..." and click on the "Report File Pathname" tab. Enable the option, "New UUT Report File for Each UUT". The bottom of the dialog box will show you the convention for naming reports. But this is only half of what you need to do. Even if you have a distinct report for each UUT, only the latest one will be the active report of the execution. Therefore, you will need to add your own programming to be able to display the other ones. For instance, if you are using html reports (the most common type), you can embed a "Microsoft Web Browser" ActiveX control into the front panel using an "ActiveX Container" LabVIEW control (in the Containers palette). You can programmatically invoke the method, "Navigate". This method has as an input the URL of the html page you would like to display (give it the path to the file on your computer). You will need to add user controls to allow the user to choose which UUT (s)he would like to have displayed, capture that event, and then display the appropriate html page.

I created a sample client and ran TestUUTs on it to generate 3 separate reports (on for each serial number). Then I created a VI in LabVIEW that allows the user to select a serial number and programmatically updates an embedded web browser on the front panel with the appropriate html report. You will have to modify the part of this VI that constructs the URL string to match your particular application. Please let me know if you have any questions about this example.

Either way, you are going to have to do some coding. I hope that this information is helpful to you. Take care and good luck!


Regards,

Aaron B.
National Instruments
0 Kudos
Message 7 of 9
(4,238 Views)
Aaron,

Thanks you for your response. I will have to take a close look at this approach. It looks like the sequence file you sent me was created in TS 3.1. I am running TS 3.0 and the file won't open in the TS 3.0 sequence editor (I'm getting a warning that the file was created in a later version of TestStand). Can I get a TS 3.0 compatible file?

Thank you,
Jim
0 Kudos
Message 8 of 9
(4,228 Views)
Hello Jim,

The sequencefile is irrelevant. All I made it for was to generate the reports. There is absolutely no useful information in it. There is just the one MainSequence with a single message pop-up step in the Main Step Group. And the LabVIEW VI should be able to run regardless of engine version. Take care!

Regards,

Aaron B.
National Instruments
0 Kudos
Message 9 of 9
(4,215 Views)