Best way of sending signals between two VIs

Hello all,
I have two VIs. One that generate some complicated signals (sine wave, impulse, etc.). The other one takes manually inputted voltage and pressure send them out to some hardware with a pump, and reads back the output of the pump.
What is the best way of sending the waveforms from the signal VI to the manual control VI? I still need to be able to control the signals manually in that manual control VI.
Thanks.
Solved!
Go to Solution.

nitad54448 wrote:
hi
For exactly this kind of process, I am using queues, FG and (relax ppl, I know..) global variables. If you are writting a global in one Vi and reading it in another (to prevent accidental (fake)updating); globals are easy to implement. Many people hate them (I do, sometimes) but for these kind of cases I think they are well adapted.
For FG you need a user control and a vi for each variable you want to share... Both FG and globals are "bottle in the ocean" like of information : you send some info and sometimes this info will arrive somewhere...
If you need to be sure that the info is passed then Queues are to be used...
N
While you may not run into race conditions using global variables in a write once/read many approach they do not protect you from some part of your application deciding to write to them. FG at least provide some level of protecting access while globals do not. In addition, global variables can create multiple copies of your data. If your data is large, this can be problematic. I much prefered using a defined messaging scheme. The intent is very clear and you can provide safe guards. Even FGs are better. I personally would never recommend the use of global variables even though some cases MAY work out. A defined API is always a prefered approach and helps to keep the code modular and decoupled. This leads to greater reuse. Global variables tie things together and make reuse more difficult.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Best way to get internet between two buildings???

    Hello all! I have some questions about a possible setup I am thinking of running.
    I have building that has internet coming into it. 15yds away, I have another building (which is brick) that has no internet options. I was thinking about buying two Airport Extreme's, making one the base and using the other one in the other building the access point for WDS. Then buy a couple of the Airport Expresses to push the signal throughout that building.
    Thoughts on this? Is there a better way to get internet between two buildings (without running cables) and then push it through out that building?
    I am open to any an all suggestions.
    Thanks,
    Grant

    Welcome to the discussions!
    Ethernet is always the best choice for signal strength and reliability. If you do not want to run ethernet cable to the second building, your options are down to ethernet powerline adapters and wireless.
    The ethernet powerline adapters work by transmitting the ethernet signal over the AC power line. The difficulty here may be that the other building is on a different electrical circuit, so it may or may not work depending on how the electrical wiring is configured. An electrician could run tests to see if this would work.
    The least reliable option is wireless. To have the best chance of working well, the "sending" and "receiving" routers need to be able to "see" each other through a window or other opening. Be sure to test with a laptop in the second location to see if you will have a strong enough signal to work with before you go this route.

  • Best way to transfer file between two web apps

    I'm looking for some architectural suggestions. Seems like a simple problem, but I'm really struggling.
    -- Problem:
    We have two web servers, both running apps in JBoss. I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it.
    -- Details:
    Seems simple enough... My plan was to write a web service to pass it. Our company is all onboard the SOA train. I wrote a service that encoded the file as a byte[] and passed it. Works amazing for small files, but throws an Axis OutOfMemory error when trying to base64 encode the file. I then looked at using attachments for web services, but dismissed that. It creates malformed XML since it treats the service as a multipart MIME message wraps the webservice inside. It quickly became messy and I couldn't get it working. Seemed to defeat the purpose of an XML service too.
    I've considered just doing a HTTP POST of the file to the other server, but that's poorly documented and a bit of a hack way to do it. I also considered just dropping the file in a web accessible folder, then using a web service to pass a URL and get the other server to retrieve it via HTTP. Again, not a very nice solution.
    Anyone have any suggestions? Thanks.

    Kimos2 wrote:
    I don't have access to run/configure services on these machines, so FTP is out. It has to be JVM to JVM. Even if I did, I'd have to worry about triggering JBoss to process the file right away after it had been dropped there. I know i could poll the directory or send a message to trigger the process, there'd be synchronization issues etc to work through and seems to introduce unneeded complication.Yes, I agree with that. Having been through the polling directories and grabbing partially uploaded files scenario ad nauseam. It's much worse with large files too.
    Barring any suggestions I haven't thought of, I'll probably end up settling on the HTTP POST solution. My problem is that it's providing a service without a specification and is not self-describing. No WSDL file to pass to clients that plan on using it. I would do HTTP POST as well. I didn't understand the part about "without a specification". You do have a specification, don't you? Wasn't this it: "I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it." Informal, yes, but I don't have a problem with that. Post it to a URL on the receiving server and set up the receiving server to do whatever it's supposed to do with the file.

  • Best way to encrypt sockets between two servers

    Yellow, Im developing 2 server, both of them are in different places, they need to talk with each other. What do you recomend to encrypt theyr messages ? SSL ? Is there any way to identify Server A is really server A and he wants to start talking with server B and vice versa, no passwords are required here, is this possible ?

    Hi,
    You can use SSL with client authentication. With this approach, the server that is the current client (even though they are both servers, one will act as a client) can verify the server certificate of the other, it can then send a client certificate to the the server so that it is able to authenticate it.
    Cheers,
    Shane

  • Best way to get different between two timestamp

    Hi all is a simple question?
    I want the different in days between 2 timestamp.
    The timestamp can be of different year.
    Any solution?

    pedriky wrote:
    Can be a solution form many situation?
    long difMil = new Long( (timestamp1.getTime() - timestamp.getTime())+"");
    int milxday = 24 * 60 * 60 * 1000;
    difMil= difMil / milxday;Why the incredibly messy subtraction?
    What's wrong with:
    long difMil = timeStamp1.getTime() - timeStamp.getTime();
    int days = (int)((difMil + 12 * 3600000L) / (24 * 3600000L));NB, if you don't round your division you can get problems where daylight saving time shifts the start of the interval forward an hour.

  • Different ways to copy data between two schemas in one instance

    Hi there,
    I am searching a good way to copy data between two schemas in the same instance.
    Both schemas have an identical structure such as triggers, tables, views and so on. The only difference is the purpose: one is the productivity system and one is for development.
    I looked at datapump but I do not explicit want to export / import. I want to keep the data in the productivity schema as well as copy it to the other schema. Any ideas? I found out there is a copy statement but I dont't know how that works.
    Thank you so far,
    Jörn

    Thank you for your replies!
    I also thought of creating a second instance for development and move the dev - schema to it. I just don't know whether our server can handle both (performance?). Anyway the idea is to have a possibility to quickly rebuild the data inside a schema without indixes or triggers, just pure data. I thought the easiest way would be to copy the data between the schemas as they are exactly the same. However if you tell me DataPunp is the best solution i won't deny using it :).
    When you export data a file is created. does that also mean that the exported data is deleted inside the schema?
    best regards
    Jörn
    Ps: Guido, you are following me, aren' t you? ;-)

  • Best way to transfer video between iphone and mac wirelessly?

    Please suggest me the best way to transfer files between mac and iphone wirelessly.Mainly for videos.

    If you want to transfer photos and videos from the Mac to the iPhone (but not in the other direction) you can use iTunes and sync via wi-fi: http://support.apple.com/kb/HT1386
    If you want to wirelessly tranfer videos in the other direction you may want to look into a 3rd party app such as http://www.photosync-app.com Note that I have not used that app so be sure to investigate others as well.

  • Best way to send an procedure/function output to the application

    Hello,
    What is the best way to send the output of a PL/SQL function / procedure to the application in Oracle 11g. I understand that it could be different for applications built in JAVA , .Net , SAP etc.
    Could you please give a brief overview on all possible application makes.
    Thanks,
    Haider

    Anyway, the answer is yes, v$version is derived from x$version :
    SQL> desc x$version
    Name                                      Null?    Type
    ADDR                                               RAW(8)
    INDX                                               NUMBER
    INST_ID                                            NUMBER
    BANNER                                             VARCHAR2(80)
    SQL> select INDX,BANNER from x$version;
          INDX
    BANNER
             0
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
             1
    PL/SQL Release 11.2.0.3.0 - Production
             2
    CORE    11.2.0.3.0      Production
             3
    TNS for Linux: Version 11.2.0.3.0 - Production
             4
    NLSRTL Version 11.2.0.3.0 - Production
    SQL>

  • Best way to send printer control codes?

    What's the best way to send printer control codes in Netware 3.12? Should I
    use a batch file that's run each time a particular queue is selected, or is
    there something I should be doing with a pconsole option? I'm trying to get
    rid of extra linefeeds and enable compressed printing. DOS environment, by
    the way.
    The printer in question is an Ithaca Pcos Series 50 ( #52 pn-06-0629), which
    isn't one of the standard ones listed in Pconsole etc. It may emulate a
    standard IBM though.
    Thanks-
    --Mike-- Chain Reaction Bicycles
    www.ChainReactionBicycles.com

    > What's the best way to send printer control codes in Netware 3.12? Should
    > I use a batch file that's run each time a particular queue is selected, or
    > is there something I should be doing with a pconsole option? I'm trying to
    > get rid of extra linefeeds and enable compressed printing. DOS
    > environment, by the way.
    Never mind, I'm in a habit of answering my own posts these days. Just create
    a job configuration in printcon that uses a device with the appropriate
    device modes.
    Is it just me, or is Netware queue-based printing a bit on the obtuse side?
    Seems like it could have been made a whole lot easier (more linear?) to set
    up.
    --Mike-- Chain Reaction Bicycles
    www.ChainReactionBicycles.com

  • Best Way To Send Arrays to ActiveX

    What's the best way to send array data to an ActiveX object? Do you
    have any examples that you can show me? Are there any alternatives to
    the "best way"?
    Thanks,
    Scott

    > What's the best way to send printer control codes in Netware 3.12? Should
    > I use a batch file that's run each time a particular queue is selected, or
    > is there something I should be doing with a pconsole option? I'm trying to
    > get rid of extra linefeeds and enable compressed printing. DOS
    > environment, by the way.
    Never mind, I'm in a habit of answering my own posts these days. Just create
    a job configuration in printcon that uses a device with the appropriate
    device modes.
    Is it just me, or is Netware queue-based printing a bit on the obtuse side?
    Seems like it could have been made a whole lot easier (more linear?) to set
    up.
    --Mike-- Chain Reaction Bicycles
    www.ChainReactionBicycles.com

  • Best way to send multiple emails

    Hi,
    what is the best way to send different emails in batches in one
    smtp session? Lets say 50 emails in one smtp session.
    Is the smtp session closed after I call Transport.send() ?
    In general I can not find a hint when a smtp session gets established and when
    the session gets closed.
    Thank you for any suggestions,
    Oliver

    The answer is in the [JavaMail FAQ|http://java.sun.com/products/javamail/FAQ.html#rptsend].

  • Best way to send a jtextfield with a button action

    i have searched the internet and forums and cannot find this answer... does anyone have a best way to send the data in a jtextfield when a button is clicked? thank you.

    Window.java
    public class Window extends JFrame
        public Window()
            JPanel panel = new JPanel(new FlowLayout());
            JLabel hostLabel = new JLabel("hostname or IP address: ");
            JTextField hostname = new JTextField(20);
            JButton checkButton = new JButton("Check");
            checkButton.addActionListener(new CheckEvent());
            panel.add(hostLabel);
            panel.add(hostname);
            panel.add(checkButton);
    }CheckEvent.java
    public class CheckEvent extends AbstractAction
        public CheckEvent()
            super();
        @Override
        public void actionPerformed(ActionEvent event)
            System.out.println(event);
            boolean serverReachable = false;
            try
                InetAddress server = InetAddress.getByName(hostname);
                System.out.println("\t\tName: " + server.getHostName());
                System.out.println("\t\tAddr: " + server.getHostAddress());
                System.out.println("\t\tReach: " + server.isReachable(300));
                serverReachable = server.isReachable(30);
            catch (UnknownHostException e)
                System.err.println("Unable to lookup" + hostname);
            catch (IOException e)
                System.err.println("Unable to reach "+ hostname);
            return serverReachable;
    }My problem lies in the hostname jtextfield that i want to send the string to the CheckEvent.java.
    Thank you.

  • Best Way to send data from InfoProvider to DBTable

    Hi all,
    I need some advices on this subject :
    I want to send some data, stocked in several InfoCubes, to a table.
    This cubes are linked by a multicube (for queries).
    I don't know the best way to send the data in a table :
    - Use Open hub on each cube to send data
    - Use ABAP code for extract data directly from MultiCube (possible?)
    - Use open hub on multiprovider (I think it's not possible to plug a open hub to the Multiprovider...)
    What is the best practice on that?
    Can you help me please?
    Thanks in advance,
    Adrien.

    Oh yes, my mistake.
    I didn't think abuot the APD solution.
    I think it should be a good one...
    With the ABAP, it seems very difficult indeed.
    I'm gonna check this way ! Thanks for your help Daniel !
    And except the licence cost, the Open hub should be a good solution??
    Edited by: Adrien Loire on Oct 1, 2010 10:34 AM

  • Best way to transfer data between loops?

    Hi, whats the best way to transfer data between loops(state machines, regular while loop etc) in labview. For so many years ive been using local variables but these can cause race conditions. Anyone advise?
    Stu

    It depends one the structure of the loops and how they need to exchange data (unidirectional, bidirectional, broadcasting).
    The simple case of one loop passing data to the other loop: producer/consumer design pattern using a queue
    If the structure already contains an event structure: User Events
    The way I code is documented in my community nugget on events
    I often mix this with producer/consumer.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Best way to transfer data between iMac early 2006 and iMac late 2012

    What is the best way to transfer data between iMac early 2006 and iMac late 2012?

    HI, is this for Migrating all data ove, or just File Sharing?
    What OSX version is in he older one?
    Do you have any backup external drive for the older one?

Maybe you are looking for

  • In approval workflow, can we have one action in which item can be review and approve/reject

    Hello, I have created approval workflow using SPD. While sending notification to approver, we need to mention link for viewing : [%TaskProcess:Item Title%][%Variable:InternetLink%] and for approve/reject : [%current task: form_URN%] So is it possible

  • Instantiating a Custom Component

    I am somewhat new to this concept and I keep thinking about things the ActionScript 2 way where we can say: createObject(refObject,instanceName,depth,constructorObject); I am instantiating custom MXML components using a technique similar to the follo

  • Itunes sees iPad as an iPhone under the App tab...

    I'm having trouble getting iTunes to recognize the iPad as IPAD and iTunes think it's an iPhone, so essentically, it wouldn't install any iPad specific apps on my iPad. Anyone having this same problem and how to solve it? I restore it factory once an

  • Same Goods Issue and Goods Receipt date being sent to APO from R/3

    Hello to all, Good day. I would just like to ask on why we do have same GI date and GR date being sent to APO from R/3 on particular materials for plant ABCD.  Now,  any further checks needed on this matter?  seems to me that the Movement type is Y79

  • Query AD Contacts

    I know how to query AD users, but is there a way to query AD Contacts? I changed the objectClass=contacts, and tried querying by sn, but nothing happens. I do not get any errors, but I also do not get any returns from the query, it find zero records.