Receive LV data from another computer

Dear
I would like to write Labview program after receiving some data.
The data(temperature and humidity) are acquisiting in real time by LV from an independent computer(remote com.).
Are there some simple methods to share or extract the data like this situation?
(Hopefully, I don't want to modify much LV code in the remote computer.)
Thank you in advance. 

For DataSockets, you have to be running Windows, the DS server doesn't run on other platforms.You have to already have TCP network access between the two machines.
For this little exercise, the data you want must be in a front panel indicator (or control). If you do more coding, you can send DS data programmatically, but for now, let's assume it's on the panel.
On the client side (the one you will monitor with), run the DS Server. {Start - Programs - National Instruments - DataSocket - DataSocket Server.
On the Server side (the one where the data is already there), pop up on the item(s) you want to monitor.
Choose DATA OPERATIONS - DATASOCKET CONNECTION.
In the CONNECT TO box, enter "dstp://192.168.0.101/Value1" (without the quotes). Substitute the client IP # for the IP # shown. Substitute a sensible name for the "Value1" part.
Choose PUBLISH as the connection type, an click ATTACH (or CHANGE if this is not the first time thru).
You should see a small LED next to the item. You can hide it if you want (VISIBLE ITEMS), but for now leave it there.
Run the program. The LED should be GREEN, and on the client side, the DS SERVER should show changing numbers, as packets come in.
On the CLIENT side, you want a similar indicator (same data type) as the one on the server that you are monitoring. You want a WHILE loop with a STOP button and a WAIT function, at least.
On the front panel, pop up on the indicator, and choose DATA OPERATIONS - DATASOCKET CONNECTION.
in the CONNECT TO box, enter "dstp://localhost/Value1". You could enter the IP number, but "localhost" covers it, since the DS server is running on this same machine. The "Value1" part must match the name you gave it on the other (server) end.
Click SUBSCRIBE, and close the dialog.
Run your client program, and the client's indicator should match the server's.
Things to be aware of:
You don't know when the data is updated. When your client program uses the values, it gets the latest values. Maybe they're a mSec old, maybe they're a month old. You don't know.
If you monitor TWO (or more) indicators, they are not necessarily updated at the same time. If you read them on the client, maybe they correspond, and maybe they don't. It's possible that you read them AFTER it updated #1, and BEFORE it updated #2. You just don't know. If that's a problem, put everything into a cluster, and just update the one value.
The server will consume system resources (CPU - network time) and net traffic, whether you are listening or not. If your server updates the display 100 times a second, but you only want a value once a second, that's wasteful because the value gets sent over the net 100 times.
I'm not 100% sure, but I think there's no security with this. Any process with access to the DS server, can ask to be updated and it will be.
You had asked for a minimum-code-change idea. I believe the above meets that challenge (no code change at all, only DS settings).However, it has drawbacks, and if they outweigh the no-code-changes, then you need to consider either programmatic DataSockets or plain TCP. With those you can control every aspect of communication. Consult the examples for those.
Message Edited by CoastalMaineBird on 04-01-200704:51 PM
Message Edited by CoastalMaineBird on 04-01-2007 04:53 PM
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Attachments:
DataSocket.png ‏41 KB

Similar Messages

  • Receive POST data from another URL and process using Struts

    Hi there
    We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
    Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
    Please explain me how to do this using some example code snippets.
    Thanks a lot

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • Accessing data from another computer - a strain on my computer?

    My wife has an IBM Thinkpad laptop that is not connected to the internet. My computer is connected to the internet and sometimes she accesses her e-mail on it by clicking on a bookmark that I set up for her that links directly to her e-mail at work. Her entire work e-mail system (microsoft pc based) appears on my computer and she logs in. All of her e-mails (thousands) are on my computer including huge documents and such. I suspect that doing this may be causing my computer to freak out a bit.
    I only have 1GB of RAM. I once typed in the name of the bookmark "Ann's e-mail" into "spotlight" and it appears as though all of her work e-mails seem reside on my hard drive. One time she was checking her e-mail and a kernel panic happened. She's stopped checking her e-mail on my computer and the kernel panics no longer happen. Perhaps this is a coincidence but in general, do all her e-mails reside on my hardrive all the time or only when she clicks on the bookmark and logs in. Lately she doesn't even have to log in. All e-mail appears when she clicks on the bookmark. In the past it always asked for her password first. (I find it strange that it no longer asks for her password) ) She's going to be getting her own internet connection soon but does anyone know if bookmark that links to a ton of data on another computer uses up RAM or CPU on my computer?? Should I delete the bookmark?

    It sounds like you should be doing Internet Sharing on yours, is that not the case?
    Thank you for your reply, BDAqua. I haven't but doing internet sharing.
    Upgrade your RAM to 2 or 2.5 GB.
    I was told at the Apple store than the model I have will not allow any additional upgrades. When I bought the unit it had 512MB and I had 1GB of memory put in the only other remaining memory slot. So I actually have 1.5 GB RAM. AT some point I'm be getting a new computer in order to get 4GB RAM but can't afford it right now.
    What interface do you connect with, what interface does she connect wirh, and what is available on both?
    Sorry, don't understand this question. Do you mean how do I get the internet? I have Road Runner from Time Warner Cable. My wife's home laptop isn't connected to anything. She wants to get an Air Card so she can access the internet when she travels.

  • Best way to transfer data from other computer

    I'm wondering what is the fastest, or most reliable way to transfer data from another computer to my G5. I've skimmed through manual for G5 and it seems to list several options, if I'm understanding it correctly.
    1. Using Airport Extreme
    2. Using Bluetooth
    3. Hooking up a local Ethernet connection
    4. Setting up a Firewall connection?
    I want to be able to transfer a completed iDVD project created on an iMac G3 to my G5 for burning the DVD. And which method (if any) will work with a non-Mac computer?
    Anyone know the advantages, disadvantages of the transfer methods?
    ccCarol

    If you have a high-speed connection, another easy & fast way to transfer files between computers is through AIM (AOL Instant Messenger).
    iChat has the same ability of transferring large files as AIM.
    http://docs.info.apple.com/article.html?artnum=150934

  • I am wanting to put the new firmware on to my iPhone 4 and am wondering if I do this from another computer will I loose all my data - i.e music

    I am wanting to put the new firmware on to my iPhone 4 and am wondering if I do this from another computer will I loose all my data - i.e music

    No you will not lose any data. However a pop up will come up telling you if you want to sync with this computer, and that if you do, that it will erase the data. Just click "No" and you can still update your phone. I've done this a few times.

  • Importing calendar data from another [dead] computer

    My G5 recently died on me, and I'm currently using an older computer (eMac) that's still running 10.4. But I still have access to my G5's hard drive through a FireWire connection. What I'm trying to find a way to do is to reload all my G5 iCal data into my eMac's iCal app. Obviously, I didn't know my computer was going to die on me, so I didn't export an iCal file beforehand. So, assuming all my old calendar data is still on my G5 hard drive, what files will I need to copy over to my eMac? And will there be any complications bringing iCal info from 10.5 over to 10.4?
    Thanks a lot for any help.

    firebane08 wrote:
    > Is there a way I can import XML data from another
    website say for example a web
    > api and convert the date for use in Dreamweaver. I have
    tried coding this in
    > several possible ways but have failed in getting the
    data to display. Are
    > there any extensions that will allow me to do this? Any
    help would be
    > appreciated. Thanks.
    It was my understanding that browsers prevented this from
    happening.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • How do I stop my Macbook Air from transferring your information from another computer?

    Just purchased my Macbook Air. When I started it up, it asked if I wanted to tranfer information from my other computer. the first thing it started to download was the music and it suddenly froze when it had a 1hr and 46 mins left and now I can escape out of it. It is the only thing that is on my screen. I ended the transfer on my PC but it wont clear out on my Macbook Air. Is there a way to restart the computer so it will retry the tranfer without the music?

    Welcome to Apple Support Communities
    Hold the Power button until the Mac turns off, and turn it on again.
    Instead of transferring your files from another computer through the network, copy your data from your old PC or Mac to an external drive, connect the external drive to your MacBook Air and transfer your files

  • How to access Time Machine from Another Computer?

    My daughter's iBook went down and is in the shop for repair and we want to access her Time Machine back up from another computer. Does anyone know if there is any way to do that?

    Time Machine won't do it as far as I can tell.
    However, you can access the backups through Finder.
    Warning - you *do not* want to do anything but copy out files - no deletes, moves, renames, no nuttin... Doing so will screw up the backups for any future Time Machine use!
    If the backups are on an external disk, then just navigate to the folder Backups.backupdb/yourMachineName there you will find each backup by date/time with the contents of the system at that time.
    If the backups are to a Time Capsule you need to mount the backups - the sparsebundle file - first then examine the folder Backups.backupdb/yourMachineName.
    Time Machine does have a 'Browse Other Time Machine Disks' option, but as far a I can exercise it it only looks at other disks with backups for the same machine.
    Again _only copy_ out files. Normally one should only use Time Machine, but here you can't - so be cautious.

  • HT1386 I am having problem syncing my itunes data from my computer to my ipod and ipad. My data is not fully transferred.  Can someone help me?

    I am having problems syncing my itunes data from my computer to my ipod and ipad.  The data from my computer is not transferring.  Can someone help me?

    What happens when you try to sync?
    Does any media sync?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        

  • I received an ebook from another source. Can I transfer it into my iBook account?

    I received an ebook from another source. Can I transfer it into my iBook account?

    The problem could be that you don't have enough storage on the device itself, not on iCloud.  Go to Settings>General>Usage to see how much "Storage" you have available.  Farther down the list is the available storage on iCloud.
    Also check:
    Go to Settings>iCloud>Storage & Backups>Manage Storage; there, tap the device you need info on and the resulting screen lists Backup Options with which apps store data on iCloud.
    A device needs many MB of storage in order to perform a backup to iCloud.

  • Re:iMac remotely accessed from another computer and location?

    Can you access an iMac remotely from another computer and location if there is knowone to switch it on?

    Barbara,
    Both are legitimate concerns, I'll address each as best I can.
    As for the the power issue, well that's going to be the case with any computer. We have many choices, most of them impractical for example take your house off the grid, put in your own power source (solar or wind powered) which clearly for most of us is totally impractical. The next thing would be a backup-generator like a hospital or other mission critical facilities (police & fire houses) have. While this is more practical again it's stretching the limits again for most of us. So the next thing is a healthy battery back up system that can maintain power to a computer for several hours if necessary. While they are still expensive they are far less expensive than the first two solutions. Of course you can set the energy saver settings to power on your computer after the power comes back on if even the UPS battery goes dead. I haven't tried this remotely however I think it might work.
    Next is security, DropBox and Logmein both address this themselves so I would recommend looking into their solutions. Personally I find them trust worthy and don't have an issue. Even if you use MobileMe you would still have the same concerns, and how about Google, and all the other major players. To me Google while it's a vast resource and extremely helpful if for some reason they decided to become the Evil Empire they have far more access to your information that anything. Anytime you do a simple search they are collecting information about you. For example let's say you are looking for ATM's in a new city, they can capture your search and if they were evil enough they could track your every step. Is this far fetched and ridiculous, of course it is but it is possible. However this is the case with any Internet based computing, if you use some basic common sense for the most part your data is pretty secure. I'm much more nervous about the minimum wage clerk at Taco Bell taking my credit card information than Google, Apple, Logmein or Dropbox doing so.

  • I want to transfer the data from old computer to new. Before I do, I should disconnect internet, yes? Can I just pull the modem's cable out of the computer?

    move files from old computer to new - a dumb question

    it don't seem to mention that you have to disconnect
    OS X: How to migrate data from another Mac using Mountain Lion and earlier

  • Unable to open 10g Database Control Webpage from another computer

    Unable to open 10g Database Control Webpage from another computer
    Hi Gurus
    I have just installed Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on my PC Windows XP , created database and configured DB control
    I can open Database Control Webpage on the database machine by typing
    http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    or
    http://136.18.70.189:1158/em
    But can not open it from another PC
    When I do following from another PC
    1. http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    Get error: [code=DNS_NO_DATA] The IP address was not found during the DNS lookup. Contact your system administrator.
    2. http://136.18.70.189:1158/em
    Get error:Can not display web page
    I can ping 136.18.70.189 but not USI2374993VND0.vlgdw2k.visteon.com
    On the other PC I also tried adding 136.18.70.189 to
    tools - internet options - security - local internet - sites - advanced - add this web
    site to the zone as http://136.18.70.189
    But it did not work
    Please help with any ideas
    Thanks a bunch
    New DBA

    Firewalls?
    DNS translation issues?

  • If I imported a CD into my iTunes library from one computer how can I listen to it from another computer?

    If I imported a CD into my iTunes library from one computer how can I listen to it from another computer?  I imported music from a CD into my compter at work and when I got home and went to my iTunes account none of the songs were in my library.  I also noticed that on my Work computer there were a couple songs that I had to click on the little 'cloud' icon before I could listen to them (these were not songs I imported they were songs that were already in my library).  Not sure if this makes semse...help.

    jamie171 wrote:
    My question is since I have imported them into my iTunes library from one computer why can't I access them from my iTunes library from another computer that I have authorized to access whats in my library?  Is there no way to import songs only once into the library and then access them from all my authorized computers?
    Only if you have iTunes Match or of the computers are on the same local network.

  • How do i use a Time Machine from another computer from Time Capsule with multibackups

    Can Iuse a Time Machine from another computer from Time Capsule with multibackups

    Not sure what you are asking here. 
    Time Machine is software on a Mac that is used to backup that Mac to a Time Capsule hard drive.
    Are you asking if another  Mac can backup to the same Time Capsule that other Macs are already using?
    Or, if not....please clarify on exactly what you want to do.

Maybe you are looking for

  • MBP stuck on grey screen

    This morning my MBP, mod 6,2 (8GB, 500GB), started acting strange (would not minimize Word, Safari would crash and re-crash on restart...) so I decided to reboot it. Never came back. The system sits on the grey screen forever. In many attempts, once

  • What is the conversion of onload event to AS3 ?

    I have following code on AS2 . Now I need to convert into AS3. Please give your idea to change into AS3 myxml2.onLoad = function() {      // functionality goes here myxml.load(my.xml);

  • Best practices for organizing photos in iphoto09?

    ok, i just rebuilt my iphoto library. here is what i did to get back to where i am now: 1) took my old iphoto library folder, and searched by files larger than 100k. moved them to a new folder. deleted the old iphoto library from my Pictures folder.

  • Managing ldap user querying permission at BI server level

    Hello Guys I am trying to manage the corporate resource by limiting certain users to run query at certain time or certain size. I know it can be done using 'manage--security' to set the querying limit for each users that are defined in the Admin tool

  • WRT54G v 5

    Is there any way to speed up the wireless router. I have a new Dell with the latest everything.