Calling a vi multiple times makes the timer "crash"

I use a subvi for writing data from a profibusnetwork. In this vi I can set a timer for the "update" to write away the data. I use a global variable to remember the last time the writing was done. The problem I encounter here is that when I use this subvi multiple times only the data I want updated fastest will be written away.. My question is: Is it possible to use just this one vi multiple times instead of renaming it for every datasource I want to write away?
Thx in advance,

Use a while loop with an uninitialised shift register instead of a global,
and build it into a function marked "re-entrant". This way different data
exists in each different copy of it in the code.
henk007 wrote in message
news:[email protected]..
> I use a subvi for writing data from a profibusnetwork. In this vi I
> can set a timer for the "update" to write away the data. I use a
> global variable to remember the last time the writing was done. The
> problem I encounter here is that when I use this subvi multiple times
> only the data I want updated fastest will be written away.. My
> question is: Is it possible to use just this one vi multiple times
> instead of renaming it for every datasource I want to write away?

Similar Messages

  • Problem Calling a WebService multiple times

    Hi Guys,
    I am a relatively new user of DS 12.2 doing a proof-of-concept to call an in-house WebService for a batch of customer records - lets say 1000.
    The WS has an input schema where it's parameters are within a nested table such that it can be called for many customers in a single call if desired. WS input schema (made-up example)=
    -WS
    --$REQUEST_SCHEMA **added by DS on import
    ---CustVerification
    src_nr
    src_state
    I have successfully been able to create a Data-Flow that builds the input-schema such that 1 WS call is made with a nested input of all 1000 customers. This works and the output from the single call is correct (many records relating to the many inputs etc). Input schema =
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    Now the problem - I am wanting to do this flow so that it calls the WS once PER customer i.e. 1 entry in many of the nested CustVerification structures.
    I have, again, been able to produce the correct XML schema (at least it looks correct) which repeats the Input Schema for each customer record. HOWEVER, when hooking this up to the function call of the WS as before, I either get only 1 single call like before with the last entry in the file run through it..... or, after playing with the query's input schema to add an extra root level and changing FROM clauses to map to the function call schema I then get a huge ACCESS_VIOLATION dump which mentions "LoadDFXML::put_string()+2427 byte(s)" and other such XML-related but non-helpful messages.
    New input schema is:
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    So.... am I missing something simple in how I call a WS multiple times as opposed to once with multiple inputs? Could this be a setting/property somewhere? IS this linked with how I do a QueryTransform in a certain way to get the function called the right number of times? Anything else??
    Thanks for any advice/help.
    Flip.

    Thanks for the responses guys.... I actually got past the error with a change to the NRDM structure (as mentioned in the first reply, I think a small problem here really changes things).
    So - what I had to do to get this working properly was to add a new 'dummy' level into the structure - this kept it clean to denote that the 1 large bulk of messages were going to be sent through the WS many times. So - structure looks like this:
    Input_Query:
    - <ROOT>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    </ROOT>
    Then, in the Output schema for the function call, I had to create a dummy extra schema level also - say 'WS_Call', and put the function call within this structure. The FROM mapping has to be set so that both the input_query level AND the input_query.root level are mapped to the WS_Call schema.
    And then it works!
    Summary -- its a bugger.... but playing with the structure levels (and adding your own at times) and FROM clauses can work!
    Cheers,
    Flip.

  • Call and Execute Multiple Windows of the same VI

    Hi,
    I would like to call and execute multiple windows of the same VI.
    Please take a look for my attached vi, and start from the 2x2.vi, i think you have to re-enter the file path to run (sorry for inconvenience).
    If I click the start button in different sub panels, the sub vi(Temperature Analysis.vi..& etc) should be called out in multiple windows, hold it, and run simultaneously.
    But now the problem is, the sub vi is called out 1 by 1 until it is finished prior the second sub vi is called.
    May I know how to solve that?
    Thanks.
    Attachments:
    My VI.zip ‏173 KB

    Hello TanTan
    1. Open the PopUpmain.vi and select the path of PopUp.vi
    2. Enter the number of popups and run the VI.
    Hope this attached VI will work as per your expection. Please select the less number of instances 
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    PopUpMain.vi ‏12 KB
    PopUp.vi ‏8 KB

  • ITunes makes the Finder crash on Lion

    Hi guys.
    I have this annoying problem on my iMac.
    When i play a song on iTunes it makes the Finder crash.
    I recorded a video to let you understand better: http://www.youtube.com/watch?v=QDqxVFHIeuI&feature=youtu.be
    What should i do? I don't want to install Lion again...
    Many thanks

    I have this problem too, in my case it appeared that the cause was from song notification (http://osxdaily.com/2011/11/19/show-a-now-playing-itunes-notification-in-the-os- x-dock/) I turned it off, and it works fine again.

  • Option click / right click makes the Finder crash

    Option clicking or right clicking within the Finder, on a folder or a document makes the Finder crash! Any ideas?
    Thanks, F

    Hi, Fridge.
    If Finder quits when you either:• Control-click an object.
    • Right-click an object using a two-button mouse.This may be due to either:• Installed software that added a bad contextual menu item.
    • Removed software that left a contextual menu item behind.What software did you last install or remove? Does its documentation refer to its use of Contextual Menu items?
    Contextual menu items can be installed in two places:(1) Your Home > Library > Contextual Menu Items folder.
    (2) Computer > Macintosh HD > Library > Contextual Menu Items folder.If the item is in the folder listed in (2), then:
    - Under Tiger or Panther, you'll be prompted to authenticate this operation by providing your Admin password when trashing it.
    - Under Jaguar, you may have to change the Owner to you (via Get Info > Ownership and Permissions) before you can trash it.
    Note that some of the information above is from page 220 of the "Finder" chapter of my book, Troubleshooting Mac® OS X, Second Edition.
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Calling stored procedure multiple times in the JDBC receiver

    Hi,
    I am calling the stored procedure(SP) to update a DB table in the JDBC receiver.
    SP has 10 input parameters, and SP can receive one value for each parameter at a time.
    In my case, i will have multiple rows to insert using SP.i.e multiple values for each parameter.
    Its working correctly for a single value for each parameter, but when i have multiple values i want to call the SP multiples times.
    Is this possible and how?
    Thanks,
    Varghese.

    Varghese,
    I think you can have multiple statements in the JDBC Adapter's XML, as in http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm.
    Here the StatementName1 node can be inserted into your JDBC XML as often as you want.
    Kind regards,
    Koen

  • Calling a servlets multiple times from a servlet

    Hi All,
    Advanced Thanks,
    I have a servlet which calls another servlet to display some records. Second servlet will access some data from XML files and forwards to a JSP file. What i want is I need to call the second servlet multiple times from the the first servlet. I used RequestDispatcher to call the servlet but I can call only one time after a an exceptions is occurred like cannot forward after response is committed.
    I need this scenario in the saem way because each time second servlet is called I am forwarding response to user each time records are accessed based on the request value.
    request.getRequestDispatcher("sample").forward(request, response);          
    Any one please give me a suggestion?
    Thanks in advance

    What are those servlets supposed to do? Sounds like that they are doing too much, e.g. acting like business classes or utility classes or so. Refactor your code.

  • Rendered Property calling managed bean Multiple Times

    Hi
    We have a problem within a command button in a jspx, which includes a rendered tag which references a managed bean method via EL.
    e.g.
    rendered="#{PERUserInfo.trainee}"
    When I debug the jspx, the PERUserInfo.trainee method is called 4 times instead of once.
    We have noticed similar findings when using managed bean methods via the rendered property. i.e. calls getters multiple times.
    Any idea why this is happening?
    We are using JDeveloper v10.1.3, JHS v10.1.3 SU1.
    All comments appreciated.
    Cheers
    Denis

    Denis,
    There can be many reasons why your bean method is called multiple times; but I would consider this perfectly normal in any JSF application considering all the lifecycles and (possible) Partial Page Rendering that happens.
    The question is, by the way, more appropriate on the JDeveloper forum since it is not directly related to JHeadstart itself.
    Hope this helps,
    Evert-Jan de Bruin

  • Calling same form multiple times

    Hi, i need to call a single form with different table names as parameters depending on conditions.
    for eg here is the approach
    if flag1_is_set
      call form1 multiple times with table1, table2....... as parameters
    "and i can avoid this
    "  form 1 using table 1
    "  form 1 using table 2
    "  form 1 using table 3
    "  form 1 using table 4
    "  form 1 using table 5
    elseif
      flag2_is_set
        form 1 using table 2
    elseif
      flag3_is_set
       form 1 using table 3.
    but i cannot call forms like this. can someone suggest
    an equivalent implementation on how to do this.
    if i dont implement in the above mentioned approach i have to code the same thing with minor changes multiple times
    thanks.
    your help would be appreciated.
    kranthi.

    You might try passing a field symbol (itab) in the tables.
    And assign the filed symbol with your itab as per the condition.
    Check if the program below gives you any idea.
    REPORT  Z_RAM_DYN_TAB_IN_FORM.
    PARAMETERS : P_TAB1 TYPE C.
    DATA: lt_users2 type standard table of usr02.
    DATA: lt_users1 type standard table of usr01.
    FIELD-SYMBOLS: <fs_itab> type standard table.
    SELECT * into table lt_users1 FROM usr01.
    SELECT * into table lt_users2 FROM usr02.
    IF P_TAB1 eq 'X'.
       ASSIGN lt_users1 to <fs_itab>.
    ELSE.
       ASSIGN lt_users2 to <fs_itab>.
    ENDIF.
    PERFORM test_form TABLES <fs_itab>.
    FORM test_form TABLES x_itab .
    FIELD-SYMBOLS: <fs_wa> type any.
    FIELD-SYMBOLS: <fs_field> type any.
      LOOP AT x_itab ASSIGNING <fs_wa>.
        DO 5 times.     "Write first 5 fields of itabs.
          ASSIGN COMPONENT sy-index OF STRUCTURE <fs_wa> to <fs_field>.
          WRITE :  <fs_field>.
        ENDDO.
        WRITE :/.
      ENDLOOP.
    Thanks,
    Ram
    Message was edited by: Ram Manohar Tiwari

  • Call a vi multiple times to check progress

    My basic setup is that I have a caller vi calling a subvi.  However as the caller vi is looping i would like it to call the subvi and not wait for it to finish its execution.  Except i would like it to go to the next loop and then call the previous instance of the subvi to check on the progress.
    I have attached some example vi sto show m point, where the caller_vi.vi calls the subvi.vi to bgein exectution.  Basically i would like it to call the subvi to run independantly and while it is running the caller vi can keep calling it to check on the vairables 'x=1' and 'numeric3'.  However if the subvi has finished running then it should begin another execution again when called from the caller vi
    Thanks
    Ps. I have played around with the reentrant options and Run vi methods to no avail so far
    Attachments:
    Caller_vi.vi ‏9 KB
    subvi.vi ‏6 KB

    Yeah the vi's I attached weren't the latest copies. So I have attached them again.
    As for what I need:
    What I would like is to call and run the subvi.vi from the caller_vi.vi and not wait for it to finish execution but return to the caller_vi.vi (For this I believe the run vi invoke node would be used with a false 'Wait until Done'...something similar to what is inside the case structure at the bottom of the Block Diagram)
    While the subvi.vi is running the caller_vi.vi should continue doing loops and therefore when it is doing another loop it should call the subvi.vi again. 
    From this new call I need it get the values for 'x+1' and 'Numeric3' only if the subvi.vi has not finished executing Otherwise it should run the subvi.vi again. SO if subvi.vi is finished then run again if subvi.vi is not finished then what is the value of 'x+1' and 'Numeric3'
    Obviously I have not called the subvi.vi in the correct manner or else my program would have worked but the previous steps shows what I would like to get
     I hope that makes things clearer
    Attachments:
    subvi.vi ‏7 KB
    Caller_vi.vi ‏9 KB

  • Our corporate proxy prevents downloading and installing Photoshop CC and makes the installer crash.

    What IP's and ports the downloader/installer is connecting to so we can make changes to our firewall & proxy settings. Can't find them on Adobe site.
    The installer crashes on every installation attempt and does leave an error report in win7 application log, but the error itself doesn't contain any useful information, just a reference to a .dll file.

    Mikkoj85693501 please see Creative Cloud for enterprise for information on how to configure your network to allow a Creative Cloud membership.

  • How to call BADI Triggering Multiple Times

    Hi ,
        I got one requirement of Duplicate check for that i implemeted one BADI  in that i called Duplicat check function Module also so when i entered first, last and email id it is giving the message as Data is saved. when i entered the same data is entered it gives the message as Account is Duplicate and it wont save at that time when i modified the data then it wants to save that means it wants to call the duplicate check badi once again but thing is it wont save again it is giving the message as duplicate so for each change the badi wants to trigger agin and again but it wont so how can i do this one pls tell me which badi is suitable
    Regards
    Ravi

    I think you can do it by using the same BADI. you can just create a static data to keep the first, last and email id. If the first, last and email id are the same skip the duplication check.
    for examples:
      Method badi.........
        STATICS static_name TYPE name VALUE 10.
        IF static_name is initial.
          static_name = im_name.
          perform duplicate_check.....
        ELSE.
          if static_name ne im_name.
            perform duplicate_check.....
          endif.
        ENDIF.
      Endmethod
    Cheers,
    Chaiphon

  • Calling a webservice multiple times..

    Hi All,
    We have a requirment in which we are mapping a node "XXX" of an IDOC structure with a web service. Multiple occurences of a node "XXX" in IDOC are possible (1..9999). The web service is nothing but an array. At present there is a limit of 20 records per web service call. The records can belong to one or more "XXX" nodes. It is recommended to fill the array as far as possible. My mapping is working fine if there are upto 20 occurences of "XXX", but if there are more than 20 occurences of "XXX", the webservice should be called again to accommodate the remaining data. This is where I am getting problem.
                        Can anybody have an idea how can we implement this?

    Hi,
    >> As changing the SAP standard IDOC structures is not recommended.
    It is not required to change the IDoc structure, only modification needs to be done in the program that generates the outbound IDoc to create an IDoc with only 20 records i.e split the record and create a new IDoc for every 20 records.
    Thanks,
    SaNv...

  • When calling my mobile number, it makes the 'no such number' tone?!

    My phone (iPhone 5s) currently states 'No Service'. I've turned it off, turned it on, put it in airplane mode, taken it out, but still got 'no service'. I currently have a wifi connection, but no wifi-calling. Have tried calling 151 just to 'test' it, nothing. Have now called my mobile from a landline, but just get a 'no such number' tone, whereas I should be re-directed to the voicemail... I am on a EE Sim only contract, with a contract end date of 13/09/14, but that I haven't cancelled. Money has just been debited from my account for July, so I assume this would cover me until 13/08/15. Anyone have any ideas of what's going on?! Everyone else in the office on EE has a signal, and I don't think it's the signal that's the problem, or the phone would just go straight to voicemail instead of a constant 'no such number' tone...  

    Hi ,
    Thanks for joining the Community.
    Please get in touch with customer service so we can help.
    Click here for contact details.
    Thanks
    James

  • SQL Server 2008 R2 - Connection from multiple sources makes the database drop.

    Hey,
    I have a database being accesses from multiple sources - IIS and WPF application.
    Once a user enters the website(which is connected to the database through a Connection String), The WPF application stops its communication with the database, or vise versa.
    The problem being solved once I restart the IIS service or the SQL instance service.
    Thanks in advanced.
    Nir.

    Hello Nir,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Safari wont open hotmail or microsoft sites

    Ive only got my internet working today. When i first connected i was able to go on hotmail and managed to download microsoft messenger. However it now wont let me go on, it seems, any microsoft site (still connects to msn messenger fine though). I re

  • Getting ORA-01031 in Log file

    Hi All, I registered my custom procedure as Concurrent Program in Oracle Apps. While I am running Oracle Concurrent Program, I am getting below in Log file an immediately Concurrent Managers are shut down, and is in "Running State" always. Enabled Tr

  • Form fields in Acrobat Prof. 8.1.6 updating automatically

    I have a form I created in Acrobat Prof. 8.1.6. When I fill in one field it automatically fills in the same information in ever field on that line. I don't want it to do that and can't seem to find a way to make it stop. Not all lines are doing this.

  • GL assignment to the new movement type copied from101(GR of purchase order)

    Dear friends, user need another movement type copied from 101 due to diffierent GL assignment needed for the new movement type. while below is the only combination for PRD(cost (price) diffierences) is OBYC. and the first row is the current GL assign

  • Error Cluster Source and Explanatio​n differ

    I have a routine that unbundles the error cluster and is supposed to append the 'source' string to some status information that had occurred before that point.  I ran some tests and found that the "Source" string differs (provides less information) t