I want to do communication via ethernet using TCP/IP

i want to do communication via ethernet using TCP/IP i did it but code is runing but im not getting any output

Look on this easy example: http://www.labviewtutorial.eu/viewtopic.php?f=14&t=328
You will find there two identical VIs (only port numbers are different). One is for PC1 and other for PC2. If you will get prodlems starting VIs, so look on your firewall settings, you have to unlock ports used in these VIs.
LabVIEW Portal

Similar Messages

  • Interfacing Sensoray modules via ethernet using Labview

    I am using sensoray 2601 module via Ethernet communication protocol,i want to interface with LabVIEW,is there any sample program/tips to interface?
    Please Mark the solution as accepted if your problem is solved and donate kudoes

    There is a lot of examples for the TCP/IP protocol if that's the protocol that is supported by the device. Open Example Finder and do a search.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Communication with database using TCP sockets connection

    Hi all,
    I am bit of a newbie when it comes to databases. In a project I realised over te passed few weeks, I communicated with an 11g database using an application I created with VS Express. It uses an ODBC connection. I now want to connect a PLC to the same database. These PLC's don't have the ability to install an ODBC client so I need something different.
    I am easily able to open a TCP socket on the PLC and send data from there. I would like to know if I can start a TCP sockets connection with our 11g server and send all queries directly. The other (already suggested) option would be to have the PLC connect to a PC that reads this information and hands it over to the ODBC connector, but that would mean I need an extra PC just to 'translate'.
    I have been searching these forums for socket, TCP and more and feel it is possible, but I need a good document as a reference to show/tell me how it's done.
    Thanks in advance,
    Marijn

    The TCP/IP interface to Oracle is undocumented (and hugely complex anyway). You'll need to use a higher layer iterface or setup your own infrastructure.
    We need more information about what is available to you inside the PLC.
    Can you use Java? If so, perhaps use thin JDBC?
    Can you sent HTTP requests? If so you could set up your own Web services to handle this.
    If you can only use C or C++, Oracle has interfaces there too.. it's called OCI (Oracle Call Interface) and thats as close to the networking layer as you can get.
    Finally if you can use .NET Oracle has a Fully Managed Oracle Data Provider for .NET that you could use.
    But if all you can do is super low level network access and none of the above then you will need to set up an intermediary as you mentioned.

  • Communicating with Crestron using tcp/ip sockets

    Greetings...
    I trying to finish a desktop application written in Java that connects to an automation controller(Crestron) via sockets (TCP/IP). My main problem is that the connection is constantly going down. I have a thread that is always running to check if the connection is up, when it's brocken just puts it up again.
    Then i have another thread that's always running also to get the data that the
    Crestron controller sends me.
    The connection is broken usually by receiving a null.
    Is there any tip to solve this kind of trouble?
    The java app. is client and the Crestron is a server. Also i'm running the app. in Windows XP.
    It's a fix ip and the port is 4444.
    Also if anyone has experience of making software that interects with Crestron Controllers, please tell me something.
    Thanks for the help

    Sorry, but if your connection keeps getting dropped and your client does not close the connection then there is only one source: the controller itself is closing the connection. It may be some kind of timeout that is causing that the connection is closed. In any way, it is most likely not java but hardware / setting related.

  • Cannot connect to iMac (OS9) via ethernet while connected to internet

    I readily connect my eMac (OS X) to my iMac (OS 9) via ethernet using TCP/IP except when my internal modem is connected to the internet. In Network Port Configurations, I have ethernet at the top of the list, followed by fire wire and then the modem. It appears to search the internet.
    Any suggestions?

    On the iMac, the AppleTalk Control Panel (CP) is set to connect via ethernet. The TCP/IP CP is set to connect via Ethernet, Configure manually with an IP and Router address of 192.168.168.1 and a Subnet mask of 255.255.255.0 The IP address shows up in the File Sharing CP which is set to use TCP/IP.
    On the eMac, PPPoE is disabled and Appletalk is active. Connecting from eMac to iMac works fine when the eMac's internal modem is idle but not when it is connected to the internet.
    When I try to connect from iMac to eMac while eMac is connected to internet, I see the eMac in the Chooser and can attempt to connect as either registered user or guest but then immediately get "The connection to this server has been unexpectedly broken". If the eMac is not connected to the internet, I can connect as a guest and see items in my Public folder.
    I tried creating a new Location and immediately lost my internet connection.
    The IP address of the iMac never changes. I do enter the IP address of the eMac's ethernet into the chooser dialogue on the iMac when attempting to connect from iMac.

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • Apple TV, Home Sharing via ETHERNET ?

    Hello!
    This question has been asked many times before but in many different ways and none of them straight to the point which is what I'm going to do:
    Can I have my computer connected to Internet via ETHERNET, connect the Apple TV to Internet via ETHERNET using the same router, and then have Home Sharing working? that is to say, watching movies on my HD TV via Apple TV from my computer.
    Why?! Because currently I'm using Wi-Fi for all my gadgets, and although the signal strength is excellent for my computer, I cannot get more than half for the Apple TV despite being located no more than 3 meters away from the Airport Express base. It's really annoying having to stop the movie every couple of minutes to wait for the buffering.
    I hope someone can advice me... please no extra "signal booster" hardware, just want to keep the things to a minimum...if possible.
    Thanks in advance

    gcarcass wrote:
    Can I have my computer connected to Internet via ETHERNET, connect the Apple TV to Internet via ETHERNET using the same router, and then have Home Sharing working?
    Yes

  • Time Machine via Ethernet? Can't find the option.

    I have a MyBook Duo that I want to use as my Time Machine back up. I want to do that via Ethernet. However when I go to Time Machine Preferences > Select Disk it opens up Airport and fails to find an HD - there is no Ethernet option.
    Am I doing something wrong?

    Hi Eric
    Firstly, thanks for your patience with this. I very much appreciate you taking the time to answer.
    The difficultly is that System Prefs > Time Machine doesn't offer me those options. As you can see, it has the external drive where I've been saving my backups via wireless here.
    However, having now connected via Ethernet, if I go to Select Disk I get this:
    If I go to Set Up Time Capsule it goes to Airport and searchers for a wireless connection and offers no alternate options.
    I suspect I'm doing something very dim, but I can't see why I can't get this to work.

  • Accessing Time Capsule via Ethernet

    I've installed TC and it works fine via wireless, I now want to setup TC via Ethernet wired cable because some of our workstations do not have wireless access, does anyone know if there is a step by step process in doing this.
    Thanks in advance.

    I have what I think - can't be exactly sure from your description - is a very similar setup.
    I have a Netgear Router/CableModem attached to the cable modem. The router provides 802.11b/g wireless and has some wired 10/100 ethernet computers connected. This router only support 10/100 for the wired connections.
    This configuration was in place before I added the TC (and the Mac Pro for that matter)
    It wasn't broke so I didn't want to fix it -- so I left it in place with the Netgear being the DHCP server for IP addresses for all machines on the network.
    I added a 8 port 10/100/GB switch to enable the Macs and the TC to communicate at GB speeds. The "upstream" side of the switch went to the Net gear router.
    The MacPro, a ethernet cable for allowing the Macbook wired access, and the TC are attached to the 10/100/GB switch. The TC is connected to the switch from its WAN port.
    The TC also serves as a base for a 802.11n network (separate from the b/g network - unique SSIDs.)
    The TC is in bridge mode so that only the Netgear router does the assigning of all devices on the entire network - wired and the 2 wireless ones.
    Here is some details of the specification for the Time Capsule in my configuration:
    The TC connected via its Ethernet WAN port to an ordinary Ethernet port on the Netgear Router. I configured TC as follows:
    -Internet tab (in manual setup) of the AirPort Utility as follows:
    Connect Using: Ethernet
    Configure IPv4: Using DHCP (This confused me for a moment - it means have the TC get its IP stuff via DHCP - i.e. from the NetGear)
    Ethernet WAN Port: Automatic (Default)
    Connection Sharing: Off (Bridge Mode) - this lets the Netgear assign all the IP addresses to everyone on the network)
    -Airport Tab -> Wireless
    Network Name: A different name (SSID) than the Netgear's SSID
    Radio Mode: 802.11n only (2.4GHz)
    Channel: Automatic
    Wireless Security: WPA/WPA2 Personal with a password
    Under Wireless Options - Check Create a closed network
    I'm sure that there are other combinations that work, may work better, but this suits the way this house is laid out/ wired and the way we use our machines. For one I have chosen to not leave the TC on 24/7 - heat/power. The Netgear doesn't get warm at all and stays on 24/7. It also means for me that I can define both wireless networks on the 802.11n capable machines so that they can be wireless in the, for us, very unusual circumstance that the TC would be off when wireless access would be needed by these devices..
    Hope this Helps.

  • Problem connecting switch to Airport Extreme via ethernet

    I might not be in the right forum with this question, as it relates to connecting the Airport Extreme in a wired / ethernet configuration.  I am okay with the wireless functions.  This is the only forum I could find dedicated to Airport issues.
    I want to provide Internet via ethernet cable to multiple devices that are 20 feet away from my Airport Extreme.  When I connect one of the LAN ports on the Extreme to a NetGear switch, I get no Internet connectivity from any of the other available ports on the switch.  I have tested the cables and they are fine, and I do get Internet connectivity if I plug the ethernet cable coming out of one of the LAN ports on the Extreme directly into a device (Bluray player) rather than go through the switch.
    My setup is as follows:  Modem --> old Netgear FWAG114 wired / wireless router --> AirPort Extreme (wired connection, into the WAN port).  My iMac is connected via ethernet to the Extreme, and an HP6500 printer is connected via both ethernet and USB (is that redundant?).  I want to connect another available LAN port to the switch on the other side of the room.
    A friend suggested that it may be that I need to configure the Extreme to permit multiple IP addresses to be made available through the switch, but I am not tech-savvy enough to understand if that's the issue and, if so, how to accomplish it.
    Thanks in advance for any help you can provide!

    I am copying some of the instructions from the NetGear FWAG114 router, which lead me to believe that it is a managed switch:
    "LAN IP Address Management
    By default, the [NETGEAR] router will function as a DHCP (Dynamic Host Configuration Protocol) server, providing TCP/IP configuration for all computers connected to the router's LAN.
    If another device on your network will be the DHCP server, or if you will manually configure all devices, select the Disable DHCP Server option.
    If the DHCP server is located on the Internet side of the router, select the Use External DHCP Server option, and specify the external DHCP IP address.
    To use the router as DHCP server (the default option), select Use Router as DHCP Serveroption.
    Starting IP Address: This box specifies the first of the contiguous addresses in the IP address pool. 192.168.0.2 is the default start address.
    Ending IP Address: This box specifies the last of the contiguous addresses in the IP address pool. 192.168.0.51 is the default ending address."
    Should I elect to have the Netgear use an external DHCP Server and let the AEBSn be the DHCP server?

  • How to connect to R/3 via JCo using MYSAPSSO2?

    Hello!
    I'm developing a J2EE application who resides in an EP with Single Sign On. I have to retrieve some data from R/3, the way I want to connect is via JCo using MYSAPSSO.
    I have read that is possible to connect passing MYSAPSSO2 as <i>user</i> and its value as <i>password</i>. The java code in the jsp is something like this:
    javax.servlet.http.Cookie [] my_cookies = request.getCookies();
    java.util.Hashtable cks = new Hashtable();
    for(int i=0;i<my_cookies.length;i++){
         cks.put(my_cookies<i>.getName(),java.net.URLDecoder.decode(my_cookies<i>.getValue()));
    String user = "$MYSAPSSO2$";
    String pass = (String)cks.get("MYSAPSSO2");
    JCO.Client conex;
    JCO.Repository rep;
    boolean ok=true;
    conex = JCO.createClient("000",user,pass,"es","192.168.0.1","00","","");
    try{
         conex.connect();
         rep = new JCO.Repository("mirep",conex);
    } catch (Exception e){
         out.write("<br>"e"<br>");
         ok = false;
    if (ok)
         conex.disconnect();
    We are working with EP6 SP2, WAS 6.20.
    The error is:
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Se ha recibido un ticket SSP que no se puede interpretar
    (I translate you:)
    RFC_ERROR_LOGON_FAILURE: unable to interpret a retrieved SSP ticket
    Thank you all!!

    Ok!
    I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
    Sorry for the inconvenience.

  • AirPort Express Dropping Connection to AirTunes via Ethernet Connection

    I connect to my AirPort Express via ethernet using iTunes and AirTunes. I am using Windows Vista. The device works great for roughly 15 or so minutes, and then seems to loose its connection with iTunes. iTunes continues to play the music, but there is no sound coming out of the audio device connected to the AEx. If I toggle the Computer Speaker/AirPort Express output selection in iTunes it reconnects successfully with my AEx and will work as expected for a period of time, and then will eventually drop the connection (or at least the audio stops) again. I've used my AEx successfully for a couple years now - something over the last few months changed as this behavior is new. I am using the latest firmware and the latest version of iTunes.
    Anybody have any ideas? Are there known software/firmware compatibility issues?

    See http://discussions.apple.com/thread.jspa?threadID=1949393&start=0&tstart=0
    This might be the same problem you are having. There is no fix as of yet.

  • I want to transfer files from a Win XP PC to a Mac using Time Capsule via Ethernet connection.  Is this possible?

    I want to transfer files from a Win XP PC to a Mac using Time Capsule via Ethernet connection.  Is this possible?

    Sure.. the PC connects by SMB.. the Mac connects by AFP or SMB..
    But you can simply share SMB directly from the Mac.. there is no need to copy files through the TC. Go to system preference, sharing, and turn on SMB for the folder you want to share files to / from on the Mac.
    Make sure you have a common username and password also helps.
    If you have a TC already can you copy files to it via the windows machine??

  • Using time capsule to share internet connection with a pc via ethernet

    Hi,
    I've recently acquired a time capsule and was wondering if i could use it to share a wireless internet connection via ethernet to my non-wireless (windows 7) pc?
    My current situation is that i have a wireless modem/router that shares my internet connection wirelessly with my mac mini.
    I have a pc without a wireless card that i want to connect to the wireless network so i was wondering if it was possible to attach the pc and the time capsule with an ethernet cable, then connect the time capsule to the wireless network and share the internet connection with the pc.
    Can anyone tell me if this is possible, and if so how?
    Thanks

    Welcome to the discussion area!
    IF...your wireless network is now being created by another Apple "n" router like an AirPort Extreme, AirPort Express or Time Capsule, it would be possible to do what you want to do.
    But the Time Capsule would not be compatible for what you want if your wireless is created by another manufacturer's router. The Time Capsule could "join" this wireless network so that backups would occur over wireless. However, when the Time Capsule is configured this way, the ethernet ports on the device are not active, so this would not help with the ethernet connection that your computer needs.
    A new AirPort Express 802.11n would do what you want. It has the capability of joining virtually any wireless network and the ethernet port can be enabled using the ProxySTA feature, so it would work for your purpose.

  • I am linking 7 express's to an extreme via ethernet cables in very large estate. Is there a specific "backbone" you recommend for use in such an application? Thank you

    I am linking 7 airport expresses to an airport extreme via ethernet cables in a large estate I maintain. Is there a specific product apple recommends to act as the "backbone" in such an application? Any information would be appreciated. Thank you

    Is there a specific product apple recommends to act as the "backbone" in such an application
    Apple does not recommend a specific product in this regard.
    In general, you would connect an Ethernet cable from one of the LAN <-> ports on the AirPort Exteme to a Gigabit Ethernet switch, then connect as many Ethernet cable runs as you want to use to remote locations around the house.
    Ethernet switches come in 5-port, 8-port, 16-port etc versions, so choose according to your needs.
    I recommend Netgear and Cisco switches, but I am sure that there are other good products from which to choose.
    Be sure to run CAT6 Ethernet cable to allow for the faster speeds coming in the next decade or so.

Maybe you are looking for

  • Cannot open library files(.pll) in 10G

    Hi, When I try to open or create a library file in 10g I get PDE-PLI018 Could not find library error. I can open or create fmb file though. I could not create or open in Forms 10 g. 9.04 and again in Forms 10g 10.1.2 version. Operating System XP. Edi

  • Monitor troubles when waking from sleep

    Hi everyone, I have recently purchased an LG Flatron W2254TQ (I know, not an apple display, but this could be an issue with all external monitors). I usually just use the external display and not my MB display (ie. I have it plugged into macbook befo

  • DUPLICATE DOCUMENT CHECK IN SAP

    HI I NEED TO KNOW WHICH DOCUMENT YOU SAID DUPLICATE ONE ie. 1>                                           2> doc date     "1.1.2011"            Doc. Date 1.1.2011 postin date "1.1.2011"             Posting Date : "1.1.2011" Reference : "abcd"         

  • Transporting ABAP & Z-table to multiple system

    Hi, from time to time we have some reports which we would like to have in all productional system. The most painful way is to copy & paste everything in each D system and the transport it via Q to P. If we want to just import the transportfiles we ne

  • Cs6 PS 13.0 x32

    I am noticing now that when I double click on the layers palate to bring up the styles blending option, sometimes my photoshop crashes on me and has to close. This is very frustrating to say the least, I am glad it tries to save some of my work with