How to communicate between instances of Labview application?

Hello, I have a question on how to communicate data between two instances of labview application on different computers connected via a network.

I'll explain what I'm doing:

I have a data acquisition program that was divided into two independent parts. The backend is responisible for the acquisition of data from several DAQ hardware, and the interface simply displays the data collected. The two parties are coupled by events in labview. The backend sends a new event data (for any one listening) whenever he gets new data and the frontend listens to these events and updates of some graphics on the front panel each time it receives this event. Other than the two parties have no communication.

Now it is necessary to split the frontend and backend on two different computers, connected via a network. The backend will be connected to DAQ devices as usual, but the frontend is running on another computer.

So my questions are: will be the my current communication mechanism still work on multiple instances of labview application? And if not, what is the best way to connect the two in a minimum amount of new code, and without interrupting the current program, if I decided to their port of return on the same computer?

(I thought that a kind of middle-man would be the best who is responsible for networking).

Please, any advice will be useful!

Paul.

I think that the best way to do this is a TCP/IP link.  You can do it, as you suggested, with a pair of 'intermediate' screw at one end, catch you user events in a VI and send them over the network; on the other end, you receive data and turn it into an event, requiring minimal changes to the rest of your code.  The TCP/IP screws are pretty easy to use and there are good examples of LabVIEW.  NEITHER offers the Simple e-mail reference library.  You can also watch "robust TCP' Jack Hamilton of LabUseful.com (WARNING: I've never used or not even watched these screws and cannot check they are really helpful, I have seen discussion and links to them).

Tags: NI Software

Similar Questions

  • How to communicate between different applications on 1 Server?

    As the title says: how to communicate between different applications on 1 Server?

    I'm new to FMS and I am trying to build a program that I need to have a communication between 2 or more applications on the same server.

    How to do this?

    There are several ways to do so.

    1. the favorite for me is make a NetConnection instance of an application to another and make calls between the two using .call NC on one side and client.call interface on the other side

    2. you can use the objects proxy shared to affect this change even

    3 build your own interface for that use the remote features

    Just some thoughts.

    ASA

  • How to avoid multiple instances of the application

    Hello

    I would like to know how I can to avoid multiple instances of my request, my application have an option to "invoke later" which will awaken the application after xx minutes but where the user clicks on the icon of the application, for example, a few seconds before he must wake up he will see 2 instances open my application.

    Currently, the work around I did is check at every opening, if there is already an open instance and if so to 'kill' later, but I would like to know if there is a more elegant way to do it.

    THX.

    You create a new ApplicationDescriptor - you say the BlackBerry OS that it is a new Application.

    If you use this method, and then the user clicks on the new icon, they will get also running two instances.  Here is a code that restarts the application 'running', that I think that it what you want.

    ApplicationDescriptor current = ApplicationDescriptor.currentApplicationDescriptor ();
    ApplicationManager.getApplicationManager (.scheduleApplication) (current, System.currentTimeMillis (+ 2001), true);
    System.Exit (0);

  • How to communicate between the host and the guest in a stand-alone PC

    I have a professional Standalone XP (host) that is not connected to a network. I created a host (XP Professional) using vmware. Pls know me how to communicate and transfer files between the guest and the host.

    Pls post the procedure or send it to [email protected]

    Thanks and greetings

    Ganesh.

    Use "NAT" or "Host-Only' networking for your virtual machine, NOT bridged.

    Activate a shared folder on your virtual computer configuration, map as a network of virtual machine of your shared folder on the host drive.

    Good bye

    Riccardo Riva

    VCP, RHCE, FCNSA

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '. Thank you!

  • How to communicate between AEGPs?

    Hi all

    Is it possible to communicate between AEGPs? I know that by adding more, we can communicate between effect and ECAP. We can also communicate between AEGPs with the Suite?

    Thank you and best regards,

    Dheeraj

    Yes, a custom suite is the way to go.

    Wait with the help of the suite after you are sure al the AEGPs loaded, otherwise you can try to use the suite before it has been set.

    you do not have this problem using a suite in an effect because AE loads AEGPs first, and then only the effects.

    the first call of idle would be a good time to load more.

  • How to communicate between two application mxml?

    Hi ~ all.

    A.MXML a TabNavigator.

    I want to connect 1 tab in TabNavigator to First.mxml.

    First.MXML is a complete application.

    First.MXML can work alone.

    How can I view First.mxml in the 1st tab of A.mxml?

    Sorry for my English.

    Thanks in advance.

    Kevin.

    I found the solution.

    http://opensource.Adobe.com/wiki/display/FlexSDK/spark+module+and+moduleLoader

    Thank you.

    Kevin.

  • How we communicate between 2 Mobile Applications developed in the MAF

    We have a scenario in which we want to launch another mobile app with some input parameters. Please let me know a way to do it. Can be done by using the scope Managed beans?

    Hello

    Yo taste which is documented here?

    4 definition of a Mobile Application (version 2.0.0.0.0)

    Frank

  • How to communicate between ExtendScript and basic generator

    I run a separate node server as described in this tutorial to create a plugin with generator-core. http://tomkrcha.com/?p=3896

    I'm in a situation where I need to send a lot of JS to photoshop via generator.evaluateJSXString (). But it can easily become uncontrollable that you can send a string. So, for any complicated feature, it becomes difficult to maintain. Is it possible set a bunch of functions in a script to measure file and then call these functions from the application node?

    So I could send:

    generator.evaluateJSXString ('doSomeStuff ()');

    And in a script somewhere (I don't know where this script should go)

    I have the defined function that can do something

    function doSomeStuff() {}

    for (var i = 0; i < 10; i ++) {}

    doc.artLayers.add ();

    }

    }

    Where the Script to extend file would in this case? OR is there a better way to make this kind of thing.

    Just a mixed collection of thoughts:

    • Yes, you can package scripts in the form of .jsx files (also jsxbin if you prefer not to share the source) and run with generator.evaluateJSXFile (path), which will work even in ESTK. It has some limitations

      • It is just a file that runs, that is not this function 'call '. I managed this by dividing my Javascript libraries and plugins (= this a function). Can I use Gulp to concatenate libraries necessary for each plugin to create scripts of jsx 20 + that I call the two panels of node & Photoshop
      • There is no parameter passing, but it can be overcome by the presence of a script (that you run a string) parameter store (or fetch result) to Photoshop as a descriptor of persistent custom action
    • The plugin folder where your main.js is accessible by Node.js variable '__dirname '.
    • Depending on how you use paths, you should consider Windows "------" vs. Mac ' / '.
    • Another good way of communication between the panels of Photoshop and the node is a Web server in the configuration node and use Ajax/jQuery in Panel of Photoshop. You can do ~ 500ms update on election and get feedback from Panel pretty real time.
  • How to communicate between JSP and jsf/jspx/managed bean using ADF11gR2

    Hello

    Scenario1.

    I use Jdeveloper 11 g R2, I am developing an application in the ADF. In our application, we implement of payment gateway.
    Application of the ADF, we call payment gateway.
    inside the payment2.jspx
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * < af:commandButton text = "#{res ['makepayment_2.totalpaymentthroughknet ']}" id = "cb1" action = "#{makePayment2.callPaymentGatway}" / > * "
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PaymentGatwayManagebean Method callPaymentGatway()
    public void callPaymentGatway() {
    > System.out.println ("Hi callKnetMethod method called");}
    > String payUrl, payId = null;
    > HashMap hm = new HashMap();
    > HttpServletRequest request = (HttpServletRequest) (JSFUtils.getFacesContext ()) .getExternalContext () .getRequest ();
    > logger.info ("-> callKnetMethod method called");
    > hm = KnetUtils.knetInitialize ("1", "2", "3", "4", "5", "6", "7");
    > payUrl = (String) hm.get ("PayUrl");
    > payId = (String) hm.get ("PayId");
    > request.setAttribute ("knetRedirect", "true");
    > try {}
    > KnetUtils.knetPay (payUrl, payId);
    >} catch (Exception e) {}
    > e.printStackTrace ();
    {>}
    }
    the above method called Paymentgateway after response from gateway payment successful return transaction with some data as the id of the transaction, the name of the Bank, amount, train etc. all data by adding to the URL
    Exodus http://192.168.102.41:7101/amificweb/faces/ami/repback.jsp?paymentId="+paymentId+"& result ="+ result +"& auth ="+ auth +"& ref ="+ ref +"& postdate ="+ post +"& trackid ="+ trackid +"& amp; tranid = "+ tranid + ' & udf1 =" + udf1 + ' & udf2 = ' + udf2 + ' & udf3 = "+ udf3 +" & udf4 = "+ udf4 +" & udf5 = "+ udf5;

    *Current repback.jsp page*
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    < %
    Payment gateway data take into repback.jsp
    > String paymentId = request.getParameter("paymentid");
    > String ErrorNo = request.getParameter("Error");
    > String udf1 = request.getParameter("udf1");
    > string udf2 = request.getParameter("udf2");
    > string udf3 = request.getParameter("udf3");
    > string udf4 = request.getParameter("udf4");
    > string udf5 = request.getParameter("udf5");
    > System.out.println (request.getParameter("result").toString ());
    > if (request.getParameter("result").equalsIgnoreCase ("CAPTURED")) {}
    > result = request.getParameter("result");
    > are later = request.getParameter ("postdate");
    > tranid = request.getParameter("tranid");
    > auth = request.getParameter("auth");
    > trackid = request.getParameter("trackid");
    > Ref = request.getParameter("ref");
    >
    > out.println ("REDIRECT = http://192.168.102.41:7101/amificweb/faces/ami/*voucherPrinting1.jsp*?paymentId="+paymentId+ "& result =" + result + "& auth =" + auth + "& > Ref =" + ref + "& > postdatent =" + postdatent + "& trackid =" + trackid + "& tranid =" + tranid + "& udf1 =" + udf1 + "& udf2 =" + udf2 + "& udf3 =" + udf3 + "& udf4 =" + udf4 + "& udf5 =" + udf5 "); {
    } else if (request.getParameter("result").equalsIgnoreCase ("CANCELED")) {
    > result = request.getParameter("result");}
    >
    out.println ("REDIRECT =http://192.168.102.41:7101/amificweb/faces/ami/Error1.jsp?paymentId=" + paymentId + "& result =" + result + "& ErrorText =" + ErrorText);
    >}
    > % >
    -
    In the present scenario I can redirect from repack.jsp to voucherPrinting1.jsp and I can take all of the data in the jsp page.

    But I want all the data * CallPaymentGatwayManagebean * method, how can I do. ?

    How communication between jsp and jsf, jsff, jspx, managedbean?



    Maroof

    You must save the config.xml file adfc bean in the scope of the request this ways you can call the method any page bean.

    Also have you tried using the pages in a taskflow with jspx and saving the bean in the taskflow which is a better approach?

  • How to communicate between clients?

    Hi all

    Of course it can be done with Flex after seeing the internet meeting room request which is developed by Adobe. And my goal is similar to that. One of the clients is the host which acts as an information centre, while all other customers can read/write data with the host. As far as I know, there is a LocalConnection object. But customers are located in various locations, how can we share LocalConnection? Or y at - it another way to reach my goal?
    All the tips and ideas are appreciated. And more detailed the better.

    Thank you and best regards,
    Felix

    You will need a server. BlazeDS is open source free alternative to LiveCycle Data Services business and more capable.

    And it's not BlazeDS * just * bridge between java and flex. It is a lot more particularly with its real-time e-mail close. And that's what you're looking for.

    Read and run these demos:

    http://coenraets.org/blog/2008/04/Yahoo-maps-collaboration-using-Flex-and-BlazeDS/

    http://www.Adobe.com/devnet/flex/articles/yahoomaps_collaboration.html

    and finally, click this URL in two separate browsers:

    http://coenraets.org/samples/flexmaps/flexmaps.html

    Connect and start playing!

    ATTA

  • How to communicate between two screens

    hiiiiiiii refugees...

    Today, my task is a communication between two screens...

    I created a screen that I view the image and the name of the image...

    control of the screen, it is in the two screen...

    Please tell hw to switch returns it an amusement value in two screen display a...

    The best way would be something along the lines of:

    Screen1.Java

    SerializableAttribute public class Screen1 extends {}

    ...

    public void updateScreen (int value) {}

    update of the screen accordingly using setText, setBitmap, setLabel and other

    ...

    Invalidate(); Maybe not even that - the screen will be repainted once you jump Screen2

    }

    in response to the pressure of the button

    Screen 2 scr = new Screen2 (this);

    UiApplication.getUiApplication () .pushScreen (scr);

    ...

    } / / End of Screen1.java

    Screen2.Java

    SerializableAttribute public class Screen2 extends {}

    ...

    private _parent Screen1;

    public Screen2 (Screen1 parent) {}

    Super();

    _parent = parent;

    ...

    }

    In response to the button that is clicked

    _parent.updateScreen (valueAssociatedWithThisRadioButton);

    ...

    } / / End of Screen2

  • How to communicate between two SWFs residing in different web pages

    Hello

    I don't know about the connection class Local linking two SWFs in the same web page.

    But, kindly let me know if there is a way to connect to two sovereign wealth funds residing in different web pages.

    Thank you.

    LocalConnection can be used for sovereign funds in different Web pages.  they may even be in different browsers or even not in a browser.

    they have just the two must be open on the same local computer at the same time.

    If they are both open on the local computer even at different times, use the sharedobject.  otherwise, use localconnection.

  • Get the name of the Instance of the Application in an IOM PrePopulationAdapter

    We have at disposal of the IOM to multiple Active Directory domains. To do this, we installed a connector AD, Multiple Instances of the Application of several Instances of IT resources, while using one and the same resource object and form. Self-service console we want to request an account (Instance of the Application) to a user, and we can choose AD1, AD2, and AD3. When we choose, lets say, AD3 do we want to pre-fill the field organization name (OU in AD) with a specific organizational unit in Active Directory corresponding to the Application Instance AD3. The problem is that in the PrepopulationAdapter we have not managed to identify the instance of the application of demand.

    Here's how to get the instance of the application of demand in an adapter to prepopulate:

    prepopulate (RequestData requestData) serializable public get {RequestServiceException}
    String response = "";
    RequestBeneficiaryEntity targetEntity = requestData.getBeneficiaries () .get (0) .getTargetEntities () .get (0);
    EntityType of OIMType = targetEntity.getRequestEntityType ();
    If (entityType! = OIMType.ApplicationInstance)
    Return ' ';

    try {}
    String entitySubType = targetEntity.getEntitySubType ();
    ApplicationInstance appInst is getAppService () .findApplicationInstanceByName (entitySubType);.

    .... Continue your own code

    getAppService is the ApplicationInstanceService API.

    -Kevin

  • How bridge communicates with third-party applications?

    Hello

    Is it possible to communicate between Adobe Bridge and a third party request help SDK bridge?

    I want to learn how bridge can communicate with another application? SDK bridge have samples that explain how the bridge communicates with other applications such as Photoshop and Indesign Adobe. Can someone guide me or give me a sample where bridge communicates with a third-party application?

    Thank you.

    There is no direct access to the deck from a non Adobe application.

    If you need to access bridge, it must be done via another application such as Photoshop Adobe. THAT IS TO SAY: -.

    C# - Photoshop - bridge

    You must use BridgeTalk to send and receive messages between Photoshop and Bridge.

  • How can I pass data between DIAdem and LabVIEW?

    Hello community,

    in fact I use a LabVIEW application to control a test system, collect data and store it in a file.

    DIAdem is executed (using ITOCommand) and then create a report (PDF).

    This works already.

    But also, I would like to receive a return value of tiara, a real number, as for example the register R1.

    No idea how can be achieved?

    Thank you!

    Espelkamper

    Declare records, variables in the script of tiara that store the calculated result. Read records in labview

Maybe you are looking for

  • Alignment on the tabs

    After you have installed the version 23, I went to About: Config to change the location of the tabs right at the top of the page. But now, the tabs are centered, i.e. the first tab is on the center of the screen, and other tabs follow on the right wi

  • How can I add more dedicated to my video card RAM?

    I've had this computer for 2 years and I want to know how to increase my video Ram in order to run newer games. As far as I know, I need to access my BIOS. I tried to restart my computer and I tried many keys to function as F1, F2, F10 and Delete, bu

  • HP laptop: Hp laptop screen on the side

    This morning I turned on my laptop mode 'sleep' and that's on the side, I don't know why it happened, but it happened once, but my son pressed a few letters on the keyboard and it happened

  • Tried everything - Vista still does not recognize printer Epson!

    I have Vista Home Premium 32-bit. I spent HOURS trying to get my printer Epson CX7800 installed. I get the error unknown device and after trying to install the printer software, the message that the device is not working properly. The CX7800 is compa

  • Display the sum of all salaries of employees @ footer section

    Hi team,I use Jdev 11.1.2.3.0 version.I have a requirement where I need to see the sum of all the wages of employees in the employee table footer section in the user interface.Is there a declarative approach to this question without using any method