Clearing the TS Output pane

Hi all,
I'm posting output messages into the Output pane of TestStand using statements like this:
OutputMessage( NameOf(RunState.Step), "Statement Step",0, tsDarkGreen,"statement.ico")
So far all is good.
My problem is ... after completing a full test cycle where the Output pane now contains maybe 20 messages - how do I clear this ready for the next unit for test? If I just leave this, it will just keep appending!
I have looked here: C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.1.1\Examples\OutputMessages
and see: 'Locals.OutputMessage = Nothing' in the example .seq but this is only for active x mesage posting?
Nothing to this effect in the manuals!
Any help appreciated
Andy

Thanks Ray, I tried your sugestion but unfortunatly it didn't clear the ouput pane only the engine - thanks anyway for the good sugestion.
It seems the output message storage and the output message display/storage are
separate and so two clears are required to fulfil my request to clear the
output message system and output pane. This was after replies from NI support.
For anyone else wanting to know about this NI support said this:
"it seems that the OutputMessages.Clear method does indeed clear the collection of output
messages from the collection in the teststand engine.
I proved this by using an OutputMessages.count call before and after my clear
method.
It seems that the problem here is that they have already been posted from the
collection in the engine to the output pane. There appears to be no physical
link between the engine and the pane so clearing the collection doesn't clear
the pane.
It seems that we need a handle to the output pane, hopefully then we should be
able to find a method that will clear the messages that are already posted.
I must admit, I can't see any obvious way to achieve this at the moment. I will
raise an escalation with our teststand tech support team in the USAto see what
they can suggest.
I am afraid its not good news. It is not possible to programmatically clear the output messages pane in the TestStand environment . I was hoping we would be able to get a handle to the output pane and then call a method to clear it, but this functionality is not available.
I will file a corrective action request with the research and development department, in the hope they may add this functionality in future TestStand releases.
For the moment, it seems that you only have a couple of options,
The first is to allow the debug window to collect all of the information (even if we periodically clear the collection from the TestStand engine). You could add few extra messages or spaces to ensure there is a break between messages associated with different runs,
The other option would be to produce a separate user interface to which we can post messages (and remove them) rather than using the outputmessage functions.
I am sorry that it has taken so long to get to the bottom of this, I was really hoping that we would be able to find a suitable method of clearing the pane."
So there you have it - the Output pane cannot be programatically cleared! It does seem strange to me as TS is promoted as the most felexible adaptable customisable product ever and generaly it is. I guess occasionaly the odd item gets overlooked?

Similar Messages

  • Auto-clear previous script output on running next command

    Hi
    Is there a way to auto-clear the previous script output when i run the next sql? Thanks
    Rgds
    Ung

    As for now, you may manually use Clear button on it.
    Out of my curiosity, why would you need to automatically clear the previous output?
    Here is another consideration, if your statement contains error, would you still want it to be automatically erased?
    IMO, keeping the previous output is really preferable.
    Please notice there are two ways of executing command, using F9 (execute) and F5 (run script). Both of them are reported under Script Output tab.
    Imagine after executing update or delete statement followed by commit, currently you may still see the information on inflicted record instead of having the script output only containing "commited".
    Or... you execute many updates, and still can see the whole count of updated records, instead of getting the last one only.
    As for now, I am very disagree with this feature.
    Regards,
    Buntoro

  • Is There a Way to Clear the Screen ???

    I am building a Class that is text (command line) based. Is there anyway to clear the screen (output) in such a class.
    Similar to what CLS does in DOS...

    See my response here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=317191

  • Clearing of ALV output is not happening in one side of the output.

    Hi All,
    I have created a simple upload program and using a Post button I am posting the Material Document. I have uploaded the file, I am using a ALV splitter to display the output ( Line Item in left panel and Message log in the right panel).
    If I upload another Excel file on the same screen, and click on 'Upload' button, left panel is getting refreshed with new set of line items whereas in the Right Panel Message Log details of First uploaded file is present, it is not getting refreshed.
    I used Free(), Refresh and Refresh_Table_dsiplay keywords to clear it, but its not working.
    In debug mode, If I see the internal table which is used to store the Message Log Details is empty, but the message is still present in the ALV output for newly uploaded file.
    Kindly give your valuable inputs.
    Thanks & Regards,
    Karthikeyan G.

    Hello Karthikeyan G,
    have you tried to cl_gui_cfw=>flush after your Refresh_Table_Display?
    Also,when you write ALV splitter, did you use easy-splitter or the regular splitter container?
    You ran the methods against the correct instance, right
    Hope that helps,
    Frank.

  • Trying to use headphones to watch a show online...  sound still comes out of the internal speakers, not through my headphones.. i used help, said to go to sound preferences and choose headphones from the output pane, but it doesn't list headphones

    trying to use headphones to watch a show online...  sound still comes out of the internal speakers, not through my headphones.. i used help, said to go to sound preferences and choose headphones from the output pane, but it doesn't list headphones

    trying to do this on a macbook pro...please help

  • Clear the Browser cache while Outputting PDFs

    Hi,
    I am using Servlet to output a PDF (Streams), i am facing Browser cache problem in IE
    since i am setting Content type to PDF as follows...
    response.setContentType("application/pdf")
    i could not able to use follwoing Clear the Browser Cache
    response.setHeader("pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Cache-Control", "no-store");
    response.setDateHeader("Expires", 0);
    the above code is not working fine in Netscape but not in IE.
    Can any one help me out in this.
    Regards
    SAM

    Hi,
    I have a problem with pdf file also, everything working fine in IE and
    netscape, but when I tried the streaming of pDF document from my
    servlet in response to a request from Opera browser it failed.
    the url may give some idea,
    http://localhost:8080/pdf/pdfdownload?PDF_FILE=abc.pdf
    here pdfdownload is my servlet, and code I used to stream like following
    public service(HttpServletRequest req,HttpServletResponse)
    ServletContext sc=getServletContext();
    String mimeType=sc.getMimeType((String)
    req.getParameter("PDF_FILE"));
    res.setContentType(mimeType);
    File pdf=new File((String)req.getParameter("PDF_FILE"));
    res.setContentLength((int)pdf.length());
    InputStream in=new FileInputStream(pdf);
    OutputStream os=res.getoutputStream();
    byte[] buf=new byte[1024];
    int count=0;
    while(in.available>0)
    count=in.read(buf);
    os.write(buf,0,count);
    the detailed code kept out for simplicity, but the idea is pretty
    much is this.
    Now, opera opening the stream for a file name pdfdownload and
    storing locally and then opening my acrobat reader, the second
    time if called it trying to create another file by name
    pdfdownload (1)? xxxx where ? is an unknown character, this is
    where it's failing, unable to create the file so failing to open
    the pdf file. what best process would be to follow in servlet so
    the streaming works in all browser, I have seen many link in sun
    sites, opening up pdf but it seems they all are stream, and my
    opera can identify their size and file name distinctly and saving
    them accordingly, any solution ???
    thanks
    Jishu

  • How can I get sound on my MacBook Air after installation of Lion? "No output devices found" on the system preferences pane of my MacBook Air.

    Since installing Lion on my MacBook Air, I get no sound and ITunes playback doesn't move. The Sound Preference pane states "No output devices found." The Bluetooth connection to a WiFi speaker works, so it must be a software problem. Anyone?

    For sound, try the audio output port and connecting to the RCA  audio input ports on your Pioneer receiver.  Use something like this:
    http://eshop.macsales.com/item/OWC/PODCONNECTOR/
    Ciao.

  • The ToC node is not getting selected although the help result pane displays the correct help page

    I have followed steps given below for a merged project system:-
    1.  I created 3 projects Module_1 and Module_2.
    2. Created the CHM output for the above 2 projects.
    3.  Created a Main project.
    4.  Merged the above 2 CHM in the project.
    5.  Created a new window and added Main.hhc in the TOC option under advance properties.
    6. Generated html output for entire project Main.chm.
    7. Decompile the ‘Main.chm’ and extracted the ToC file ‘Main.hhc’.
    8. For each module project, imported ‘Main.hhc’ as a Baggage File, created window definitions same as Main project and with reference to ‘Main.hhc’.
    9. Again generated html output for all the modules and copied both the CHM at the same place.
    10. Now regardless of my entry point I am able to see entire ToC.
    Issue: When I open Module_1.chm, the chm is displayed as follows, but Main book is highlighted instead of module 2 Book. As I have selected both the options, i.e. Auto-synchronize ToC and Always Show Selection option (when generating chm), Module 1 book should get selected.
    Is there a way to control the selection in the LHS pane?  I am working on a project which has 15 module chms and the chms are integrated with the application. When I press F1 on a module, the default topic is getting displayed and the respective module is not selected in the LHS pane.
    Best regards,
    /Vikas

    I have followed steps given below for a merged project system:-
    1.  I created 3 projects Module_1 and Module_2.
    2. Created the CHM output for the above 2 projects.
    3.  Created a Main project.
    4.  Merged the above 2 CHM in the project.
    5.  Created a new window and added Main.hhc in the TOC option under advance properties.
    6. Generated html output for entire project Main.chm.
    7. Decompile the ‘Main.chm’ and extracted the ToC file ‘Main.hhc’.
    8. For each module project, imported ‘Main.hhc’ as a Baggage File, created window definitions same as Main project and with reference to ‘Main.hhc’.
    9. Again generated html output for all the modules and copied both the CHM at the same place.
    10. Now regardless of my entry point I am able to see entire ToC.
    Issue: When I open Module_1.chm, the chm is displayed as follows, but Main book is highlighted instead of module 2 Book. As I have selected both the options, i.e. Auto-synchronize ToC and Always Show Selection option (when generating chm), Module 1 book should get selected.
    Is there a way to control the selection in the LHS pane?  I am working on a project which has 15 module chms and the chms are integrated with the application. When I press F1 on a module, the default topic is getting displayed and the respective module is not selected in the LHS pane.
    Best regards,
    /Vikas

  • Item text is not appearing in the print output through IDOC?

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date  the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
        idoc_data-segnam = 'E1BPMEPOTEXT'.
        e1bpmepotext-po_item = Po line item number .
        e1bpmepotext-text_id = txtid.
        e1bpmepotext-text_form = textform.
        e1bpmepotext-text_line = line item text .
        idoc_data-sdata = e1bpmepotext.
        APPEND idoc_data.
        CLEAR idoc_data.
        CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi Venkatesh,
    Check the condition record in transaction NACE. Whether the print output field is present in the condition record.
    Regards,
    Gajendra.

  • Delayed Payment charges and Arrears in the Invoice output

    Hi,
    can we show Delayed Payment charges and Arrears in the Invoice output in case of SD invoice. From where can i take those. suggest.

    Hi,
    Please check whether the SMARTFORM/SAP SCRIPT  was created in the DE login langage, if so then you have to maintain the Language conversion using SE63 transaction
    Goto SE63 and in that transaction you have option to convert the TEXT to different langage.
    Use transaction SE63 (translations). From the menu select:
    Translation - Logntexts - Sapscript - Forms
    From this point on you can translate both the descriptions and the
    window texts. This transaction also checks if you don't forget to
    translate a part of the script.
    Hope it is clear
    cheers,
    santosh

  • How Do I delete a device in the sound output preference?

    Hello,
    I paired a bluetooth headset with my G4 17". I've since lost the headset, and can't seem to figure out how to delete it from the sound preference pane. I have deleted it from the bluetooth menu, but it still shows up in the sound preference.
    I'm trying to pair a Logitec bluetooth headphones with my mac. Logitech has a support page on this one
    http://logitech-en-amr.custhelp.com/cgi-bin/logitechen_amr.cfg/php/enduser/std_adp.php?p_faqid=1874&p_created=1103566606&p_sid=eILBn Cei&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MTk3JnBf cHJvZHM9JnBfY2F0cz0mcF9wdj0mcF9jdj0mcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1ibHVldG9vdGgg d2l0aCBtYWM*&p_li=&ptopview=1
    It seems to work, but then when I go to the sound preference pane, it does not show up as an option for output... only the old bluetooth palm treo headset shows up.
    how do I delete this, or trash the sound preferences? Any help in getting this solution to work is greatly appreciated.
    thanks
    Ethan-

    With app open
    bottom right list icon, click on that
    list of cities comes up
    swipe left on city to delete and delete icon shows up

  • How to clear the text in the Text Editor

    Hi all,
    I created a Text editor and also i am having language field in the screen.
    whenever i change the language auomatically the text has to change when the text exists for that
    language.
    this is working fine, but when the Text exist , the text editor should be blank.
    But it is carrying the Previous editor text itself into it .
    How to clear the text in the Editor.
    Regards,
    Madhavi

    Hello Madhavi
    The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
    *& Report  ZUS_SDN_TEXTEDIT_CONTROL
    *& Thread: how to clear the text in the Text Editor
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
    *& By default the itab GT_OUTTAB contains texts in DE and EN.
    *& To switch the language directly enter into the command window:
    *& LANGU=DE, LANGU=EN or LANGU=FR
    REPORT  zus_sdn_textedit_control.
    TYPE-POOLS: abap.
    TYPES: ty_t_text     TYPE TABLE OF as4text
                         WITH DEFAULT KEY.
    TYPES: BEGIN OF ty_s_outtab.
    TYPES: language TYPE spras.
    TYPES: text     TYPE ty_t_text.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                          WITH DEFAULT KEY.
    DATA: gt_outtab       TYPE ty_t_outtab,
          gs_outtab       TYPE ty_s_outtab.
    DATA: gd_language     TYPE spras.
    DATA: go_docking      TYPE REF TO cl_gui_docking_container,
          go_textedit     TYPE REF TO cl_gui_textedit.
    DATA: gd_okcode       TYPE ui_func,
          gd_repid        TYPE syst-repid.
    START-OF-SELECTION.
      PERFORM fill_texts.
      gd_language = syst-langu.
      PERFORM init_controls.
    * Link the docking container to the target dynpro
      gd_repid  = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM set_text_editor.
    * NOTE: dynpro does not contain any elements
      "       ok-code => GD_OKCODE
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      TRANSLATE gd_okcode TO UPPER CASE.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'LANGU=DE' OR
             'LANGU=EN' OR
             'LANGU=FR'.
          PERFORM get_text_editor.
          SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
          PERFORM set_text_editor.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  FILL_TEXTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_texts .
    * define local data
      DATA: ld_string   TYPE string.
      gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
      ld_string = 'Good morning'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
      ld_string = 'Guten Morgen'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
      ld_string = space.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
    ENDFORM.                    " FILL_TEXTS
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
    *      repid                       =
    *      dynnr                       =
    *      side                        = dock_at_left
    *      extension                   = 50
    *      style                       =
    *      lifetime                    = lifetime_default
    *      caption                     =
    *      metric                      = 0
          ratio                       = 90
    *      no_autodef_progid_dynnr     =
    *      name                        =
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_textedit
        EXPORTING
    *      max_number_chars       =
    *      style                  = 0
    *      wordwrap_mode          = wordwrap_at_windowborder
    *      wordwrap_position      = -1
    *      wordwrap_to_linebreak_mode = false
    *      filedrop_mode          = dropfile_event_off
          parent                 = go_docking
    *      lifetime               =
    *      name                   =
        EXCEPTIONS
          error_cntl_create      = 1
          error_cntl_init        = 2
          error_cntl_link        = 3
          error_dp_create        = 4
          gui_type_not_supported = 5
          OTHERS                 = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  SET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_text_editor .
      BREAK-POINT.
      CLEAR: gs_outtab.
      READ TABLE gt_outtab INTO gs_outtab
           WITH KEY language = gd_language.
      CALL METHOD go_textedit->set_text_as_stream
        EXPORTING
          text            = gs_outtab-text
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SET_TEXT_EDITOR
    *&      Form  GET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_text_editor .
      CLEAR: gs_outtab.
      CALL METHOD go_textedit->get_text_as_stream
        EXPORTING
          only_when_modified     = cl_gui_textedit=>true
        IMPORTING
          text                   = gs_outtab-text
    *      is_modified            =
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      MODIFY gt_outtab FROM gs_outtab
        TRANSPORTING text
        WHERE ( language = gd_language ).
    ENDFORM.                    " GET_TEXT_EDITOR
    Regards
      Uwe

  • Is there anywhere where Apple describes the function and use of every field and popup and checkbox in the email setup "panes"???

    So you call up an account in email
    Account Information is selecgted in the 3-choice menu-bar/button (what is that thing called, anyway? An "inspector"? (frown).
    Then check "enable this account"--is selectable
    Then Account type: iCloud IMAP or example--this is NOT selectable.
    Then "Description field" What's it for, where does it show up, especially if it shows up in other "related" or "integrated" programs?
    Alias popup: What's this for? How do you use it. What approaches, strategies, effects might one employ?
    Email address is pretty straight forward--but see "user.name" in the "server sub-box/sub-pane" below.
    Full Name:  What full name? Where does it appear in use? I cannot access it from the pane/panel, so how do I set it, or who/what sets it?
    Outgoing mail server (SMTP): OK, here's a popup that isn't congruent with "account type" in the first sub-pane. Or is IMAP only an extroverted function/setting, and (SMTP) is a introverted one (IMAP for outbound, SMTP for inbound)?
    Now comes Confusion: Outgoing Mail Server popup menu, which leads you off to a wholenother pane that lets you create new/delete old incoming server names.
    There's a Description (what's that for, what does it do?  Ditto Server name--I get than's something like smtp.ISP.Com or IMAP.ISP.com). You can set those fields in the + menu Account Information Pane, with its blank text fields. And you can also "double-click to enter" that field in the list itself. Why is that?And then I can select Advanced, and get another batch of checkboxes, fields, and popups.
    But I left the Account Information pane before asking, What is this Thread-Lock Stitching Certificate thing? (Or is that Transport Layer Secrecy Sertificate, what?  None is displaying now, but if I popup what's beneath it a humongously long "ID" string, which I take to be, what, my Apple ID? A public key/ provate key encryption string/key? How do I use it if I'm trying to keep the National Surveillance Agency from eavesdropping, "in the clear," my every blessed keystroke, "phrase-stroke" (think VoIP), and if I use the thing, can the president just press a button and send a drone to blow me off the planet (and anyone near me at the time--always great fun for friends and family)?
    And never mind router and FiOS, etc., modem settings. and the Network settings outside of email....
    I guess my bottom line is, the user is presented with a rich smorgasbord of significant choices by all of the panes and panels, etc., on the mac, iMac, iPad-Phone-Watch real soon now, mac pro, macbook pro, etc.  But the specific description of the proper use of these description/instruction on their use and function is impoverished.  I think manuals used to handle some of these issues. But where are the manuals? Or am I just so overwhelmed by the complexity of what was once a simple user interface that I can't see pointers (in light grey type on lighter grey backgrounds--what the heck is wrong with black type, I'd like to know!) staring me in the phiz. Oh, help.

    Hi Cff7dxp,
    I am glad to hear that your issue has been resolved from the provided troubleshooting steps. Please feel free to post in Lenovo Community Forums if you have any further queries!
    Did someone help you today? Press the star on the left to thank them with a Kudo’s!
    Cheers!
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How do you clear the chart in an AI Waveform Scan VI upon program start?

    I am using a waveform scan vi in a program. The output of the vi is set to "Waveform". What I want to do is have the program automaticly clear the waveform chart each time the program starts. Currently I must start the program, right click on the chart and select clear. I have attempted to use the chart history property node, which I assumed is the correct path to take but so far my attempts have been unsuccessful.

    Ahhh, waveforms... These got better in LV 7 I hear.
    Will this do it?
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    Problem_example.vi ‏41 KB

  • How to download the report output  into PDF format

    Hi friedns
    from the report output when user clicks download button
    it has to download to PDF format
    how to do this
    thanks in advance
    venu

    hi venu,
    check this sample code
    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to
    PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
    create PDF files.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant. Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
    tsp01.
    *-- STRUCTURES
    data:
    mstr_print_parms like pri_params,
    mc_valid(1) type c,
    mi_bytecount type i,
    mi_length type i,
    mi_rqident like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
    mtab_pdf like tline occurs 0 with header line,
    mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
    p_repid like sy-repid, " Report to execute
    p_linsz like sy-linsz default 132, " Line size
    p_paart like sy-paart default 'X_65_132'. " Paper Format
    start-of-selection.
    concatenate 'c:\'
    p_repid
    '.pdf'
    into mc_filename.
    *-- Setup the Print Parmaters
    call function 'GET_PRINT_PARAMETERS'
    exporting
    authority= space
    copies = '1'
    cover_page = space
    data_set = space
    department = space
    destination = space
    expiration = '1'
    immediately = space
    in_archive_parameters = space
    in_parameters = space
    layout = space
    mode = space
    new_list_id = 'X'
    no_dialog= 'X'
    user = sy-uname
    importing
    out_parameters = mstr_print_parms
    valid = mc_valid
    exceptions
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    others = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
    if mstr_print_parms-pdest = space.
    mstr_print_parms-pdest = 'LOCL'.
    endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
    mstr_print_parms-linsz = p_linsz.
    mstr_print_parms-paart = p_paart.
    submit (p_repid) to sap-spool without spool dynpro
    spool parameters mstr_print_parms
    via selection-screen
    and return.
    *-- Find out what the spool number is that was just created
    perform get_spool_number using sy-repid
    sy-uname
    changing mi_rqident.
    *-- Convert Spool to PDF
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
    src_spoolid= mi_rqident
    no_dialog = space
    dst_device = mstr_print_parms-pdest
    importing
    pdf_bytecount = mi_bytecount
    tables
    pdf = mtab_pdf
    exceptions
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11
    others = 12.
    call function 'DOWNLOAD'
    exporting
    bin_filesize = mi_bytecount
    filename = mc_filename
    filetype = 'BIN'
    importing
    act_filename = mc_filename
    tables
    data_tab = mtab_pdf.
    FORM get_spool_number *
    Get the most recent spool created by user/report *
    --> F_REPID *
    --> F_UNAME *
    --> F_RQIDENT *
    form get_spool_number using f_repid
    f_uname
    changing f_rqident.
    data:
    lc_rq2name like tsp01-rq2name.
    concatenate f_repid+0(8)
    f_uname+0(3)
    into lc_rq2name separated by '_'.
    select * from tsp01 where rq2name = lc_rq2name
    order by rqcretime descending.
    f_rqident = tsp01-rqident.
    exit.
    endselect.
    if sy-subrc ne 0.
    clear f_rqident.
    endif.
    endform." get_spool_number
    Regards,
    Naveen

Maybe you are looking for

  • Fields missing in Characteristic Relationship

    Hi Experts, I want to derive Currency Key from Company code using Characteristic Relationship. I am using 'With Derivation' and master data attributes. But in the source fields I see only two fields Cost Center and Controlling Area. Not sure why I am

  • Should I change the pricing procedure in SD ?

    Hhello we are running sales orders with a certain pricing procedure now for a long time. There are a lot of change requests for this pricing procedure, including structural changes like new sums and changes of positioning of a conditon type within th

  • Lost events bug in kqueue?

    Hi all, I have been trying to track down some odd behavior in a multithreaded mac os x program in which the program gets stuck waiting for events on files forever.  I wrote a small C program that exhibits the same problem and I think that this may be

  • ICloud email name not being changed

    Every time I send an email from my computer or iCloud.com it goes out with my old name in the "from" box. I updated my name associated with my apple id a couple years ago but iCloud has never made the change and it is becoming a bother. Any suggestio

  • Private Phrase Password not able to Syncronized with Subscriber

    I am trying to install a Call Manager Subscriber Server 4.2(3) but unable to syncronized the private password phrase with Publisher Server.Is there any resolution where we can change the Private Password of server without disturbing the services.I al