How do I execute a vi in the background and pass it starup pramaters?

I would like to create a queue and pass it's handle to a subvi that runs in the background. I see several examples of running a vi in the background using the vi server, but I could not find any examples of running in the background and passing startup arguments.

Hi,
you can do following: Create your subVI with the needet connectors (queue
and startup parameters perhaps) and insert a loop, which ends when the queue
is destroyed. Insert shift registers an initialize them with you start
parameters. During execution update the shift registers with the new values.
Now create the main VI and place a create queue. Wire the outgoing queue
reference to the subVI and a new loop.
So your subVI starts running and the loop is executing parallel. To stop the
program just destroy the queue inside the main loop and your subVI will also
stop.
I hope it will plain enought for you...
greets
Henrik
N. Blaine Morgan schrieb in im Newsbeitrag:
[email protected]..
> I would like to create
a queue and pass it's handle to a subvi that
> runs in the background. I see several examples of running a vi in the
> background using the vi server, but I could not find any examples of
> running in the background and passing startup arguments.

Similar Messages

  • In the new Pages, how does one send an image to the background (and make it selectable)?

    How does one send an image to the background in the new Pages and how does one make it selectable?

    Also why don't TEXT to Speech short cuts established in system preferences work in the new Pages?
    I am confused (and not completely happy)

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • How can i check my mails on the iphone and make sure that the mail wont pop up again on my computer ?

    How can i check my mails on the iphone and make sure that the mail wont pop up again on my computer/ will be deleted on the server ?

    For that kind of connectivity you need to be using an email account configured either as IMAP or Exchange.
    IMAP & Exchange accounts will maintain a sync across all your devices, so if you read / delete a message on your phone, it will disappear from the server as well. This cannot happen in POP email accounts.
    If your using gmail, instructions on how to set up exchange / imap are here http://www.google.com/support/mobile/bin/answer.py?answer=138740&topic=14252
    Alternatively, if its anything other than Google, you will need to contact your email providor or IT department (if your email address resides with an enterprise environment) to get the correct settings.
    Hope this helps!

  • HT4437 how can i use my labtop on the wed and watch everthing im doing on my tv

    how can i use my labtop on the wed and watch everthing im doing on my tv

    Mirror, if your MBP is early 2011 or later running OSX 10.8 or newer.  If older visit www.airparrot.com, a third party app that works OK, mixed reviews but mine works well.

  • How can i fix a clip when the video and audio are not matching up?

    How can i fix a clip when the video and audio are not matching up? I imported the video from a junkdrive in a .VOB format and concerted to a .mov the videos were filmed on a miniDVD recorder.

    I would try detaching the audio and the dragging the audio to the left or right until it lines up.

  • I need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by ste

    i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner

    Please post (a relevant section of) it right on this Forum.

  • How do we view a list of the temporary and free sites we are using?

    Adobe Web Host - Free Sites /
    How do we view a list of the temporary and free sites we are using?
    When logged into Creative Cloud we used to be able to see the temporary and hoe many of the 5 free sites we were using. 
    Can’t find a list on my Creative Cloud account or when linking to "Manage" from within Muse /
    No mention of the free sites in the FAQs. Has there been a policy change ? Are free sites still included in the Subscription ?
    // from - Adobe Muse Help | Adobe Muse / Common Questions //
    When I publish in Adobe Muse CC, do I have to pay for hosting with Adobe?
    Adobe Muse CC allows you to publish your temporary website on the Adobe hosting platform at no charge for a 30-day trial period. This gives you the opportunity to send a live URL to your client for review. All sites in trial mode with Adobe will include the domain “businesscatalyst.com” in it. If you decide to take the site live by paying for the monthly hosting, you can transfer your own domain and remove the businesscatalyst.com subdomain. Or you can export the HTML and host the final site with a hosting provider of your choice.

    Yeah, not sure why they took it out of the cloud interface.
    But if you go to http://www.businesscatalyst.com/partnerportal and login with your cloud ID you will have access to all your cloud sites and many other features.

  • I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    Hi
    Thanks for the reply, not the answer I was hoping for, one last thing if I can get the music onto a computer can I then add it to the iTunes library.
    Really don't want to have to reload it all again

  • How do I get my Reminders on the iPad and iPhone to show up on my Mac laptop?

    How do I get my Reminders on the iPad and the iPhone to show up on my Mac Laptop?

    on your mac go to system preferences and login to iCloud. Ensure that reminders are also ticked so it can sync with you iPhone and ipad

  • How can I copy a part of the picture and paste this piece on top of another part of the same picture? ta

    How can I copy a part of the picture and paste this piece on top of another part of the same picture? ta

    select the section you want to copy (marquee tool or lasso tool) and either go to edit copy or use control c create a new layer in layers (top menu bar) or Control shift N and paste using control V;  or edit > paste.

  • SSHR reskin AKA 'How to Use Adobe Flash to Transform the Look and Feel...

    There was a presentation at the OHUG 2011 Conference titled 'How to Use Adobe Flash to Transform the Look and Feel of Oracle HR Self Service'. It presented a method of 're-skinning' SSHR to present a different UI to the user.
    Looking for anyone out there that has attempted to apply this to their Oracle HRSS pages. I know this company has developed (is developing?) a product based on this approach. I want to see if anyone has done it on their own and would be willing to share some details.
    Follow-up question. Has anyone availed themselves of the bespoke UI Development based on this approach from Applaud Solutions (as mentioned on their website), and care to comment on your experience?

    Any update on this please? Even we are looking for some pointers in this area.

  • How do I put a picture in the background on Pages

    I must be having a senior moment!   In the past I have made a poster in Pages and put a picture in the background and text over the top.
    I have just tried to do it again and can't for the life of me remember how to do it.   I do have a new version of Pages which has confused me slightly.
    Any help would be much appreciated.
    Kathy

    Menu > Arrange > Section Master > Move object to Section Master
    You also should still have Pages '09 still in your Applications/iWork folder
    Pages 5.5.3 has over 100 + features missing and is comparatively buggy.
    Peter

  • How do I get page numbers on the left and right side of the page?

    I am finishing up a book in PAGES '08 on my Mac.
    How do I get page numbers on the left and right side of the page.
    I can get them on the page but I'd like them on the left and right sides.
    Evan

    If the icons are from dmg files that were used to install 3rd party apps like this one for VueScan
    Control (right) - click on the open dmg icon and select "Eject  xxxx" from the contextual window.
    Then find the actual dmg file associated with those icons
    and drag to the Trash in the Dock and empty.

  • Execute CALL TRANSACTION in the background....

    Hi,
    I want to use CALL TRANSACTION in a report program and execute this report in the background.
    There is not GUI_UPLOAD / GUI_DOWNLOAD used anywhere.
    Can someone suggest me what precaution I need to take in my code for CALL TRANSACTION?
    Is there any additional code for background processing?
    Thanks.

    hi,
    this is the sample code:
    Precations need to take :
    1. see that u r transfer tha data in correct field, on correct screen, and of correct format.
    2. capture the error logs in bdcmsgcoll - error logs have to be handle.
    3. ensure correct recording.
    in selection screen you can mention in which mode u want :
    A     Display all screens
    E     Display errors
    N     Background processing
    P     Background processing; debugging possible
    This is the sample code:
    & Report  ZKO01_BDC                                                       &
    & Object Id       :                                                       &
    & Object Name     : ZKO01_BDC                                             &
    & Program Name    : ZKO01_BDC                                             &
    & Transaction Code: ZKO01_BDC                                             &
    & Module Name     : FI / CO                                               &
    & Program Type    : BDC Program      Create Date     : 23.06.2008         &
    & SAP Release     : 6.0              Transport No    :                    &
    & Description     : BDC to upload internal order with indernal assignment &
    & Version         : 1.0.                                                  &
    & Changed on      :                                                       &
    report zko01_bdc
           no standard page heading line-size 255.
    types: begin of record,
            auart_001(004),
            ktext_002(040),
            bukrs_003(004),
            werks_004(004),      " ADDED NEW - RAHUL SHINDE
            scope_005(010),
            prctr_006(004),      " ADDED NEW - RAHUL SHINDE
            waers_007(005),
            astkz_008(001),
            plint_009(001),
          end of record.
    types: begin of ty_stats,
           mess(72) type c,
           auart_001(004),
           text(18) type c,
           end of ty_stats.
    data : it_record type table of record,
            wa_record like line of it_record.
    data: bdcdata type table of bdcdata,
          mestab type table of bdcmsgcoll.
    data : stats type table of ty_stats.
    data: opt type ctu_params.
    data: m(72) type c.
    data : fl_name type string.
    data :  wa_bdcdata like line of bdcdata,
            wa_mestab like line of mestab.
    data :  wa_stats like line of stats.
    data:   ctumode like ctu_params-dismode.
    data:   cupdate like ctu_params-updmode.
    data: file type  rlgrap-filename.
    data: xcel type table of alsmex_tabline with header line.
    data: mod1(1) type c.
    initialization.
    opt-dismode = 'A'.
    opt-updmode = 'S'.
    opt-nobinpt = 'X'.   "No batch input mode
                        Selection Screen
    selection-screen begin of block bk1 with frame.
    selection-screen skip 1.
    parameters p_file type localfile. " default 'D:\Common\PWC\Asset BDC\Book2.xls'.
    parameters p_mode like ctu_params-dismode obligatory.
    selection-screen skip 1.
    selection-screen end of block bk1.
    file = p_file.
    mod1 = p_mode.
    at selection-screen on value-request for p_file.
      call function 'KD_GET_FILENAME_ON_F4'
           exporting
                static    = 'X'
           changing
                file_name = p_file.
                        Selection Screen
    start-of-selection.
    file = p_file.
    ctumode = mod1.
    cupdate = 'L'.
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '100'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    loop at xcel.
      case xcel-col.
        when '0001'.
            wa_record-auart_001 = xcel-value.      "ok
        when '0002'.
            wa_record-ktext_002 = xcel-value.      "ok
        when '0003'.
            wa_record-bukrs_003 = xcel-value.      "ok
        when '0004'.
            wa_record-werks_004 = xcel-value.      "ok
        when '0005'.
            wa_record-scope_005 = xcel-value.      "ok
       when '0005'.
           wa_record-KTEXT_005 = xcel-value.    "ok
        when '0006'.
            wa_record-prctr_006 = xcel-value.      "ok
        when '0007'.
            wa_record-waers_007 = xcel-value.      "ok
        when '0008'.
            wa_record-astkz_008 = xcel-value.      "ok
        when '0009'.
            wa_record-plint_009 = xcel-value.      "ok
      endcase.
      at end of row.
        append wa_record to it_record.
        clear wa_record.
      endat.
    endloop.
    loop at it_record into wa_record.
    perform bdc_dynpro      using 'SAPMKAUF' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COAS-AUART'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'COAS-AUART'
                                  wa_record-auart_001.
    perform bdc_dynpro      using 'SAPMKAUF' '0600'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BUT2'.
    perform bdc_field       using 'COAS-KTEXT'
                                  wa_record-ktext_002.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COAS-SCOPE'.
    perform bdc_field       using 'COAS-BUKRS'
                                  wa_record-bukrs_003.
    perform bdc_field       using 'COAS-WERKS'
                                  wa_record-werks_004.
    perform bdc_field       using 'COAS-SCOPE'
                                  wa_record-scope_005.
    perform bdc_field       using 'COAS-PRCTR'
                                  wa_record-prctr_006.
    perform bdc_dynpro      using 'SAPMKAUF' '0600'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    *perform bdc_field       using 'COAS-KTEXT'
                                 wa_record-KTEXT_005.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COAS-PLINT'.
    perform bdc_field       using 'COAS-WAERS'
                                  wa_record-waers_007.
    perform bdc_field       using 'COAS-ASTKZ'
                                  wa_record-astkz_008.
    perform bdc_field       using 'COAS-PLINT'
                                  wa_record-plint_009.
    call transaction 'KO01' using bdcdata
                            options from opt
                            messages into mestab.
    *PERFORM loggs.
    clear wa_record.
    refresh bdcdata.
    endloop.
    end-of-selection.
    clear : wa_stats.
    if stats is initial.
        write :/ text-001.
    else.
      loop at stats into wa_stats.                         "displays runtime messages
        write:/ 'MESSAGE  :',wa_stats-auart_001.
        if wa_stats-auart_001 is not initial.
        write:/ wa_stats-auart_001,  wa_stats-text.
        endif.
        skip 1.
      endloop.
    endif.
    *&  FORMS BDC_DYNPRO
    form bdc_dynpro using program dynpro.
      clear wa_bdcdata.
      wa_bdcdata-program  = program.
      wa_bdcdata-dynpro   = dynpro.
      wa_bdcdata-dynbegin = 'X'.
      append wa_bdcdata to bdcdata..
    endform.
      FORM BDC_FIELD                                                 *
    form bdc_field using fnam fval.
        clear wa_bdcdata.
        wa_bdcdata-fnam = fnam.
        wa_bdcdata-fval = fval.
        append wa_bdcdata to bdcdata..
    endform.
    *&      Form  loggs
          text
    -->  p1        text
    <--  p2        text
    form loggs .
    loop at mestab into wa_mestab.
        if wa_mestab-msgtyp = 'E'.
          call function 'FORMAT_MESSAGE'
            exporting
              id        = wa_mestab-msgid
              lang      = 'E'
              no        = wa_mestab-msgnr
              v1        = wa_mestab-msgv1
              v2        = wa_mestab-msgv2
              v3        = wa_mestab-msgv3
              v4        = wa_mestab-msgv4
            importing
              msg       = m
            exceptions
              not_found = 1
              others    = 2.
          wa_stats-mess = m.
          wa_stats-text = text-001.            "'Not Created'.
          wa_stats-auart_001 = wa_record-auart_001.
          "wa_stats-sernr = wa_flat-sernr.
          append wa_stats to stats.
        elseif wa_mestab-msgtyp = 'S'.
          call function 'FORMAT_MESSAGE'
            exporting
              id        = wa_mestab-msgid
              lang      = 'E'
              no        = wa_mestab-msgnr
              v1        = wa_mestab-msgv1
              v2        = wa_mestab-msgv2
              v3        = wa_mestab-msgv3
              v4        = wa_mestab-msgv4
            importing
              msg       = m
            exceptions
              not_found = 1
              others    = 2.
          if wa_mestab-dyname = 'SAPMIEQ0'
                                    and wa_mestab-dynumb = '0101'
                                    and wa_mestab-msgspra = 'E'
                                    and wa_mestab-msgid = 'IS'
                                    and wa_mestab-msgnr = '144'.
            loop at stats into wa_stats where auart_001 = wa_record-auart_001.
                                          "and sernr = wa_flat-sernr.
                 delete stats.
            endloop.
                clear : wa_stats.
                wa_stats-mess = m.
                append wa_stats to stats.
          endif.
        endif.
        clear : wa_stats.
      endloop.
    endform.                    " loggs
    Edited by: Naseeruddin on Nov 26, 2008 8:57 AM

Maybe you are looking for