How do you connect separate VIs so data can be read in one and displayed in another?

I am reading data from a Lock-In Amplifier. I have wrote a general VI for the Lock-In Amp. I need to transfer data from this VI to a Control VI which logs the data. The Control VI also has to read temperature readings from a Temperature control VI. All three VIs will be running on the same PC.
The VIs must remain separate. The Control VI cannot read from the Lock-In Amp or aquire the temperature readings. Do you use ActiveX? If so, how?

There are three relatively straightforward methods that come to mind, though the best implementation will depend upon the amount and rate of your data transfer.
1) Queues
Create a named queue, containing the appropriate data type(s). Add elements to the queue in the "Lock-In Amplifier" VI and remove elements from the queue in the general VI. This method may be the easiest to implement since all of the data handling mechanisms to ensure that data isn't lost or duplicated are built into the queue functions.
2) Datasockets
There are plenty of examples for transferring data via datasockets. I haven't used them as often as queues, but they're definitely the best choice in some circumstances.
3) By Reference
Create a reference in your general VI and pass th
e reference to your "Lock-In Amplifier" VI in the process of calling it. Alternately, the reference could be stored as a global variable so that the programs could be started independently. The "Lock-In Amplifier" VI would then utilize a property node to write data to the referenced memory. Of course, this method would require polling and a mechanism for preventing data from being lost. This wouldn�t be my first choice method.
Certainly there are other methods as well, but I hope this gives you a good start.

Similar Messages

  • How do you connect to wi fi. i can t get the ipad to connect to my home network.

    how do you connect to wi fi. i can t get the ipad to connect to my home network.

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    Additional things to try.
    Turn Off your iPad. Then turn Off the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    On your iPad go to Settings > General > Reset > Reset network settings and see if that enables you to connect.
     Cheers, Tom

  • How do you connect iTunes to a new computer from an old one without losing all my apps,music,ringtones

    How do you transfer an existing iTunes account to a new computer without losing all my music, apps, ringtones etc?

    Copy everything from the old computer to the new one.
    Type "move itunes lbrary" or similar into the google search bar.

  • HT1320 If an ipod is disconnected from the USB cord without being ejected first how do you fix this matter?  It's making a weird sound and displaying the Apple support email address only.

    What to you do it your ipod is disconnected from the USB cord without being ejected first?

    3) If this is a counterfeit, is there someone in Apple that I should contact to help them track this kind of problem?
    Apple Legal contacts
    "*Counterfeit Prevention (Hardware)*
    To report suspected counterfeit or imitation Apple products, contact [email protected]"

  • How do you connect two Apple ID's?

    How do you connect two Apple ID's to one another?

    Yes. You can sync multipl iDevices on the same computer using the same Apple ID. You can each have different configurations of apps, books, music, etc. or have identical configurations. In this way, however, your common data - contacts, mail, calendar will be the same on both iDevices.
    The Apple ID doesn't distinguish one phone from another, only how the phone will sync to a computer. The Apple ID is how iTunes knows to which computer a phone syncs. And, the Apple ID determines who is the registered owner of downloaded and purchased items via iTunes.

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • How do you connects the same iPad to iTunes which is already synced with another computer

    How do you connects the same iPad to iTunes which is already synced with another computer

    You can only use one iTunes library at a time when you sync your devices. If you want to sync to a new computer now, look at this.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    And here is another helpful article.
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/

  • How do you connect edge inspect with chrome !?

    how do you connect edge inspect to chrome

    If you install the Chrome extension then Edge Inspect will syncronize with whichever page is in the current tab.
    =Ryan
    [email protected]

  • How do you connect your macbook pro to a sony bravia tv with a belkin cord????? HELP!!!!!!!!!!!!!!!

    How do you connect you macbook pro to a Sony Bravia tv with a Belkin cord!?!?!?!?!?!?!? We know how to set it up, but what setting do you put your tv on!?!?!? we have tried everything, but it wont work!!!!!!!!! HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Well, I have connected my mbpr directly to a Sony Bravia using an hdmi cable, then set the tv to use the corresponding input port, and it works just fine. Have also connected via airplay -> appletv -> tv (with the last connection via an hdmi cable), which also works fine.

  • How do you connect ipad 2 to itunes library using home sharing

    How do you connect the ipad 2 to the itunes library using home sharing so you can listen on your ipad 2? I've seen directions for the ipad which tell you how to setup home sharing then open ipod and touch library in the left column, but when I hit library, nothing happens. I'm assuming the ipad 2 has something different about it. Any help would be greatly appreciated.
    Thanks.
    PS, the OS is 4.3.3 (just got it but it's not on the os list)

    See iTunes 9- Understanding Home Sharing and iTunes- Troubleshooting Home Sharing.  Also, open iTunes, select iTunes Help from the Help menu and search for "home shar."

  • HT1555 how do you connect an iphone to be a remote for Apple TV without the apple remote?

    how do you connect an iphone to be a remote for Apple TV without the apple remote?

    you can use the remote app.
    http://www.apple.com/apps/remote/

  • How do you connect your iPad to a wireless computer?

    How do you connect your iPad to a wireless computer?

    Your question makes no sense. You "connect" an iOS device to iTunes on your computer via WiFi or by using the supplied cable.

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • How do you connect a microphone to a Mac?

    How do you connect a microphone to the Mac?  I'm trying to record vocals onto Garage Band.  I tried to use an adapter (XLR to MONO 3.5 mm) to connect directly to the port on the side of the MacBook Pro.

    I prefer USB mics - a really cool and nice one that I used to have was the Blue Snowball, available at Amazon for a great price. It got lost in a move but I intend on getting another.
    Clinton

  • How do you connect air to a projector

    How do you connect the air to a projector, what cable do you need.

    It depends on what type of connector the projector has, but basically you will most likley need a Mini-Displayport to HDMI, VGA or DVI connector.  With that you should be able to use a "standard" cable from the projector to the computer.
    As I recall, Amazon also stocks a Mini-Displayport to HDMI cable that would be a single cable--but it would require a projector that will take HDMI input.  Many newer projectors have that connection, but older ones will not.
    If you are hooking to multiple projectors the VGA option right now is the one that will work in virtually all cases--even if the projector has another connector, it almost always has a VGA connection to deal with older laptops.

Maybe you are looking for