LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Output on LabVIEW the TestStand step results

Hi,

I'm building on LabVIEW 8.5 a simple TestStand User Interface.

My sequences return some values but I don't know how to output them on LabVIEW.

I was thinking of a table to store the results.

Any hints on how I'm able to do so?

I apreciate all the help.

Thanks in advance.

 

Regards,

 

Daniel Coelho

 

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 1 of 6
(3,396 Views)

You might try posting this in the TestStand group.

 

But anyway.. 

 

Look at the "Full UI - Top-Level VI.vi" that was shipped with TestStand.

Look for the "Execution View" indicator. That is the one that displays the results of each step as the sequence runs.

 

Are you talking about the final results of the test (Pass or Fail) then that is handled in the PostUUT Call back  

 

Omar

 

0 Kudos
Message 2 of 6
(3,392 Views)

Thank you for your reply.

I posted this here because and doing it on LabVIEW, but maybe I shouldn't....

I will look into that example.

Anyway, What I want is to output the results of each step, for instance, if a step calls a DLL and the DLL returns 32 I want to display 32.

Or if I make a Message Output on my sequence II want do display that message output.

Hope I was clear.

 

Regards,

 

Daniel Coelho

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 3 of 6
(3,389 Views)

Use the TesStand ExecutionView Manager available in the TestStand tool pallet of LabVIEW and the Execution View. Then when you call our test code (dll, LabVIEW, CVI or what ever) and the return values are returned to the step.Result container based on the type of step. The ExecutionView Manager will automatically display the return value in the Execution View indicator on front panel, if it is a string, a number or a Boolean or etc.

 

Look at "C:\Program Files\National Instruments\TestStand 4.1\UserInterfaces\Simple\LabVIEW" as a starting point.

Notice that there is not any code that reads the return value from the test steps and displays it. The TestStand Engine automatically does it for you. Using the ExecutionView Manager and the Execution View, your LabVIEW user interface will not know when a test step is run or what the return values are without setting up events to trap UI messages from the TestStand Engine.

 

If all you need is to see the return value and results this is the way to go.

 

Omar 

Message 4 of 6
(3,370 Views)

I'm a bit lost.

I looked into that Simple User Interface and I didn't understand how the Step.Result is displayed.

Maybe I'm a bit confused.

I've attached a printscreen of a sequence on my TestStand as an example of what I'd like to happen on my UI.

The message "Teste" is what I'd like to be displyed on my UI.

Could you explain me again how to do it?

 

Thank you.

 

Daniel Coelho

 

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 5 of 6
(3,342 Views)

You are right!

 

There is not any code in the user interface that displays the step results.

That is all done by the TestStand engine and the ExecutionView Manager

Once you put an Execution View activeX indicator on your front panel and pass the reference to it to the TestStand engine. The TestStand engine writes the return results automatically to the Execution View indicator without any action needed by the user interface.

 

If you want to handle that yourself then you need to trap UI messages that the TestStand engine sends out.

Or set up a Post Step engine callback function. 

 

If all you need is to watch the results fly by while the test is running use the Execution View.

If you need to do more with the results look into UI messages and engine callbacks

 

Again this is more a TestStand question more than it is a LabVIEW question. You will get better advice if you post this to the TestStand board.

 

Omar

 

Message 6 of 6
(3,334 Views)