NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Show TestStand report in a custom LabVIEW OI

Hello world!

I'm a newbie who's trying to develope a custom LabVIEW OI which should allow user to fully interact with TestStand.

 

After succeeding in allowing user to select a sequence and run it, i stopped the developement while trying to show the generated report in a TestStand ReportView control.

 

Does anyone can tell me which TestStand API methods or properties i should use or can attach a working example?

 

Tnks!

0 Kudos
Message 1 of 5
(3,925 Views)

Hi,

 

TestStand actually ships with a couple example LabVIEW OIs, which I would even highly recommend using as a starting point, especially if you are new to TestStand.

 

I would look at the Simple LabVIEW UI, located at <Program Files>/TestStand x.x/UserInterfaces/Simple/LabVIEW. This example uses the Execution View Manager to display the report.

0 Kudos
Message 2 of 5
(3,911 Views)

Hi CorbinH and thanks for the reply.

 

I know about the existence of few complete and working OI examples shipped together with TestStand and I already use the ExecutionView Manager in my project.

 

I decided to start a completely new project just to make practice with LabVIEW and TestStand. Obviously, when I took a look to them, shipped examples was really useful.

 

Now, I don't understand the way the reporting is managed in the simple and full OI examples. I know that, when an execution finishes, the EndExecution event is fired. What I think to do is to intercept this event and manage it as a case in an event case structure. Inside the case I would like to insert methods and properties which are necessary to show the report.

 

Plz, help!

0 Kudos
Message 3 of 5
(3,898 Views)

aRCo,

 

The EndExecution event that you are catching is really a UIMessage under the hood.  What I recommend you do is take a look at the UIMessageCodes page in the TestStand help.  This page lists all the events that the TestStand engine and built in process models fire during the course of their executions.

 

Many of them have analogous Application, ExecutionView, or SequenceView Manager events.

 

I think you'd be most interested in the following:

UIMsg_DisplayReport–(Value: 29) Post this message when you want the user interface to display the current contents of the execution report.

Which can be accessed by using the ApplicationManager's or ExecutionViewManager's DisplayReport event.

Message Edited by Josh W. on 08-31-2009 03:54 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 4 of 5
(3,875 Views)

I really can't figure out how to solve this problem.

 

I attach an archive containing those VIs which constitute my application hoping that someone could make the right modifications. I use LabVIEW 8.6 and TestStand 4.1.

 

Tnks.

0 Kudos
Message 5 of 5
(3,857 Views)