Inter project communication strategy

I have two LV projects in which I have developed tools to control two different types of instruments (A and B).
I now need to use both instruments to achieve a specific goal (optimize A for B). Specifically, I need to collect data in B, design an algorithm that sends instructions to A, collect data in B and sends back instructions to A, etc, until an optimum is obtained.
I can think of at least one way to do that:
modify project B to send instructions to a LV global/communication VI/queue/notifier which will be shared by the two projects.
The problem is, I have nver done that so I am not sure what the scope of, say a notifier is. If I create a notifier in a VI belonging to project B, can I refer to it by the same name in project A?
Thanks for your comments.

Well, since I am temporarily stuck with LV 2009 due to some FPGA support issue I have in LV 2010, I think I will use Datasockets.
I have played around with it a bit and here is what I am planning to do (attached):
- one project (untitled project 1) contains my DAQ GUI which needs to control the other instrument: in the example, it sends a "numeric" via a DS write. However, for my algorithm to be foolproof, I need to make sure that the other instrument has updated its status before I collect data. Therefore, after a write, I wait for the other guy to send an acknowledgment (using a read to another DS). When this is confirmed, I proceed.
- the other project (untitled project 2) is a simple GUI for the other instrument, which the user  can control via a FP numeric. When it is "remotely" controlled by the previous one (that is when, timing out, it gets a new numeric from the DS used by the other GUI to send its instruction), it updates this control (it overrides any user action) and writes this value into the other DS to tell the remote controller that it has updated its status.
Do you see any flow in this logic? At least, it seems to work. Bear with me, this is a barebone architecture.
Attachments:
Datasocket.zip ‏27 KB

Similar Messages

  • Inter Applet Communication across frames - Help Needed

    I am trying inter applet communication across frames. For this to happen I am using an intermidiate
    class which registers two applets and whenever any applet needs reference of other applet it gets it
    through this class.
    The page is an important part of a navigation link. So it is loaded many times while traversing through
    the site.
    Every time I load this page the applet does not paint itself (shows grey or background) and the browser
    stops responding. The machine needs to be restarted. This also happens when we keep that page idle for
    a long time (say 2 hours - session does not time out but applet hangs). I have used another thread object
    which is for utility and accesses the applet in the other frame every 10 seconds or so.
    When the applet hangs it does ot throw any exception or JVM error. This happens on certain machines
    evrytime and never on some machines. The applet hangs only in Microsoft IE 5 & 5.5 and never in Netscape
    4.x.
    What could be the problem?
    Can anyone help me with this problem? Its a deadline project and I can't get through.
    Thanks & Regards,
    Rahul

    Try making the register and getter methods of the intermediate class static synchronized. Then register the applets in their start() methods and unregister them in their stop() methods. Call the getter method of the intermediate class wherever you need access to another applet and never cache the instance you get. You may have to also synchronize all your start() and stop() methods to the intermediate class, as well as all methods that perform interapplet communication.
    Tell me what happenned ...

  • Inter servlet  communication......is it  possible ?

    here i have posted "Inter servlet communication......is it possible ?"
    have u come across this ?
    http://forum.java.sun.com/thread.jspa?threadID=588996
    thank you

    sorry for the cross post. It wont be again. In fact i refered the link if anybody could give some comment. i saw some poster also post questions from diffrent topics of java.
    My english is not good .
    But why you are so tough on me ? you are targetting me in some of my posts. you have been helping learners for a long time . Old archieve /posts prove that. I dont claim my post are expert level. If you feel those are too simple for you plz ignore that.
    thank you

  • Projects Cross-charge functionality Vs Inter-project Billing

    Hi,
    We are currently evaluating the funtionalities of Project Cross Charge Vs Inter-project billing. Our setup is such that we have 3 Legal Entities, 3 Business groups, 3 SOB's and 3 operating units, each tied to their own legal entity, Business group and Set of Bools. When reviewing the documentation, it looks like the Cross charge functionality does not support operating units that are in two different business groups. Does that imply that we have use the Inter-project billing to charge projects across operating units.
    We will really appeciate, if one can provide some additional insight in this regard.
    Regards,
    - Vasu Krishnaswamy -

    Hi,
    It is possible to have cross charge across the Business groups. It is also mentioned in Oracle Projects fundamentals guide. Please refer to the Global Project Support Chapter. Below is the extract from it.
    Providing Data Access Across Business Groups
    Global enterprises have resources and projects that are located, managed, and accounted
    for in different business groups or different countries. To meet the needs of these
    enterprises, Oracle Projects provides the following functionality:
    • Globally located resources can charge their time and expenses to projects that are
    owned outside their respective business groups.
    • Resources can manage and administer projects located in different business groups.
    • Oracle Projects produces appropriate accounting entries, intercompany invoices, and
    management reports even if the resource organization and project owning
    organization have different accounting calendars and job definitions.
    This functionality is provided through the use of global organization hierarchies, global
    jobs, and cross charge functionality.
    Hope this helps!
    Thanks,
    Sathish
    www.projectsaccounting.com

  • Inter Project Billing - Questions

    Hi,
    We have setup Inter Project billing and the process works as expected.
    But we still have questions about the Accounting Process - do the ap invoice and the ar invoice hit the same account? and how do we clear the Open Invoices on both AP and AR?
    Please Help!!!!
    Thanks,
    Akshaj

    Hi Dina,
    A couple more questions.
    Following is a table with example transactions below:
    GL     Cust. Proj     Internal Proj.     Consolidated
    Sales           400          
    IP-Sales               (200)     (200)
    COS               200     200
    IP-COS          200          200
    Clearing     (200)               (200)
    Net Income          200      0     
    1.     Should the UBR / UER be an internal UBR/UER. Would it not otherwise murky up the UBR/UER for contract projects?
    2.     How do the Internal Project and the Customer Project rollup on the GL ? Do we need to have a consolidation project to net IP-Sales and IP-COS
    3.     Also - how do we handle scenarios where COS in the internal project is greater than the revenue/billed amount? How does this rollup to the Customer Project?
    Please advise.
    Thanks.

  • HOW to make 2 step Communication strategy  for external send

    Hi
    I have made this 2 step communication strategy and attached to an email output type for purchase order, but it doesn't work as expected.
    The 2 steps are 1  INT,  2 = PRT
    If the vendor/supplier has an email in the address the purchase order is send by email, but if he has no email addres, then the output fails with message "E-mail address incorrect or non-existent"
    I expected the result to be that it would create a print instead of an email.
    What is wrong?
    Thanks.
    Thomas Madsen Nielsen

    I found the solution myself.
    The communication type PRT = Print is not supported, but LET = Letter will do exactly the same thing.
    I found the answer in OSS note 323720.
    Thanks

  • Secure inter-session communication

    How to pass data from one session to another session of same user?
    I mean how to pass it a way that nobody else can intercept?
    Oracle's DBMS_PIPE private pipes are not secure enough, SYSDBA can read/write from/to anybody's private pipe. :(.
    Any ideas?

    Why use DBMS_PIPE ?this was first that came to me for inter-session communication.
    What is the actual requirement that needs to be met? Actual requirement is to provide a session with crypto-key(s) from outside of Oracle, transparently to applications, and so that even SYSDBA could not get the keys.
    The session should use crypto-key in a same manner as VPD does to encrypt/decrypt some sensitive columns transparently to applications and adhoc reports (via layer of views that use the key).
    What is the purpose of those sessions communicating with one another? My first idea was to create a crypto-function that initially (when key is null) listens from pipe to get a key value from it.
    Another session of same user should send the key entered by the user into this pipe.
    Then, after the key received, the first main session proceeds having key in its package memory (or context).
    The problem here is that SYSDBA can mount a man-in-the-middle attack, quickly reading the key from pipe and writing it back.
    Why does that need to be secure? What data will be send? Is this peer-to-peer or client-server?SYSDBA should not know values from sensitive columns. Only users that have a key should.
    DBMS_PIPE is a solution. Not really.
    So it is difficult to comment on your view that DBMS_PIPE is insecure, when not knowing what the actual requirement is. I thought that the fact that SYSDBA can access any pipe is enough to see it is not 100% secure.
    Currently I am looking into externally or globally initialized contexts. Without that supplemental session where user enters a key.
    I am not sure yet if it is a right direction.

  • Communication strategy missing for external send

    Dear all,
    I want to send O/Cs via mail, therefore I configured the transmission medium of the output type to "external send". As well I set the communication strategy for mail to the output type. Nevertheless I receive an error, when I want to save the O/C with a new message. Please be so kind and take a look at the attached screenshot. Do you have any idea why the error occurs?
    Best regards,
    Benjamin

    Hi Susan,
    Please be so kind and take a look at the SAP-note 2017440 - Communication strategy cleared in message output  . In my case this solved the problem.
    Best regards,
    Benjamin

  • Problem in maintaining communication strategy

    Hi All,
    I have the error message TK455 when creating or modifying a communication strategy.
    The first field is named "Position" and is a 'numc' type field.
    I tried to give 1 or 01 but it keeps giving error message
    "Enter numeric values only"
    The detailed error description is:
    Message no. TK455
    Diagnosis
    The value "  " was entered in the field "POS".
    This is not possible because it is a numeric field where only numbers may be entered.
    The length of the field is 000002.
    System Response
    The entry was not accepted.
    Procedure
    Enter only numeric values in this field.
    I couldn't find any information relating to this is OSS notes.
    If anybody has the solution, I'm interested.
    Thanks in advance
    Sonali

    SAP gave solution

  • Inter portlet communication in SP4

    Can any one tell me in step by step process with sample code to do inter portlet communication in SP4
    Here i have 2 portlets
    Portlet A and portlet B
    Portlet A has 2 hyperlinks link1 and link2
    When i click link1 or link2 in portlet A, i am passing a parameter,depends on the paramater i have to display some details in portlet B
    Thanks
    maria
    [email protected]
    Message was edited by marianair at Feb 10, 2005 2:27 AM

    hi,
    implement both portlets as page flow portlets. For both the links in portlet A, implement an action that generates an event and fires thisone. Then let the pageflow in portlet A show whatever content is appropriate, eg. the same as before the link.
    Portlet B cathces this event and in the connected pageflow action does whatever it needs to do and redirects to the appripriate JSP.
    Just remeber that you probably needs to use a custom event here.
    For details on IPC and events, see doc:
    http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm_wkshp.html
    As an alternative you can use the SP3 mechanism, I find thisone somewhat more cumbersome and messy.
    http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm.html
    Feel free to post follow-ups if you get stuck.
    - Anders M.

  • Event interface for inter-portlet communication

    In which jar file can I find the com.bea.netuix.events.Event interface?
    I wish to offer some support for inter-portlet communication while running inside a 8.1sp4 weblogic portal server.
    Firstly, there is almost no documentation for working with Custom/Generic Events and definitely none for working with "Invoke a java portlet method"
    Found out by decompiling the code that you can do the following:
    add methodName(HttpServletRequest, HttpServletResponse, Event) to you backing file, or
    add methodName(ActionRequest, ActionResponse, Event) to your java portlet
    In both cases, I need find the jar file containing the "Event" interface. Have found most of the other classes in netuix_servlet.jar
    Would also appreciate any further info on when the above methods actually get called with respect to the "processAction" and "processRender" methods for jsr168 portlets...

    Found the answer after a pretty manual search - its located inside:
    BEA_HOME/weblogic81/portal/lib/netuix/system/netuix_system.jar
    All other interfaces being inside the WEB-INF/lib/netuix_servlet.jar, this one class from this package has been packed into a jar at the system classpath level!!
    Had to manually look at the classpath in startWeblogic.cmd and then open up every jar file, follow dependent jar files via the manifest.mf etc...

  • Inter Portlet communication without using workshop

    Hi
    Does any one have any luck trying to do inter portlet communication without using weblogic workshop IDE?

    Hi Curt,
    WLP's eventing system is designed such that portlet's don't have to care
    whether the source/destination is local or remote. If you have a portlet
    that fires/consumes events, when you create a proxy portlet on a
    consumer, the portlet on the producer will be able to fire and receive
    events without any changes to it. In this scenario, the proxy portlets
    work with the WLP's event runtime to collect and dispatch events on
    behalf of portlets on the producer. Going forward, WSRP 2.0 and
    JSR168-next's eventing models will be mapped to the same WLP event runtime.
    Subbu
    Curt Smith wrote:
    Thanks Subbu for your enlightenment here and in this group!!
    You mentioned my next quest, WSRP'ifying my portlet & IPC system.
    Can you suggest an WSRP example anywhere on the net or in bea?
    I guessing that suitability of IPC is also a function of whether the portlets are the remote portlets or the local portlets.
    Might a non-Bea IPC choice be usable within the local portlets, which are WSRP clients to stand alone remote portlets?
    I can imagine now that you mention it that the remote WRSP producer portlets can't use just any IPC facility and the events be pushed inband to the consumer portal...
    tnx curt

  • Inter portlet communication using a float portlet

    Hi,
    I am trying to achieve inter portlet communication between a jsp portlet and a pageflow portlet.
    The jsp portlet will open up as a pop up window or as a float portlet.
    I am using BEA Weblogic 8.1 SP5.
    Has any body tried this IPC when the jsp portlet is a float portlet?
    If there is any documentation available for the same?
    Thanks,
    Shreesh

    Hi,
    Thanks for the reply.
    In the search.jsp I am adding an action associated with a form bean, and passing the search string to the form, which will pass the request to the action method. This is the code snippet:
    * @jpf:action
    * @jpf:forward name="success" path="search.jsp"
    protected Forward searchcriteria(SearchcriteriaForm form)
    String searchString = form.getString();
    try {
    URL url = new URL("http://localhost/demo_search.asp");
    HttpURLConnection http = (HttpURLConnection) url.openConnection();
    http.setRequestMethod("POST");
    PrintStream out=new PrintStream(http.getOutputStream());
    out.println("searchParam=searchstring");
    out.flush();
    out.close();
    BufferedReader reader=new BufferedReader(new InputStreamReader(http.getInputStream()));
    reader.readLine();
    String patternStr = "pattern";
    Pattern pattern = Pattern.compile(patternStr);
    Matcher matcher = pattern.matcher("<a href");
    // Retrieve all lines that match pattern
    String line = null;
    while ((line = reader.readLine()) != null)
    out.println("***"+line+"***");
    matcher.reset(line);
    if (matcher.find()) {
    // line matches the pattern
    } catch(Exception e)
    e.printStackTrace();
    return new Forward("success");
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class SearchcriteriaForm extends FormData
    private String string;
    public void setString(String string)
    this.string = string;
    public String getString()
    return this.string;
    The question is what should be the return forward for the search coz, the result should be displayed in a seperate portlet. Also, how do I capture only the result in the result.jsp.
    I would appreciate if you help me,
    Thanks in Advance,
    Sailatha

  • Struts Portlet - inter Portlet communication

    Hi
    How to make inter Portlet communication in Struts portlets?
    Thanks
    Subin

    A quick google search brought back this:
    http://download.oracle.com/docs/cd/B15904_01/portal.1012/b14134/pdg_java.htm

  • How to perform inter-portlet communication in alui6.1.

    I want to perform perform inter-portlet communication in alui6.1. I don't have any clue to how to do it.
    Can anyone help me.

    Frankly, I did it using jQuery. When you have just two portlests on page, you can hardcode object id of second portlet in a code (not so nice, but very fast to see results). Otherwise you can use portlet settings to stay more environment independent.
    In brief, in first portlet via ajax I request for data, using css selector jQuery, paste content to div in second portlet.

Maybe you are looking for

  • No contacs after firmware upgrade on N70

    Hi I did a firmware upgrade yesterday on my N70 using NSU. Of course I did a backup using the uptodate Nokia PC suite. After the firmware upgrade I saved the data back to the phone aagin using the Nokia PC suite. Everything looks good except that no

  • Partitioning attempts seems to have tripled the data on my hard drive

    Greetings, I am on a 2008 24" imac running Snow Leopard 10.6.8.  I have been attempting to partition my hard drive so that I can install linux. My various partitioning attempts have  resulted in a hardrive that contain more than 3 times the data than

  • Info record mandatory

    Dear All, I want to make info record as mandatory without which no one should raise PO, where do I need to do this setting.  Kindly Guide. Rgds Srini

  • Mac Pro 2008 having boot issues...

    Hi, My Mac Pro is having boot issues,It occasionally gets stuck when I turn it on and the fans go up a bit then I just get a grey screen, sometimes just shutting down and restarting works and sometimes not. I repaired the disc though it says has no i

  • License WCS (Wireless Control System) Problem to install

    Hello, I'm Christopher, I have a need to update the WCS and license this, but when I perform the load operation, this throws me this message. "You must have Base a license in order to install an upgrade license" How I can fix it?