Sending a string over ethernet at 1 Hz.

I am trying to send a string file at 10 Hz over ethnet to another PC. It is a motion file.  I am enclosing a snippet of the file below.
START_TIME,24-OCT-2004 16:44:54,0 00:02:21
00:00:00,INIT_POS,v1_m1,33.7487,-118.035,16.97
AR
RU
00:00:00,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.100,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.200,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.300,mot,v1_m1,-2495192.9594000001,-4685876.5558000002,3523316.4575999998,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
00:00:00.400,EN,0,0

Do you have a question related to this?

Similar Messages

  • Send multiple strings over TCP - Like messenger service

    Hello all Java Coders,
    I'm new with TCP programming.
    I'm beggining to learn about TCP and sockets connections in Java. In order to achieve this, I was coding a mini-program so I can learn a little bit about this.
    I'm trying to make a simple TCP program.
    The server sends a string to a client...
    I already searched for a couple of hours in google and so on, about what I'm doing wrong.
    [The server code (Just click)|http://pastebin.com/m39fd1273]
    [The client code (Just click)|http://pastebin.com/m57471803]
    I hope that someone can help me with this and, if you have patience, please tell me the reasons my code doesn't work.
    Many thanks,
    Freiheitpt
    P.S.: I think that the problem is on the server side...

    Sorry jverd.
    I was just trying to put things organized.
    Well, I can't get the String to be sent to the client.
    No error occurs.
    Server:
           try {
                srvr = new ServerSocket(1234);
                System.out.println("Connecting...");
                skt = srvr.accept();
                System.out.println("Connected!\nPreparing data exchange...");
                stream = skt.getOutputStream();
                out = new PrintWriter(stream, true);
                System.out.println("Done!\nReady to Send!");
            } catch (IOException ex) {
                System.out.println("Ups, didn't work!");
                System.exit(1);
            while(!data.equalsIgnoreCase("end")) {
                System.out.print("String to send: ");
                data = input.nextLine();
                System.out.print("Sending string: '" + data + "'\n");
                out.print(data);
            }Client:
            try {
                skt = new Socket("localhost", 1234);
                System.out.println("Connecting...");
                if (skt.isConnected()) {
                    System.out.println("Connected!\nPreparing data exchange...");
                    stream = skt.getInputStream();
                    inputStream = new InputStreamReader(stream);
                    in = new BufferedReader(inputStream);
                    System.out.println("Done!\nReady to Receive!");
                } else {
                    System.out.println("Server not available!\nExiting...");
                    skt.close();
                    System.exit(1);
            } catch (IOException ex) {
                System.out.println("Ups, didn't work!");
                System.exit(1);
            while (!data.equalsIgnoreCase("end")) {
                while(!in.ready()) {}
                data = in.readLine();
                System.out.println("Received String: '" + data + "'");
            }

  • Choosing the Right Network Protocol for CRIO 9024 to PXI over Ethernet

    We are in the design phase of setting up a CRIO 9024 Embedded Controller to send data captured to a PXIe-8105 Controller over ethernet. The data will be be 2D arrays of double precision. This data will need to be sent to the pxi at the end of each test step. Each step will have different number of channels and sample rates.
    For example,  Test Step 1 will have 5 channels of Analog inputs that will be sampled at 100,000 KHz for 1 second. This data will be coming from the CRIO FPGA. The data will get post processed by the CRIO 9024 and analyzed for pass or fail metrics. Then, the CRIO controller will send the 2D Array of Data (500,000 data points 5 X 100,000) and the results of all the metrics (a 1D array) to the PXI.
    The connection to the PXI will be using Ethernet.
    Keep in mind that the PXI will also have to send the CRIO some values to tell the CRIO when to start the test and when the test sequence is complete.
    I was thinking TCP/IP would work best because of the 2 way communication needed. But then I was looking at Network Streaming or even using Shared Variables.
    If anyone has any ideas or suggestions please please post them.
    Spark
    CLAD
    Test Engineer
    Solved!
    Go to Solution.

    Hi,
    You could use either.  Whichever you are more comfortable with really.  The STM method will have slightly less overhead over my XML style of tagging the data but it will be very little given the data size.  Probably go with STM as it just has most of the work done for you.
    In terms of data size the way you should normally transfer data like this is to flatten to string.  If you convert to a string of human readable numbers you will either lose precision, increase size or both.  Given that, the string after being flattened will be the same size as the original array anyway so quick calculation based on your previous post 500,000 doubles (8 bytes) is 4 miB (3.8MB)
    Cheers, 
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • IMac G5 no longer prints to laser printer over ethernet network

    I have a small office with 6 iMacs networked via ethernet with a Netgear Router. Printers are connected to one machine and people send to print over the network.
    3 iMacs are G5. 3 are Intel. All run OS X 10.5.8.
    A month ago one of the G5 iMacs stopped being able to print to a Brother laser printer (which is connected by USB to an Intel iMac). I believe this happened after we downloaded a periodic Apple update. About 2 weeks ago a second G5 iMac developed the same problem. The 1st G5 iMac still prints fine to an inkjet printer connected directly to it by USB.
    We have tried re-loading drivers, but no improvement.
    Any suggestions as to how we can resolve this?

    Hi DaddyPaycheck
    The iMacs that can't print can see the printer. We have deleted and re-installed via the printer system prefs too. There weird thing is that you can select the printer and send to print, but for some reason the printer then automatically pauses and you can't resume it. The file is listed by the status is 'stopped'. When you open the printer queue on the Intel iMac that the laser printer is connected to, no print file shows up at all...
    We also ran the network diagnostic that you can do when in printer system prefs and that reported that "the G5 iMac could connect to the internet, but not the Server "brother HL 4040CN series-1@ben's-iMac-2.ipp.tcp.local" "
    Hope there's a clue in there somewhere...
    R

  • Send BufferedOutputStream content over network in the order I choose

    Hi,
    The following method send a file over the network, it sends a couple of bytes arrays, including a file.
    I need to include the byte arrays and the file array in the same output buffer, and in my code i'm reading the File first to "outFileBuffer.write(buffer, 0, len);" to get the length, and then creating another buffer with the rest of the arrays.
    If there was a way to copy the from one buffer to another i had my problem fixed.
    public void sendOrder() {
            //Enviar encomenda (ver protocolo para identificar formatação dos pacotes)
            byte[] tipo = new byte[2];
            byte[] dataLength = new byte[4];
            byte[] fileNameLength = new byte[4];
            byte[] fileName;
            byte[] fileLength = new byte[4];
            byte[] file;
            String fxName;
            int fxNameLength;
            int len;
            int fxLength = 0;
            int length;
            int BUFFER_SIZE = 1024*50;  
            byte[] buffer = new byte[BUFFER_SIZE];
            fxName = "EO10001.DAD";
            fileName = fxName.getBytes();
            //Get and Send File Block
            try{
                //Get File Stream
                InputStream is = new FileInputStream("c:\\encomendas\\" + fxName);
                //Open Output Streams to send data to server
                OutputStream out = socket.getOutputStream();
                outBuffer = new BufferedOutputStream(out);
                while ((len = is.read(buffer)) > 0){
                    outFileBuffer.write(buffer, 0, len);
                    fxLength = fxLength + len;
                    System.out.println(fxLength);
                //initialize file byte array with file length size
                file = new byte[fxLength];
                //Wrap data into ByteBuffers
                ByteBuffer tipoBB = ByteBuffer.wrap(tipo);
                ByteBuffer dataLengthBB = ByteBuffer.wrap(dataLength);
                ByteBuffer fileNameLengthBB = ByteBuffer.wrap(fileNameLength);
                ByteBuffer fileNameBB = ByteBuffer.wrap(fileName);
                ByteBuffer fileLengthBB = ByteBuffer.wrap(fileLength);
                ByteBuffer fileBB = ByteBuffer.wrap(file);
                //Order data to least significant byte first
                tipoBB.order(ByteOrder.LITTLE_ENDIAN);
                dataLengthBB.order(ByteOrder.LITTLE_ENDIAN);
                fileNameLengthBB.order(ByteOrder.LITTLE_ENDIAN);
                fileLengthBB.order(ByteOrder.LITTLE_ENDIAN);
                //Fill the arrays with the data
                tipoBB.put((byte) 0,(byte) 4);
                fxNameLength=fxName.length();
                length = 32 + fxNameLength + 32 + fxLength;
                dataLengthBB.putInt(length);
                fileNameLengthBB.putInt(fxNameLength);
                fileNameBB.put(fileName);
                fileLengthBB.putInt(fxLength);
                //fileBB.putInt();
                //Write and flush the data to Stream
                incoming.append("\n\nSending file...");
                outBuffer.write(tipo);
                outBuffer.write(dataLength);
                outBuffer.write(fileNameLength);
                outBuffer.write(fileName);
                outBuffer.write(fileLength);
                outBuffer.flush();
                outBuffer.close();
                out.close();
                outFileBuffer.flush();
                debugData(tipo, dataLength, fileNameLength, fileName, fileLength, file); //append data to JTextArea for debugging purposes
            } catch (IOException ex){
                ex.printStackTrace();
    } // close methodThanks in advance for your help, I hope I was clear.
    Regards.

    darted wrote:
    That is not contrary to what I said - FIFO - first in First out.
    Yes, your buffer stream - (not TCP/IP packet (your stream will be broken up into many packets) by the way but still they are seeing it as two separate communications.
    So, timing will be an issue since you do not want them timing your communication out.
    You are sending known sizes on everything else, so create an out buffer of the inbuffer size plus known additional then send the two to the out stream. That will hopefully prompt them to look for complete data.
    Are you sure they are not timing out your communication?
    Edited by: darted on Dec 17, 2008 2:46 PMYou are right, it's FIFO, what i meant to say is that, the same order that i put things in the buffer is the same order that goes out to the stream, so it's the order i like it to be.
    What i realize from my testing is that whatever i put in the buffer before sending it, goes all in one packet (because is a small amount of data off course, but this will always be true), so i figure, if i can put the file in the same buffer I had my problem fixed, so sending two buffers (which is what i already was doing) is not, i think, the solution i want.
    They are not timing out my communication that i know, in the log file i can see that it receives my first packet, but it says the packet is incomplete (because the file should be part of this packet) :S
    Sure their's application should be able to get around this, but that's out of my control unfortunately.
    I'm still trying to put everything else in the same buffer before sending it.

  • RE: Sending jpg bytes over a server

    I had another topic but it has not been answered for a couple days so I guess I will clarify my problem more.
    I'm sending my image over a server, Client->Server->Client.
    My sending and receiving works but I get the image and it cannot be displayed.
    Sending
    try{
                  FileInputStream fis = new FileInputStream("picture.jpg");
                  byte[] buffer = new byte[fis.available()];
                  fis.read(buffer);
                  return buffer;
             }catch(Exception e){
                  System.out.println("Loading Image error");
             }Receiving
             try{
                  FileOutputStream fos = new FileOutputStream("received.jpg");
                  fos.write(image);
                  ImageIcon display = new ImageIcon("received.jpg");
                  clientDisplayPicture=new JLabel(display);
             }catch(Exception h){
                  System.out.println("Problem receiving");
             }Am I packaging it wrong? The received image is 0bytes. Thanks in advance!

    Here you are ignoring the result of the read() method.Meaning?
    Here you are not telling us how the incoming data got into 'image'.I put the bytes of the image into an object and passed it over the network.
        public void displayPicture(String from, byte[] image, boolean a, boolean b){
             try{
                  FileOutputStream fos = new FileOutputStream("received.jpg");
                  fos.write(image);
                  fos.close();
             }catch(Exception h){
                  System.out.println("Problem receiving");
        public byte[] getImage(){
             try{
                  FileInputStream fis = new FileInputStream("picture.jpg");
                  File f = new File("picture.jpg");
                  int bsize = 1375;
                  byte[] buffer = new byte[bsize];
                  fis.read(buffer);
                  fis.close();
                  return buffer;
             }catch(Exception e){
                  System.out.println("Loading Image error");
             return null;
        }EDIT: Thanks, got it working, the above worked. THANKS!
    Edited by: Krytical on Aug 10, 2008 12:09 AM

  • How do I send an Image over a socket ?

    I'm trying to get the output from my webcam and send that data out to a socket. Now the output from the webcam is running I'm just not sure how to send it out over the socket.
    Server.java
    import java.io.*;
    import java.net.*;
    public class Server {
       public static void main(String args[]) {
         ServerSocket serverSocket = null;
         boolean listening = true;
         try {
         serverSocket = new ServerSocket(1354);
         System.out.println("Listening for Connections...");
         } catch (IOException drr) {
         System.out.println("Error Listening :" + drr);
         System.exit(-1);
         try {
         while(listening)
         new ServerThread(serverSocket.accept()).start();
         } catch (IOException er) {
         System.out.println("Error Creating connection:" + er);
         try {
           serverSocket.close();
         } catch (IOException err) {
         System.out.println("Error Closing:" + err);
    }When a connection is made it will start the webcam and send the image.
    ServerThread.java
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.util.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import com.sun.image.codec.jpeg.*;
    public class ServerThread extends Thread {
        public static Player player = null;
        public CaptureDeviceInfo di = null;
        public MediaLocator ml = null;
        public JButton capture = null;
        public Buffer buf = null;
        public Image img = null;
        public VideoFormat vf = null;
        public BufferToImage btoi = null;
        public ImagePanel imgpanel = null;
        private Socket socket = null;
        Image blah;
        PrintWriter out = null;
        public ServerThread(Socket socket) {
         super("ServerThread");
         this.socket = socket;
        public void run() {
         try {
             out = new PrintWriter(socket.getOutputStream(), true);        
             imgpanel = new ImagePanel();
                 String str1 = "vfw:CompUSA PC Camera:0";
                 String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
                 di = CaptureDeviceManager.getDevice(str2);
             ml = new MediaLocator("vfw://0");
                try {
               player = Manager.createRealizedPlayer(ml);
                 } catch (Exception npe) {
               System.out.println("Player Exception:" + npe);
                player.start();
             Component comp;
             if ((comp = player.getVisualComponent()) != null) {
               // Grab a frame
               FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
               buf = fgc.grabFrame();
               btoi = new BufferToImage((VideoFormat) buf.getFormat());
               //Send the image over the socket
               out.println(btoi);
         } catch (IOException e) {
             System.out.println("It bombed:" + e);
        public static void playerclose() {
           player.close();
           player.deallocate();
      class ImagePanel extends Panel {
        public Image myimg = null;
        public ImagePanel() {
        public void setImage(Image img) {
          this.myimg = img;
          repaint();
        public void paint(Graphics g) {
          if (myimg != null) {
            g.drawImage(myimg, 0, 0, this);
      }The output I get from running the server is this:
    BufferedImage@c9131c: type = 1 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 320 height = 240 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0
    Now how can I turn this into an image If this output is correct?

    HUH?
    I got the one to send the images over the network. I'm now trying to get the exact feed of the webcam and sending that over the network. This is alot more difficult to accomplish but I did see where I messed up my process of sending the images was just having to save the file then open it up put it in a byte array then send that over the network to the client. Once it was at the client i was able to re-construct it and throw it up in the frame. The only problem was lag. So this tells me it would be much more faster if instead of saving the file to send the client and having to reconstruct the image I should just send the webcam feed i used to make the image.
    eh, I guess I didn't need any help.
    Hey no offense or anything but you really have to learn how to spell better.

  • 1300 Series Access Point/Bridge Power Injector - Using power over ethernet

    Can I use power over ethernet to supply the Injector with power?

    Hi Mikael,
    Sorry, this will not work. Have a look at these specs;
    1300 Series Power
    Power
    The access point/bridge receives inline power from the Cisco Aironet Power Injector (hereafter called the power injector). Dual-coax cables are used to provide Ethernet data and power from the power injector to the access point/bridge. The power injector is an external unit designed for operation in a sheltered environment, such as inside a building or vehicle. The power injector also functions as an Ethernet repeater by connecting to a Category 5 LAN backbone and using the dual-coax cable interface to the access point/bridge.
    The power injector is available in two models:
    Cisco Aironet Power Injector LR2 standard version (included with the access point/bridge)
    48-VDC input power
    Uses the 48-VDC power module (included with the access point/bridge)
    Cisco Aironet Power Injector LR2T optional transportation version
    12- to 40-VDC input power
    Note The power injector and the power module must not be placed in an outdoor unprotected environment. The power module must not be placed in a building's environmental air space, such as above a suspended ceiling.
    http://www.cisco.com/en/US/products/ps5861/products_installation_guide_chapter09186a008079b93b.html#wp1051840
    Dual coaxial cable to run from the power injector to the 1300. See attached notes:
    Cisco Aironet 1300 Series
    Cisco Aironet 1300 Series Access Point/Bridge Power Injector
    The Cisco Aironet 1300 Series Outdoor Access Point/Bridge Power Injector,converts the standard 10/100 BaseT Ethernet interface that is suitable for weather protected areas to a dual F-Type connector interface for coax cables that are more suitable for harsh outdoor environments. The Power Injector also provides power to the outdoor unit over the same cables with a power discover feature and surge protection. To support longer cable runs from your wireless network switch or router, the Power Injector LR is designed to accommodate up to a 100 meter coaxial cable run plus 100 meters of indoor cat5 cable?enabling total cable runs up to 200 meters. The Cisco Aironet 1300 Series Outdoor Access Point/Bridge ships with the Power Injector LR2 and an AC power supply.
    From this link:
    http://www.cisco.com/en/US/products/ps5861/products_data_sheet09186a008022551d.html
    Cisco Aironet 1300 Series Outdoor Access Point/Bridge Hardware Installation Guide
    Ethernet Ports
    The access point/bridge dual-coax Ethernet ports consists of a pair of 75-ohm F-type connectors, linking the unit to your 100BASE-T Ethernet LAN through the power injector. The dual-coax cables are used to send and receive Ethernet data and to supply inline 48-VDC power from the power injector to the access point/bridge.
    From this link:
    http://www.cisco.com/en/US/products/ps5861/products_installation_guide_book09186a00804d3095.html
    AIR-PWRINJ-BLR2
    F-Type Connectors
    Dual coaxial cable carries full-duplex Ethernet, DC power, and full-duplex console port (RS-232 connection)
    From this link:
    http://www.cisco.com/en/US/products/ps5861/products_data_sheet09186a00802252e1.html
    Hope this helps!
    Rob

  • Need help : how to send 3 parameters over http using Java POST

    I am trying to sending some data to agency company over http using Java POST
    They need 3 parameters and some contents like below
    1. Cmd : cmd=_RequestInsertNewLead
    2 Live : False
    3 XMLData : 3C%3Fxml+version%3D%........
    I already have XML done ,but I don't know how to send these guy over http
    is that like
    this.out = new DataOutputStream(os);
    out.writeBytes("Cmd");
    out.writeBytes(" cmd=_RequestInsertNewLead");
    out.writeBytes(" Live ");
    out.writeBytes("False");
    anyone could give help :)

    First of all, are you getting any exception?
    You didn't put much logging information in your code.
    You can also try this.Instead of doing sos.println(".....") try to build the output string using string buffer.
    Like:
    StringBuffer sb = new StringBuffer();
    sb.append("Some output");
    sb.append("More output");
    sos.print(sb.toString());
    sos.flush();Let me know if this works.

  • Fragmenting packets over Ethernet to improve voice quality

    Setup:
    1750--Ethernet---Satellite Receiver---128K Sat Link---Sat. Recvr--Ether---1750
    Question:
    Since the Satellite Link is only 128K there will be a problem of Serialization Delay. Is there a way to fragment packets and Interleave over ethernet ? The same way it is done over Frame Relay or MLPPP.
    In this setup how does one lower down "Serialization Delay" ?

    rocampo,
    With a Satellite link, most the latency will be travel time and not serialization delay. I would expect VoIP quality to be an issue, since the users will have to tolerate long delays and have to wait to make sure the person on the other end has actually finished speaking before starting to speak. VoIP packets are generally small enough that they are already at or near Ethernet minimum packet size of 64 KBytes, so they are not fragmented on Ethernet. However, you may want to look into the QOS / COS capabilities of your LAN switches. But the real issue for you will be the large amount of latency across the satellite link. Be sure to use QOS on the satellite link, to send along VoIP packets on a preferred basis over other less time sensitive traffic. And you may want to see if you can use RTP header compression on the Satellite link to shrink the size of VoIP frames.
    Regards,
    Rob Bristow
    AT&T Solutions
    CCIE #3335

  • Detect device over ethernet

    Hi Everyone,
    I would like to know how do i detect device connected over ethernet by using labVIEW?
    My require is:
    I have to develop a code which detect any device connected to ethernet port.(The external device which is connected to ethernet port may be anything)
    I would like to get the IP of the device connected to my ethernet port using labVIEW.
    It will be really grateful if anyone can help me to resolve this.

    A brute force method which is commonly used is to send a ping packet to every IP address in the subnet(s) you are interested in. This is not guaranteed to work since some devices will not reply to ICMP ping packets for security reasons. Another approach which again guaranteed to work and will more likely find fewer devices would be to send a SNMP request for the system description (1.3.6.1.2.1.1.1.0) . If a device supports SNMP they will generally respond to this request.
    Many devices, especially network infrastructure devices, will not be easily managed. They will have security enabled to limit access to them. Part of this security will be to limit what types of communications they will accept and who they will talk to. Simply finding an IP address active on a network will not provide you with too much information about the type of device it is and how you may communicate with it. There are lots of network protocols out there and many devices have very specific ones they use. A general purpose network manager that can find and communicate with anything on the network is a daunting task and one that most likely will not be possible to implement. At best you will be able to find a subset of devices. As I mentioned even the most basic ping packet will not guarantee you will find everything.
    I'm not trying to rain on your parade but trying to let you know that you are trying to accomplish something that will most likely impossible to actually do. Probably the most effective way, but not very practical,  to at least find eveything would be to implement a port scanner that would exhaustively go through every IP address in your desired range and attempt to establish a connection on every TCP port (you could stop once you get a response). If a device is on the network it more than likely will communicate on at least one TCP port. All this would tell you though is that there is a device at that IP address that communicates using port x. However, as I cautioned before this type of activity will very quickly get the attention of the network staff managing the network you do this on.
    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

  • Does Lookout have a driver for SLC 5/05 and 1500 over ethernet

    Does Lookout communicate with the AB SLC 5/05 over ethernet and the AB 1500 via the Net DNI over ethernet ?

    Several years ago (back in Lookout 3.8 days) there was ethernet for AB SLC-5/05, it was a choice on the pull down menu for the communications type. It works great.
    then in the days of Lookout 5.X, NI removed the ethernet for AB SLC-5/05. I believe the issue was that some users were having difficulty in understanding the I/O addressing, expecially when they would have an analog input/output card in the chassie. The issue is that RSLogix 'neatly' organizes this I/O table for us, however, NI can only get the I/O table in its 'raw' form. And this caused confusion for users not experienced with how the I/O table is truly layed out. A user can experiment with a bench/test system and see how the I/O is layed out and get a good understanding. But a another method is to write the analog input value to a "N" file address, and use that in Lookout (remember only the I/O is the issue) Also, you can have Lookout write to another "N" file address, and in the SLC, move that "N" address to the Analog Ouput.
    I still have a SLC file for Lookout that has the ethernet enabled (works with Lookout V5.x) but I bet Ryan can send you one if you need it.
    I have upgraded to Lookout V6.2 and making a driver object to talk to AB SLC-5/05 on ethernet works great. (I love native drivers, and hate using RSLinx OEM to do OPC (for out ControLogix5000 processors)
    If a person can work thru how I/O tables are truly layed out (one big matrix actually) go direct and dont' use OPC.
    Remember, this isn't a fault/limitation of Lookout or NI, it is how AB layes out their I/0 table, and how the addressing we see in RSLogix is actually not the true representation of the actual matrix. (and this matrix is all that is actually available, AB just makes it more 'readable' because you (or who ever setup the chassie configuration) told RSLogix what cards are in which slot, so RSLogix can minipulate the table to show it to you more 'pretty'.
    If NI would add a chassie configuration to the AB SLC driver, then this issue would not exist. But I don't think we want to do that.
    Hope this was helpful!
    Rich Anderson

  • Sending Custom objects over RMI

    I am new to RMI and am having trouble sending customised objects over an RMI connection - I am trying to send an object of class DataFile which implements serializable, to a method on the server called loadPerformanceData(DataFile data). Here is the class DataFile:
    package org.twomey.fyp.loader;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import org.twomey.fyp.mail.*;
    * Class to accept a File Object to prepare a File for Data Loading.
    * It reads a Data File line-by-line and provides the functionality
    * to insert line records into the database.
    * @version 0.1
    * @author Sean Twomey
    public class DataFile implements Serializable{
    /** Data Loading Date */
    private String date;
    /** Log from Loading Process */
    private StringBuffer log;
    /** Array of lines from file */
    private String file[];
    * Constructs a Data File from a specified File Object.
    * Accepts the File object and Data Loading Date
    * @param inputFile Inputted File Object
    * @param date Data Loading Date
    public DataFile(File inputFile, Calendar date){
         // Formats the date into a form acceptable to Oracle DBMS
         SimpleDateFormat form = new SimpleDateFormat("dd-MMM-yy");
         this.date = form.format(date.getTime());
         String line;
         int count = 0;
         try{
              RandomAccessFile inFile = new RandomAccessFile(inputFile, "r");
              // Read until end-of-file counting lines
              while((line = inFile.readLine()) != null){
                   count++;
              // Initialise array size to number of lines.
              file = new String[count];
              // Return to start-of-file
              inFile.seek(0);
              for(int i=0;i < file.length;i++){
                   // Read line into array
                   file[i] = inFile.readLine();
              inFile.close();
         catch(IOException ie){
              System.err.println("IO Exception: " + ie);
    * Load the entire set of records into the Database.
    * Data is loaded line-by-line. A Data Record object
    * is initilised to perform record loading and the
    * insertRecord method is called for each record.
    * A log is compiled from the insertion process
    * @return The Process Log
    public StringBuffer loadData(){
         String record[];
         log = new StringBuffer("");
         System.out.println("HERE");
         System.out.println(file.length);
         // From the org.twomey.fyp.loader package
         DataRecord objRecord;
         objRecord = new DataRecord(date);
         // Line-by-Line
         for(int i = 0; i < file.length; i++){
              // Split the record into fields which have been tab-delimited
              record = file.split("\t");
              // Each record feed must be 12 fields for valid loading
              if(record.length != 12){
                   System.err.println("Invalid Feed for line " + (i+1));
                   log.append("Invalid Feed for Line " + (i+1) + "\n");
              else{
                   log.append("Line "+(i+1) + " " objRecord.insertRecord(record) "\n");
         return log;
    * Send an EMail upon Completion the Performance Data Loading Process.
    * The mail sents the log compiled during Data Loading.
    public void sendMailReport(){
         // Use the Mail class from the org.twomey.mail package
         Mail email;
         String from;
         String alias;
         String to[];
         String subject;
         email = new Mail("chara.ucc.ie");
         to = getAddresses();
         from = System.getProperty("user.name") + "@chara.ucc.ie";
         alias = "Sheet Generator System";
         subject = "Performance Data Loader Report";
         email.sendEMail(from,alias,to,null,null,subject,log.toString());
    * Returns Email addresses from file.
    * The <b>mail.config</b> file is read line-by-line.
    * Each line entry should correspond to an email address.
    * @return Email addresses in a <CODE>String</CODE> array
    private String[] getAddresses(){
         RandomAccessFile inFile;
    String strLine;
    String addresses[] = null;
         int count = 0;
    try{
         inFile = new RandomAccessFile(new File("mail.config"),"r");
              while((strLine = inFile.readLine())!= null){
                   count++;
              addresses = new String[count];
         inFile.seek(0);
              for(int i = 0; i < addresses.length; i++){
         addresses[i] = inFile.readLine();
    catch(IOException ie){
         System.err.println("IOException: " + ie.getMessage());
    return addresses;
    } // end getAddresses
    } // end Class

    You seem to be reading the file into a string array, then trying to pass the object that did the reading.
    Two alternatives:
    o Just pass the string array object.
    o Create a data only object, passing the string array as an argument to the constructor

  • How to print on HP LaserJet 2200 over Ethernet?

    Hi,
    I did an upgrade to Snow Leopard and would like to print on a HP LaserJet 2200 over Ethernet. OS X and the HP printer drivers are up to date now.
    The printer has been cold reset and on the configuration print out there's the IP address 0.0.0.0
    Now my question is how to get this printer to work with Snow Leopard over Ethernet? I did not find a tutorial how to assign an IP address to the printer first so I got stuck.
    Could you give me a hint where I should start with the configuration first?

    OK, now the printer works
    I reset the router and checked if DHPC is running.
    I reset the printer (hold down the GO button, turn the printer on and continue to hold the GO button for five to ten seconds).
    Checked at router that the printer is visible as network device.
    At the router I assigned a fixed IP address to the printer.
    At OS X System Preferences > Printer I added a new printer with "HP Jetdirect - Socket", the fixed IP address and the correct printer driver "HP LaserJet 2200".
    Now the printer has been recognized well by the system (Tray 3, Duplex and printer RAM) and printing works.
    THANKS.

  • How can i use an existing vpn connection without using the option "Send all traffic over vpn connection"?

    I have been trying to get my computer (os x.7) to astablish a remote desktop connection to my work computer via a vpn tunnel. In fact I have just discovered that it works fine if i select to "send all traffic over vpn connection" from the options in the advanced setup of the vpn.
    If the option is selected microsofts "Remote desktop connection for mac" works just fine. However without selecting the option it is not taking advantage of the tunnel but tries to connect as if the tunnel would not exist.
    Now the question is how do I get program to use the vpn tunnel without checking the above option?
    Thanks for any hints and pointers.

    Then can her computer be authorized to both accounts?
    Absolutely. You can authorize any given computer to up to five iTunes Store accounts.
    If purchases are made on her account, to a computer authorized to my account, can I put those songs on my iPod?
    If you connect your iPod to her computer, yes. Tracks download only to the computer from which they're purchased, regardless of which iTunes Store account is used for the purchase. Or you could copy the tracks from her computer to yours and then authorize your computer to her iTunes Store account. But that's sort of defeating the original purpose, it would seem to me.
    is it better to buy music through Amazon downloads and/or actually purchasing CDs to avoid the security features iTunes puts on its music?
    That's certainly an option. If it's an entire album I want, I buy CDs. That way I can import them at the quality I want and to whichever of my systems I want. Amazon or one of the other download stores that offer tracks as MP3 are also an option, though for me download stores are best when you just want a couple of tracks off a given CD.

Maybe you are looking for

  • How to log in

    I keep getting notifications to say that I need to update my apps on my BB Bold 9900.  When I try and update these apps, I get a message to say that there is an error # 30702 and that I should login to rectify this.  I do not know how to proceed.  Ca

  • How to get the ep user information data in the web dynpro?

    Hi all   I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

  • TRFC call are very slow going to SIEBEL (TCP/IP RFC problem)

    Hi everyone, we have a problem when testing a connection to a TCP/IP RFC. this is also related to IDOCS being pushed to SIEBEL end. the logon time is very slow. not sure if this is on SAP end or on theirs. Could anyone give info on this? any would be

  • Installing Final Cut Pro 1.2.5 on OS X

    A buddy of mine was digging through some of his old software and found an unopened version of Final Cut Pro 1.2.5. I'm attempting to install in on my PowerBook G4, and I'm wondering if it is even possible. I have installed and began running "classic"

  • Opening MPEG 4s in FCP

    I want to bring a movie I downloaded from the iTunes store in FCP. I opened it in Quicktime, but it won't let me export it into a different file type, and FCP won't let me import the file. Is there any way to somehow get it into FCP?