Queue Issue, reentrant/multiple calls

I have a slight problem using queues. I've read the posts that are close to my problem but i haven't figured out how to solve my case.
I have a "main window" where i want the queue to show constantly. Then i have 5 places that can add values to a single queue to be tested with a specific equipment. Even if i use 1 name for the queue the reference when obtaining the queue changes (read in a post). So i'm not able to modify 1 queue from 4 different places. I don't think it's appropriate to link from the "main window" the queue reference into the 5 places it should modify them.
So how should i solve my case? With reading the queue status from a Global Variable (not good solution)?
Attachments:
1.png ‏19 KB

When you open a queue by name you get a different queue ref to the same queue.
So you should be able to load the queue inside your subvi and post messages to the main VI without passing the reference around.
Be aware queues are bound to the application instance and you can't use them in a different app instance.
Just make sure that you keep the queue alive. So don't close it immediatly after writing to the queue.
Ton
Message Edited by TonP on 07-26-2007 01:20 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • BAPI_OUTB_DELIVERY_CHANGE Issue in multiple call

    Hi All,
    I am calling  BAPI_OUTB_DELIVERY_CHANGE twice in program.
    In first call I am changing delivery quantity to 1 ton .
    Then in second call I am updating delivery with true quantity.
    Now the issue is when I am calling BAPI second time its giving quantity error ' Stock not available for this material #'.
    If I put wait for 10 sec  between 2 call then bapi is executing successfully.
    Can anybody tell me how I can avoid wait statement.

    I think there may still be some updates happening in the background. You can also try doing like this for the second call.
    do 10 times.
    call BAPI.
    if return message is stock not available only then stay in this DO loop.
    for any other message exit the DO loop.
    enddo.
    This way you will not wait 10 seconds but only that long as it needs to be or a maximum of 10 calls(you can adjust this number also).

  • CP-8941 Multiple Call/Call Waiting Settings issue

    Hi,
    i want to change the cisco ip phone 8941 busytrigger to 1 but in all my phones its grayed.
    i upgraded the firmware to SIP 9-2-3-5. and restarted the call manager servers, but still i am not able to change it.
    i am using CUCM 8.6.2.
    is there a way to do this...
    my actual problem is  if
    user1-------calls-----------user2(both phones gets busy)
    user3-------calls----------user2(user3 must listen busy tone, and user2 should be notified of a call from user3).
    but in my case user3 is not getting busy tone instead he is getting ringback and thinks user2 is ignoring the call of user3.
    so can i solve this issue in any other way...

    Hi Mohammed,
    You need to install cmterm-894x-qed.9-2-2-0.cop.sgn from the following link on all the servers and restart the TFTP service and then reset the 8941 IP phones
    http://software.cisco.com/download/release.html?mdfid=283095470&flowid=46243&softwareid=282074289&release=9.4%281%29&relind=AVAILABLE&rellifecycle=&reltype=latest
    Release notes for this cmterm-894x-qed.9-2-2-0.cop.sgn
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/cuipph/8941_8945/firmware/9_2_2/english/release/notes/8941_8945_922.html
    Multiple Calls Per Line
    The Cisco Unified IP Phones 8941 and 8945 now support Multiple Calls Per Line.
    Each line can support multiple calls. By default, the Cisco Unified IP  Phones 8941 and 8945 support four active calls per line, and a maximum  of 24 active calls per line. Only one call can be connected at any time;  other calls are automatically placed on hold.
    The system allows you to configure the maximum calls/busy trigger to not  more than 24/24 both for SCCP and SIP. The default call/busy trigger  value is 4/2.
    This feature is supported on both SIP and SCCP phones, with Unified CM 7.1(5) and later.
    HTH
    Manish

  • Multiple call of update function module

    Hi Everybody,
    I have made implementation to the definition MB_DOCUMENT_BADI( material Document creation).
    While executing this BADI I am getting short dum with this error  Multiple call of update function module.
    Here is the short dump--
    In the FORM routine Buchen_Ausfuehren (program SAPMM07M), an error
    message was issued by a Business Add-In (BAdI) or function module.
    This is not permitted, because it could lead to data             
    inconsistencies. For this reason, the update of the material     
    document was also terminated with a termination message (dump).  
    Note that this message (M7 372) is not the responsible error     
    message.                                                         
    Please any body suggest the way forward.
    Regards,
    Sandeep.

    Hi Kiran,
    Thanks for the reply.
    I have created one implementation to the BADI MB_DOCUMENT_BADI. This badi will hit while creation of material document.I have write the code in method MB_DOCUMENT_BEFORE_UPDATE such that it will act only for certain movement types specially for t-codeMb1a and MB31.
    What problem I am facing i have used a error message "MB_DOCUMENT_BEFORE_UPDATE" in this method.If we got the erroe message then we dont need to post the material dcoument,but here problem is that if the material document could not posted then it corrupt the material and when we performing 261/101 we got error message like " Inconsistency between MM and ML for material and plant"
    I have used following things like-
    1-while updating the customized table using " Commit Work".
    2-Call function vb_change_batch for updating the batch and not in update task.
    3. Dequeue the table after updating the table.
    Will thos things can create any inconsistency to  the MM and ML.
    Please suggest me uor thoughts.
    Thanks
    sandeep.
    Thanks ,
    sandeep.

  • Calls in queue drop when first call is answered

     When all agents are busy and there are multiple calls in queue, at the point a call gets routed to an agent and answered from queue, the other calls in queue hear the disconnect prompt.
    This is CME 9.1 on  Version 15.0(1r)M16
    application
     service queue flash:app-b-acd-2.1.2.3.tcl
      param queue-len 30
      param aa-hunt1 7426701
      param queue-manager-debugs 1
      param number-of-hunt-grps 1
     service KCC flash:app-b-acd-aa-2.1.2.3.tcl
      paramspace english index 1
      param handoff-string KCC
      paramspace english language en
      param call-retry-timer 15
      param service-name queue
      param drop-through-option 1
      param second-greeting-time 60
      paramspace english location flash:
      param drop-through-prompt _TYFC.au
      param send-account true
      param max-time-vm-retry 3
      param voice-mail 1426900
      param max-time-call-retry 1400
      param aa-pilot 7427701
      param number-of-hunt-grps 1
    Thanks in advance.
    HHe

    Try this , see if that helps...
    param queue-len number
    Router(config-app-param)# param queue-len 15
    Sets the maximum number of calls allowed in each ephone hunt group's call queue used by Cisco Unified CME B-ACD.
    •number—Number of calls that can be waiting in the call queue for each ephone hunt group. The range is from 1 to 30. The default is 10.

  • Forms hanging after multiple calls to Foreign Function Interface

    Hi,
    Can anyone help me with this problem. I'm getting a 'FRM-92100:
    Your connection to the server was interrupted ... Details ...
    Java Exception:java.io.EOFException' error message when i make
    two calls to a c share object file using the ORA_FFI package.
    Forms will hang with that error message when I call the foreign
    function more than once and when the ORA_FFI.LOAD_LIBRARY
    function is executed twice.
    I've tried using the ORA_FFI.UNLOAD_LIBRARY function at the end
    straight after the load library plus my processes and it still
    hangs with that error message.
    I've got a temporary work around which is not ideal but it
    works. I've made another copy of the C shared object file and
    renamed it and made my second call to load this library.
    I would prefer to have one shared object file and make multiple
    calls to it from forms. Any suggestions?
    note : running forms 6.0 on three tier architecture with web
    browser.

    "Mush15" <[email protected]> wrote in
    message
    news:g7hela$flo$[email protected]..
    > Ok the issue is a stack overflow caused by calling the
    function
    > recursivly.
    >
    > I have tried creating 2 functions and have each call the
    other but still
    > recieve a stack overflow.
    >
    > Any ideas help??
    Try incrementing a counter every time you call the function
    and decrementing
    it on the way out. When you hit 2640 times, stop calling it.

  • Does a reentrant dll call monopolize the calling thread?

    If I understand thing correctly, threading for a dll call is the same as threading for a vi whose execution priority is set to subroutine.
    To review threading in subvis:
    (1) the thread in which a subroutine-execution-priorty-vi call is made is monopolized by the subroutine-execution-priorty-vi since labview cannot time slice the thread.
    (2) if the subroutine-execution-priority-vi is not reentrant, then other threads that call the vi may be suspended because they are competing for the same code resource.
    (3) if the subroutine-execution-priority-vi is reentrant, then other threads may call the vi simultaneously. However, within any particular thread the vi must complete because of point (1).
    In
    sum, the OS timeslices between the threads, and labVIEW timeslices within the threads. If a vi's execution priority is set to subroutine, then the thread under which it is running is monopolized by the vi. Yes?
    A reentrant dll call would be equivalent to a reentrant subvi call in which the subvi's execution priority is set to subroutine. Yes?
    If the above is correct then this should also be correct:
    Using an API call to return the thread ID, you could use the the thread ID at the front and back side of a dll call, as well as in a message library function callable from a dll, to theoretically message labVIEW upon the dll return. The message would be uniquely identifiable because a dll call cannot be superceded by another dll call from within the same thread. Yes?
    I'm not saying that it would be particularly efficient to do so, only that it could be done. And depending on the messaging, it could be a useful option in the dll call configuration dialog box.
    In consider
    ation of "magic",
    Kind Regards,
    Eric

    Eric,
    I'm not sure I understand exactlly what you are trying to do here.
    If you want LV to react to a dll error, why don't you just pass a return
    code that's not zero? Then, back in LV, read the return code. If it's not
    zero, create an error, and pass this to the rest of the code. The rest of
    the code is (or should, following good programming practise) has an error
    in, and the code will not execute if the input error is TRUE. It does not
    even have to be the return code, it could be any input value. The input
    values can be changed in the code, and the modified value is returnd to
    LabVIEW.
    If you want to generate an error, and put it into a buffer to be read later
    on in LV, you'll have to synchronise the code. This is the consequence for a
    construction like this, and is the same for several windows API's
    (GetLastError, etc.). the buffer will stay in memory, untill all instances
    of the dll are released from LV memory.
    BTW: A dll could create another thread. This thread can run on the
    background, like the good old TRS's in dos. (A thread like this could even
    call a LabVIEW VI that is build in a dll, just like any other api.)
    BTW: A thread created by a dll can be made to be automatically released when
    the thread is detatched, or when the process is detached. This is important,
    because LV will crash if the dll is removed from memory, but the thread is
    not stopped properly.
    Regards,
    Wiebe.
    "Eric6756" wrote in message
    news:[email protected]...
    > Greg,
    >
    > As I think I lost you in the point of this line of questions, let me
    > back up.
    >
    > A couple of week ago I asked the following question, "Is there a
    > labVIEW library call that can be made from a dll to tell labVIEW to
    > abort the calling vi thread?" To that question you made the following
    > statement:
    >
    > "... and I doubt that there is a function to do that from a DLL as the
    > DLL could be arbitrarily deep down the stack and the function called
    > would have to magically find the VI that it wants to abort. And don't
    > forget that DLLs can be called by multiple VIs at the same time."
    >
    > You seem to be saying here that what I'm asking for is not possible.
    > And having thought about this for a while, I didn't understand why
    > not.
    >
    > For the moment I'm going to ignore the caveat you just put into the
    > dll calling presumptions I've made and assume the dll is going to
    > execute synchronously within a thread. As the original question
    > suggests, the objective here is to message labVIEW from a dll to
    > provide the same functionallity as a CIN, namely return an error code
    > to labVIEW from a dll.
    >
    > A library function could do this as follows:
    >
    > First, the library function would have two modes; set error, and
    > return error
    >
    > (1) set error:
    >
    > 1.1 get the set error caller thread ID from API
    > 1.2 get the passed in error
    > 1.3 store the error and associated thread ID locally
    >
    > (2) return error
    > 2.1 get return error caller thread ID from API
    > 2.2 locate the error, if any, associated with thread ID
    > 2.3 return the error and clear it locally
    >
    > Now, if a dll encountered an error that it wanted labview to deal
    > with, it would call the error function to set the error code. When
    > the dll call returns control to labVIEW, labVIEW could call the
    > function to return the error. This of course works only if the dll
    > call is synchronous within a thread. Obviously, if the dll releases
    > the thread before it returns, then more than one dll call can be made
    > from the thread and the presumption that an error could be uniquely
    > associated with a thread is itself an error.
    >
    > Having looked at your reply again, I think though your answering a
    > different question than I asked. I just wanted a function to message
    > labVIEW to abort the vi chain, I don't want to abort a vi chain from
    > within the dll. It is a feature of CIN calls which I wanted in dll
    > calls.
    >
    > That a dll call may not be synchronous within a thread throws a wrench
    > in the works. Apparently I've just chased down a dead end.
    >
    > Hey, but thanks for the wrench...
    > Kind Regards,
    > Eric

  • How to update multiple calling hours based on business partner

    Hi All,
    please help me in this issue : how to update multiple calling hours based on business partner in SAP CRM.
    Regards,
    Siva kumar.

    Check maintainance view V_TB49, add new scheduling type.

  • Can I receive multiple calls on a skype number at ...

    I am trying to work out if a skype number is working for our business.
    If a call is coming in and is taken via skype by a staff member, can we receive another call? Basically having multiple calls to one skype number at the same time, picked up by different staff members via skype.
    If this is not possible, what other options are there?

    Please review our Skype Fair Usage Policy
    https://support.skype.com/en/faq/FA10364/what-is-the-fair-usage-policy-for-unlimited-subscriptions?f...
    Your account may get suspended for package abuse. Once the system detected that your account is abusing any of our subscriptions such as Skype Number, you will receive an email telling you that your account has been suspended for subscription abuse. You can continue to make free Skype calls and send instant messages. However, you will be unable to continue using paid products such as Skype Credit, subscriptions and Skype Premium.
    The suspension of your access to paid products is permanent and you will be unable to transfer any existing products to a new account or receive a refund.
    Did my reply answer your question? Accept it as a solution or give me a Kudo to help others, Thanks.
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • We run an iMac 3.4 GHz I7 for our church worship service; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Thank you!

    We run an iMac 3.4 GHz I7 in our church worship service; we have front screens and a stage display monitor ; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Now that we are 2 upgrades behind, I'm getting little concerned.  Thank you!

    Oh, well that was a whole other kettle of fish:
    Oh the G4 I attempted to install iLife '08 before Lepoard was available. About the only thing that installed cleanly was iPhoto. I ended up reinstalling everything back to iLife '06, and then upgrading back to the current stable version of the iLife '06 version. I didn't attempt a reinstall until after I upgraded to Leopard.
    When I did reinstall, I made a iLife '06 folder, copied all iLife apps into it, and upgraded. Seemed to work, except for the part where iMovie gets left behind and iDVD is only mostly functional.
    When I installed on the other 2 machines, it was after installing Leopard and all upgrades. On those 2 machines, I didn't bother with the copy, I just moved everything to the iLife '06 folder I created, and did a fresh install.
    I didn't have to do anything with the iPhoto Libraries, that I can recall.
    I always do an upgrade, never an archive and install. I've never had a problem with this back to 10.1 or 10.2.

  • Issue with multiple digital signatures disabling fast web view

    Hello, I'm using acrobat 9.1 pro and have some questions regarding an issue using multiple signatures on a pdf.
    Why am I asking the question below? My job involves preparing pdf's for submission to FDA. The FDA requires, among other things, that electronically submitted docs have fast web view enabled.
    I am currently exploring ways of using digital signatures to sign pdf reports and still make sure they are FDA spec compliant. My issue involves a document that would have multiple signature fields. What I do is create at least two signature fields in the doc and then save and optimize while enabling fast web view. When I sign the first box and save, the file retains the fast web view status. Yet, when I apply and signatures past the first one, the file is subsequently set to fast web view off without any obvious way of turning it back on. I am confused as to why it gets disabled only after the second, and not right after even the first one was signed. And, of course, I would like to know if it is possible to maintain fast web view and how to do it. I'll gladly accept "tinkering under the hood" of the file suggestions if they exist as well.
    Please let me know if anything is unclear or you need further information.
    Thanks for your time and help.
    ~Vlad

    Hi Vlad,
    Michael actual had the correct answer. The purpose of a "Linearized" file (i.e. a file that has been Optimized for Fast Web View) is to get the first page to display as soon as possible so you can start reading without waiting for the rest of the file to download. As an aside, the designated first page doesn't necessarily have to be page 0 (PDF's use a zero based counting system for pages), but usually it is. To quote the PDF specification, "The primary focus of Linearized PDF is optimized viewing of read-only PDF documents. It is intended that the Linearized PDF be generated once and read many times. Incremental update is still permitted, but the resulting PDF is no longer linearized and subsequently is treated as ordinary PDF."
    When you sign a PDF file the first time the Save process is a "full save", that is the entire document is rewritten so there are no more than two %%EOF (end-of-file) markers in it. The first EOF designates which page to show first and the second EOF designates the end of the rest of the file (so the browser knows when to stop downloading). However, when you add a second (or subsequent) signature the file is saved as an "incremental save" and all of the new data is tacked onto the the end of the original file. This is so you can do a rollback to the previous signed version and allows Acrobat/Reader to check the integrity of each signature independent of any other signatures. It's the incremental save that breaks the linearized optimization of the file.
    Steve

  • Multiple calling logical database ADA

    Hello,
    I need to call logical database ADA two times in my program. I use calling logical database using LDB_PROCESS function module. I need to call LDB for depreciation areas 01 and 60. If I call second time, I get exception  LDB_NOT_REENTRANT. I found, that for multiple calls of LDB, there should be LDB_PROCESS_INIT subroutine in logical database proram. In this case, program is SAPDBADA and in this program, LDB_PROCESS_INIT is missing.
    Could you pls. help me, how to call ADA logical database two times?
    Thanks&regards,
    Jirka

    The exception LDB_NOT_REENTRANT means: The logical database is not prepared to accept several successive calls within a transaction. So obviously you can't use LDB_PROCESS  for your purpose.
    Perhaps your goal is possible if you use a sequence of commands
    GET <ldb_node_1>.
    GET <ldb_node_1> LATE.
    GET <ldb_node_2>.
    GET <ldb_node_2> LATE.
    etc...
    where  ldb_node_1, ldb_node_2, etc... are some nodes included in logical database ADA. As I am not familiar with this particular LDB I can't tell which nodes are required to achieve your goal.

  • Erratic behavior with multiple calls to the same RFC

    Hi,
    I am running into a strange problem invoking a custom RFC from a .NET application. I would appreciate it if someone has any insight into it.
    The steps to call the RFC are straightforward:
    1. Open the connection to SAP server
    2. Make the call
    3. Close the connection
    As you can imagine, the code is also quite simple. 
    In my simulation program, I have a button on a UI form that one can click and execute the above steps.
    The problem I am running into is that, on multiple calls, sometimes the parameter values that show up on the SAP side are not right. When the input parameter (a structure) is viewed in the ABAP debugger, the field values are all getting exchanged. For example, first name field contains values for the last name. Also, some fields that are supposed to have values do not have any.
    Just before the RFC call is made, when we look at the structures on the .NET side, the field values are the way they are supposed to be.
    I have not been able to establish a pattern. Sometimes, it takes two clicks to reproduce this problem. Sometimes it takes five.
    One of the team members thinks that this starts occurring right after one call fails for some valid reasons. However, I am not yet convinced.
    Having written many custom .NET applications using RFCs an BAPIs, I am fairly conversant with the technology. However, this one just baffles me. It appears something is getting messed up at the RFC layer itself. Does anyone have any idea on what could be happening?
    Thank you in advance for your help.
    Pradeep

    Indeed this is interesting .
    The problem is caused by an incompatible change from .NET Framework 1.1 to 2.0. Howerver, the documentation on the 1.1. API was not clear enough to decide if the incompatible change was adequate or not. Now in detail:
    NCo runtime uses the reflection API Type.GetProperties to read and cache all properties of a Proxy structure. NCo assumes that the order of the returned properties is the same on each call and especially that it is the order of the properties as they appear in source code. This was the behavior in .NET 1.1. It has changed in 2.0, see e.g. the internet forum discussion in http://www.thescripts.com/forum/thread455492.html .
    Calling Type.GetProperty(<PropertyName>) or Type.SetProperty(<PropertyName>)  in your code moves the mentioned properties up in the list returned by Type.GetProperties() later inside of NCo.
    We found the following work-arroud:
    When using late-binding, call a dummy Type.GetProperties()  before any GetProperty or SetProperty.

  • How come every time i'm on the phone and another call enters I answer it but it doesnt tell me anywhere who is who on each line so i can go back and forth?? it only says multiple calls and i cant hang up the other line

    how come every time i'm on the phone and another call enters I answer it but it doesnt tell me anywhere who is who on each line so i can go back and forth?? it only says multiple calls and i cant hang up the other line.

    My carrier is Sprint. But I actually have checked with others and theirs work fine.

Maybe you are looking for

  • Airplane Mode/ Mobile Network Access

    BlackBerry Z10 10.0.9.2372 Please create quicker access to the mobile network radio toggle. When putting my phone I'm a locker or entering somewhere with poor coverage, my battery kills itself trying to find a signal. It would be much easier if a use

  • Home Sharing in iTunes no longer working with Lion....

    Anyone else having this problem?? I have not seen it as a topic. We have 2007 iMacs so chips do not support Air Drop. However, I would not think Air Drop would be required for home sharing in iTunes. Moving to Lion has not been a very good experience

  • JCo error while viewing MSS iviews

    Dear SDN Community,    When I am trying to view any of the MSS iViews like photo, orgchart, personal data, I get the following error message.   com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect

  • Can't reload 10.2 official onto Z10 LE. Link suggests 10.0.9

    hey gang, i've got a Z10 LE. I've been having a problem with the Text SMS app since 10.2, so i thought i'd try reloading the device software. plugged into computer and ran Reload in Link, but Link only offers to install 10.0.9, then errors out after

  • How to restrict the posting document from the parked user

    Hi All, Please help me in the below requirement The requirement is, need to restrict the posting of document by the same user, who has parked the document. For this I did the code changes in BTE: 00001140 by copying the function module: u2018SAMPLE_I