NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
mwcmwc
Posts: 12
0 Kudos

OutputMessage and Output Pane in TS 4.1

Hi Everyone,

 

Need some help "extracting" what I am posting with the Outputmessage() expression.  This expression will output a message to the Output Pane.  I need to capture the content of Outputmessage() and post it in the TS report or a separate log I can write to.

 

Screen.jpg

 

In the quick sample above I have Outputmessage("What is going on?", "Testing Stuff",0), Is there anyway to extract those items out?  I messed around with the ActiveX API calls and saw there is an Outputmessage and Outputmessages function, but I cannot access the message collection (TS keeps a collection of Outputmessage).

 

I also tried Engine.GetOutputMessages, but get a warning that this is obsolete in TS 4.1 and a warning when trying to dig into the properties:

 

"Warning: Some output messages have been discarded. This application called the obsolete Engine.GetOutputMessages method but did not empty the message collection in response to the UIMsg_OutputMessages event. This behavior is no longer supported as of TestStand 4.1. The message collection has been automatically emptied to prevent an unbounded increase in memory usage. Refer to the help for the UIMsg_OutputMessages event for instructions on how to correctly receive output messages."

 

Regards,

Mike

 

Active Participant
dug9000
Posts: 1,510
0 Kudos

Re: OutputMessage and Output Pane in TS 4.1

The output messages are not intended to be a logging mechanism. Why not just also call your own logging mechanism at the same time you generate the output message? Perhaps create a utility step which does both (i.e. create a step which does both and either make it a step template or a create a step type which does this), or a utility subsequence.

 

Hope this helps,

-Doug

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page