Sending string of bits from PXI to NAS

Good evening, I expose my problem:
I should send a string of bits from PXI to a memory type NAS, using the FTP protocol. I do this every 0.72 ms, then use a timedloop with a frequency of 1MHz. But implementing a timer sending time is very different from what I expect. My question is whether this problem is due to the FTP put buffer.vi that takes more time to send the string.
look your response
Attachments:
Immagine.jpg ‏178 KB

I Dont think a FTP server is meant for being accessed every 0.72s
I would use the queue functions built into labview for buffering the data and access the FTP server at a much lower rate, every minute or every hour...
Regards Claus

Similar Messages

  • Send arraylist to swings from servlet

    Hi,
    I send string to jsp from swings using URL(pass as a query string)
    And then call servet from jsp(submit some values to this servlet from jsp)
    Now i want to send ArrayList to my swings ,
    How it is,
    i know call servlet from swings,retrive values from servlet to swings. This is two way communication,
    But now my requirement is one way, i didn't call servlet directly from swings, i call from jsp
    Help me,
    Thanks in advance

    Thanks for reply
    i write code in my swing as
    ArrayList pdetails;
    URL url=new URL(getCodeBase()+"sample.jsp");
                URLConnection con =url.openConnection();
                con.setDoInput(true);
                con.setDoOutput(true);
                con.setUseCaches(false);
                OutputStream outstream = con.getOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(outstream);
                oos.writeObject(pdetails);
                oos.flush();
                oos.close();
                AppletContext context=getAppletContext();
                context.showDocument(url,"_blank");my jsp code is
    <%@page import="java.io.*,java.util.*"%>
    <%
    ObjectInputStream inputFromApplet = null;
    ArrayList transmitContent =null;
    inputFromApplet = new ObjectInputStream(request.getInputStream());
    System.out.println(inputFromApplet);
    transmitContent = (ArrayList) inputFromApplet.readObject();
    out.println(transmitContent);
    %>
    but i got an exception like this21:28:50,078 WARN [[jsp]] Servlet.service() for servlet jsp threw exception
    java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
    .java:2232)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
    tream.java:2698)
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:750
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
    at org.apache.jsp.sample_jsp._jspService(org.apache.jsp.sample_jsp:52)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
    ipalValve.java:54)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:174)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :868)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:663)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
    kerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)

  • CNVString - Sending Strings from a PXI chassis over ethernet to a labWindows application on another computer

    I have a PXI chassis with a PXI-8101 controller. It is set up with a realtime operating system. I am communicating to it with a PC with a Windows operating system. I am trying to send variable length string messages from my PXI system to my PC.
    On the PC I have a LabWindows application which can send and receive data with the PXI system. I am attempting to send error messages from the PXI system to the PC on ethernet. I am able to send numerical data between them but not the string messages. The PXI software runs to the function call CNVCreateArrayDataValue() and steps into it but never returns. It only has this problem when the parameter CNVDataType is CNVString; when I change CNVDataType to CNVBool it does not have this problem. I am new to this PXI realtime so would appreciate the help. Below is the code on my PXI system which sends these text messages.
    In the beginning of RTMain I create the Writer
          CNVCreateBufferedWriter("\\\\localhost\\system\\" REG_CAL_ERROR_STRING, 0, 0, 0, 64, 5000, 0, &gErrorPublisher);
    Then I call a function with a string in the parameter list:
    void SendRT_ErrorMessage(char* message)
          CNVData data=0;
          int error;
          char error_str[256];
           int i;
          char out_str[ERROR_STRN_SIZE*4];
          strcpy(out_str,message);
          size_t arrayDims= ERROR_STRN_SIZE;
          arrayDims= strlen(message) +1;
          error = CNVCreateArrayDataValue(&data, CNVString, out_str, 1, &arrayDims);
          if(error<0)
                strncpy(error_str, CNVGetErrorDescription(error),256);
    //    CNVPutDataInBuffer(gErrorPublisher, data, 1000);
          CNVSetArrayDataValue(data,CNVString,out_str,1,&arrayDims);
          CNVPutDataInBuffer(gErrorPublisher, data, 1000);
          CNVDisposeData(data);
    Solved!
    Go to Solution.

    I've changed things around and now the application on the realtime operating system on the PXI-8101 does not hang but my host computer does not see the message correctly. It sees some characters but they are not what I sent.
    I don't seem to be able to get message out of CNVData data properly. Below is the new code for the PXI-8101 controller and the Host computer LabWindows application.
    Here is the code in the PXI-8101 controller now:
     CNVCreateWriter("\\\\localhost\\system\\" REG_CAL_ERROR_STRING, 0, 0, 5000, 0, &gErrorPublisher);
    void SendRT_ErrorMessage(char* message)
     CNVData data=0;
     int error;
     char error_str[256];
      int i;
     char out_str[ERROR_STRN_SIZE*4];
     strcpy(out_str,message);
     size_t arrayDims= ERROR_STRN_SIZE;
     arrayDims= strlen(message) +1;
     error = CNVCreateScalarDataValue( &data,CNVString,out_str); 
     if(error<0)
      strncpy(error_str, CNVGetErrorDescription(error),256);
     CNVWrite(gErrorPublisher, data, 1000);
     CNVDisposeData(data);
    And here is the code in the Host computer LabWindows application:
     sprintf(path, "\\\\%s\\system\\%s", address, REG_CAL_ERROR_STRING);
     CNVCreateSubscriber(path, ErrorMessageCallback, 0, 0, 10000, 0, &gErrorMessageSubscriber);
    static void CVICALLBACK ErrorMessageCallback(void * handle, CNVData data, void * callbackData)
     char message[ERROR_STRN_SIZE];
     CNVGetScalarDataValue(data,CNVString,(void *)message);
     (void)SetCtrlVal(panelHandle,PANEL_TEXTBOX_DEBUG_MSG,"got something\n");
     (void)SetCtrlVal(panelHandle,PANEL_TEXTBOX_DEBUG_MSG,message);
     (void)SetCtrlVal(panelHandle,PANEL_TEXTBOX_DEBUG_MSG,"\n");
     CNVDisposeData(data);
    You can see that I output a message "got something" so that I know I got the callback but the next line is a gibberish message "HÊl "

  • Sending String Data of  64 kilo bytes to Remote Function Module

    Hi,
        I have an RFC call from JAVA and I need to send string data to the FM. The maximum size of the data that I can send from java is 64 kilo bytes (Functional requirement). I want to receive this data as a table's parameter in the FM. Table's parameter’s data type can only be structure's which are FLAT-LINED. So if I use STRNIG as the data type for receiving the data from JAVA the RFC doesn’t allow me (As this makes the structure NON FLAT LINED which RFC will not allow as data type for tables parameter). So I have to use some other data type like CHAR or LCHR. But the maximum size for CHAR and LCHR is around 32 kilo bytes. I need a way to receive 64 kilo bytes of data into the Function Module as a table’s parameter.
    Thanks in advance
    Sesh

    Hi!
    I think I was pretty near your problem. When talking about table fields, you could a 'parameter' -> field of your table parameter.
    Which type? String is out of question, because here length is variable, but you need a constant length definition. I just have a look into help of data, built in ABAP-types. Here C and N can have a length from 1 to 65535 - OK, not 64 KB but only 1 byte missing...
    ... just made a small test, there is a second border (for non-unicode systems): the total length of the structure can't exceed 65535. If you need additional fields, define a second table parameter and place your additional fields in a second table. You can't define a link field (would need some space), so you have to go for a '1st line of data matches 1st line of attributes'-definition.
    I'm still a little bit curious: what kind of data you are sending?
    Regards,
    Christian

  • Sending /receiving object data from JavaNIO bytebuffer

    Hello All,
    i have designed a real time Physics simulation with javanio , which is about moving balls simultaneously (real time) on multiple clients.
    Currently, i m sending the coordinates of one ball with string parsing, but now i want to move multiple balls and want to have some generic mechanism other than sending string, so i create 4 balls on server.
    my design with string base is already running (one ball which is running from server, receiving coordinates as string on clients now i want more balls so i have problem to send the coordinate for each ball and receiving the same on client to draw while there are no reference attach to those which ball correspond to which ball on client) but i need little bit generic solution which can be valid for other simulations too.
    This should be realized by sending the reference of each ball but i don't have idea how to realized that with java byte buffer and with javanio overall.
    how i can realized, so that coordinates of each ball correspond to same ball on client (which i created on client too), and each ball can be move according to its received coordinates from the sever.
    I have the problem with implementation, if somebody help me with code example , it would be great, anyway which can be generic for sending simulation data like object coordinates other than strings can be acceptable(if somebody did similar work) but it should implement the usecase as i described.
    Thanks,
    Jibbylala
    PS: i saw this post:http://www.coderanch.com/t/276259/Streams/java/Convert-ByteBuffer-object
    they are sending the whole object but i just wanted to send
    Ball.X ,Ball[i].Y and receive the same at client sit
    Edited by: 805185 on Mar 20, 2011 8:29 PM

    I think the question here is that if you have n balls on the server, and you receive coordinates on the client, how the client will know for which ball the coordinates are meant. The answer is pretty simple: just modify your protocol to send the ball number before you send the coordinates. You say you currently use strings to represent the coordinates. Say your string currently looks like this: x|y, where x is the x-coordinate, | the separator and y the y coordinate. You could modify this string as follows: n|x|y, where n is the ball number, x the x coordinate and y the y coordinate. This way the client knows for which ball the coordinates are meant.
    If you want to avoid the string parsing, use the ByteBuffer.putDouble() and ByteBuffer.putInt() methods as suggested by EJP.

  • Error synchroniz​ing with Windows 7 Contacts: "CRADSData​base ERROR (5211): There is an error converting Unicode string to or from code page string"

    CRADSDatabase ERROR (5211): There is an error converting Unicode string to or from code page string
    Device          Blackberry Z10
    Sw release  10.2.1.2977
    OS Version  10.2.1.3247
    The problem is known by Blackberry but they didn't make a little effort to solve this problem and they wonder why nobody buy Blackberry. I come from Android platform and I regret buying Blackberry: call problems(I sent it to service because the people that I was talking with couldn't hear me), jack problems (the headphones does not work; I will send it again to service). This synchronisation problem is "the drop that fills the glass". Please don't buy Blackberry any more.
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?noCount=true&externalId=KB33098&sliceId=2&di​...

    This is a Windows registry issue, if you search the Web using these keywords:
    "how to fix craddatabase error 5211"       you will find a registry editor that syas it can fix this issue.

  • How to send string data through socket!

    Is there any method to send string data over socket.
    and if client send string data to server,
    How to get that data in server?
    Comments please!

    Thank for your kind answer, stoopidboi.
    I solved the ploblem. ^^;
    I open the source code ^^; wow~~~~~!
    It will useful to many people. I spend almost 3 days to solve this problem.
    The program works like this.
    Client side // string data ------------------------> Server side // saving file
    To
    < Server Side >
    * Server.java
    * Auther : [email protected]
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Server extends JFrame
         private JTextField enter;
         private JTextArea display;
         ObjectInputStream input;
         DataOutputStream output;
         FileOutputStream resultFile;
         DataInputStream inputd;
         public Server(){
              super("Server");
              Container c = getContentPane();
              enter = new JTextField();
              enter.setEnabled(false);
              enter.addActionListener(
                   new ActionListener(){
                        public void actionPerformed(ActionEvent ev){
                             //None
              c.add(enter, BorderLayout.NORTH);
              display = new JTextArea();
              c.add(new JScrollPane(display),
                     BorderLayout.CENTER);
              setSize(300, 150);
              show();
         public void runServer(){
              ServerSocket server;
              Socket connection;
              int counter = 1;
              display.setText("");
              try{
                   server = new ServerSocket(8800, 100);
                   while(true){
                        display.append("Waiting for connection\n");
                        connection = server.accept();
                        display.append( counter + " connection is ok.\n");
                        display.append("Connection " + counter +
                             "received from: " + connection.getInetAddress().getHostName());
                        resultFile = new FileOutputStream("hi.txt");
                        output = new DataOutputStream(resultFile);
                        output.flush();
                        inputd = new DataInputStream(
                             connection.getInputStream()
                        display.append("\nGod I/O stream, I/O is opened\n");
                        enter.setEnabled(true);
                        try{
                             while(true){
                                  output.write(inputd.readByte());
                        catch(NullPointerException e){
                             display.append("Null pointer Exception");
                        catch(IOException e){
                             display.append("\nIOException Occured!");
                        if(resultFile != null){
                             resultFile.flush();
                             resultFile.close();
                        display.append("\nUser Terminate connection");
                        enter.setEnabled(false);
                        resultFile.close();
                        inputd.close();
                        output.close();
                        connection.close();
                        ++counter;
              catch(EOFException eof){
                   System.out.println("Client Terminate Connection");
              catch(IOException io){
                   io.printStackTrace();
              display.append("File is created!");
         public static void main(String[] args){
              Server app = new Server();
              app.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              app.runServer();
    < Client side >
    * Client.java
    * Auther : [email protected]
    package Client;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Client extends JFrame
         private JTextField enter;
         private JTextArea display;
         DataOutputStream output;
         String message = "";
         public Client(){
              super("Client");
              Container c = getContentPane();
              enter = new JTextField();
              enter.setEnabled(false);
              enter.addActionListener(
                   new ActionListener(){
                        public void actionPerformed(ActionEvent e){
                             //None
              c.add(enter, BorderLayout.NORTH);
              display = new JTextArea();
              c.add(new JScrollPane(display), BorderLayout.CENTER);
              message = message + "TT0102LO12312OB23423PO2323123423423423423" +
                        "MO234234LS2423346234LM2342341234ME23423423RQ12313123213" +
                        "SR234234234234IU234234234234OR12312312WQ123123123XD1231232" +
                   "Addednewlinehere\nwowowowwoww";
              setSize(300, 150);
              show();
         public void runClient(){
              Socket client;
              try{
                   display.setText("Attemption Connection...\n");
                   client = new Socket(InetAddress.getByName("127.0.0.1"), 8800);
                   display.append("Connected to : = " +
                          client.getInetAddress().getHostName());
                   output = new DataOutputStream(
                        client.getOutputStream()
                   output.flush();
                   display.append("\nGot I/O Stream, Stream is opened!\n");
                   enter.setEnabled(true);
                   try{
                        output.writeBytes(message);
                   catch(IOException ev){
                        display.append("\nIOException occured!\n");
                   if(output != null) output.flush();
                   display.append("Closing connection.\n");
                   output.close();
                   client.close();
              catch(IOException ioe){
                   ioe.printStackTrace();
         public static void main(String[] args){
              Client app = new Client();
              app.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              app.runClient();

  • How to send a SQUARE WAVE to PXI-6259 over the LAN

    howcan I  send a SQUARE WAVE  to PXI-6259 over the LAN, is
    there any example or link any one can send me , thanx in advance.

    Dear HaI L,
    I managed to send a test signal (sine wave) to the device by choosing
    the test panel option and choosing Analog output. In the analog output
    I could many channels to choose from. ai0, ai1.ai2 and ai3.
     I did this by right clicking NI PXI-6259, in the NI DAQmx devices
    located in the Devices and Interfaces and choosing test and saw it on
    an Oscilloscope without using the NI DAQ OPC capabilities, and I cannot
    understand this thing.
    1)How can it be possible without  making a NI DAQmx  channel and Variable?
    2) I cannot create any channels in the devices and interfaces located
    in My system but I can create NI DAQmx Global Virtual channels easily
    in Data neighbourhood in the remote system, Plz tell me why?
    3) I  want to create a program and choose a channel to send the
    signal,  can I choose the channel that i create in the remote
    system device ? and if yes how can I choose this ?
    Thanx in advance.
    Sincerely,
    Munir Afzal Bhatti.
    Attachments:
    max.jpg ‏2305 KB

  • Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?

    Colleagues,
    Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?
    Which will be the maximum transfer rate for continuous data recording?
    Thank you,
    Sergey
    Sergey

    Sergey,
    The PXI-8210 can connect to any SCSI 2 compliant device. If the RAID controller is SCSI 2 and appears just like a hard drive in the operating system, then you can send data directly to the RAID array. The problem is that the driver for the PXI-5112 does not yet support continuous acquisition. The on-board 16MB or 32MB buffer stores the data until the entire acquisition is completed. Once the acquisition complete, all of the data is transferred from the on-board buffer to the hard drive. After that happens, the NI 5112 is ready for another acquisition.
    Best Regards,
    Jace Curtis
    NI Applications Engineering

  • Why can I send a text message from my iPad mini from my contacts?

    I try to send a text message from my contact list on my ipad mini ,
    the contact name comes up in pink.....Can you tell me why?

    Hi,
    Because you are choosing an Contact ID (iPhone Number or Apple ID) that is either not registered or currently unavailable.
    A iPhone away from WiFi connection may also be out of range of it's Cell/mobile Service. (Or Switched Off or in Airplane Mode).
    An iPad may not be on a Wifi Network  at present. (or run out of Power)
    You may know a Buddy's email and it may also be an Apple ID but that does not mens that they have "registered" it for iMessages.
    10:37 PM      Monday; December 10, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Problem sending a SMS message from mobile phone t809

    Hello!
    I am trying to send a SMS message from my cell phone. This is Samsung t809 phone with CLDC 1.1 and MIDP 2.0
    The code that I am using is next:
    MessageConnection smsconn = null;
    try
    smsconn = ( MessageConnection )Connector.open( "sms://:50000" );
    TextMessage txtMsg = ( TextMessage )smsconn.newMessage( MessageConnection.TEXT_MESSAGE );
    txtMsg.setAddress( "sms://18885552233" );
    txtMsg.setPayloadText( "Hello SMS!" );
    smsconn.send( txtMsg );
    catch( Exception e )
    e.printStackTrace();
    System.out.println( e.getMessage() );
    form_main.append( "\nError occured!" );
    if( smsconn != null )
    try
    smsconn.close();
    catch( IOException e )
    e.printStackTrace();
    System.out.println( e.getMessage() );
    Seems like on cell phone I have an exception because I can see the line "Error occured!"
    I have no idea why... :(
    Will appreciate any help and comments.
    Thank you!
    P.S. Oh yes... the phone 18885552233 is not real, I just used my friend cell phone to test. Does not work... :(
    Message was edited by:
    viva_unix

    hello,
    when you use smsconn = ( MessageConnection )Connector.open( "sms://:50000" ); it means that you are trying to connect to a sms server. So if you don't have a sms server on your computer, an exception is thrown !
    if you just wanna test sms sending, put the phone number in the string like this
    smsconn = ( MessageConnection )Connector.open( "sms://123456789" );<b>reference</b>:
    http://developers.sun.com/techtopics/mobility/midp/articles/wma/index.html
    hope it will help you
    peace
    supareno

  • HT1688 I cannot send pictures or videos from my I phone 3gs.  I use to be able to by not any longer.

    I am unable to send video and pictures from my I phone.   I was able to but now I cannot.   Can someone please help.

    I'm not sure exactly what you mean, but I'll give a few examples of what I think you might be looking for.
    I am running iOS 5 on my iPad and Pages '08 on my iMac.
    1. I created a Pages file on my iPad and emailed it to me by selecting the wrench --> share and print -->email document -->chose Pages as the format.  I collected the file from my email and attempted to open it in Pages '08. The message I received was that I needed a newer version of Pages.  True enough, but I'm sure that iWork '12 will come out this summer so I'll hold off on that purchase. What I did to solve this problem was to send the file in Word format instead. When I opened it with Pages '08, I had to tweak the format a bit, but it worked. Perhaps your trouble is that you need to upgrade. You could also send the file in PDF format.
    2. I created a file in Pages '08 and sent it as an attatchment by email to my iPad. I collected the file from my email on the iPad, then clicked on the attatchment.  It opened in Pages for iPad with no problem. If this is the senario you are having trouble with, then I suggest you first send a test file, and if that doesn't work, make sure all your files are backed up then delete the app and reinstall it.  WARNING!!! when you delete the app, all files will be deleted as well.  Make sure you have current and accurate backups that you can access before taking this step.  Files saved in iTunes may not be accessable other than to the iPad.  Make sure you can open the files on your computer BEFORE taking this action.

  • Send String failed using socket

    Hi all,
    I have just finished a program which send a string client to the host server using simple socket. The program is developed using JBuilder9 and run well in winxp pro. When the same program run in linux (red hat), the host server can only see the connection and close. The string never receive in the server side. The problem is worked out like the following
    -create socket
    -create output stream using "PrintWriter"
    -send string
    -close socket
    Pls. comment on what I should do to debug this problem.
    Thanks,
    Peter

    Hi all,
    Thanks for your assistance. I have log down the following from linux using "tcpdump"
    13:16:48.218624 128.128.2.161.33083 > pmon-srv0.999: P 1:42(41) ack 1 win 5840 <nop,nop,timestamp 158365 0> (DF)
    13:16:48.219105 128.128.2.161.33083 > pmon-srv0.999: F 42:42(0) ack 1 win 5840 <nop,nop,timestamp 158365 0> (DF)
    13:16:48.219742 pmon-srv0.999 > 128.128.2.161.33083: . ack 43 win 64199 <nop,nop,timestamp 2471694 158365> (DF)
    13:16:48.219876 pmon-srv0.999 > 128.128.2.161.33083: F 1:1(0) ack 43 win 64199 <nop,nop,timestamp 2471694 158365> (DF)
    13:16:48.219894 128.128.2.161.33083 > pmon-srv0.999: . ack 2 win 5840 <nop,nop,timestamp 158365 2471694> (DF)
    13:17:59.746088 128.128.2.211.1633 > pmon-srv0.999: P 1:43(42) ack 1 win 17520 (DF)
    13:17:59.756047 128.128.2.211.1633 > pmon-srv0.999: F 43:43(0) ack 1 win 17520 (DF)
    13:17:59.756493 pmon-srv0.999 > 128.128.2.211.1633: . ack 44 win 64198 (DF)
    13:17:59.756989 pmon-srv0.999 > 128.128.2.211.1633: F 1:1(0) ack 44 win 64198 (DF)
    13:17:59.757103 128.128.2.211.1633 > pmon-srv0.999: . ack 2 win 17520 (DF)
    128.128.2.211 is the client in winxp pro
    128.128.2.161 is the client in linux
    pmon-srv is the server
    In the first line of each section, it shows that number of bytes have push to the server. I don't know what should I do next to solve the problem.
    Here is the source code
    public class pconnect {
    String ip_addr;
    String fromServer, toServer;
    int i,port;
    Socket pmSocket;
    BufferedReader pm_in;
    PrintWriter pm_out;
    public pconnect(String ip, int portno) {
    ip_addr=ip;
    port=portno;
    try {
    pmSocket = new Socket(ip_addr, port);
    pm_out = new PrintWriter( pmSocket.getOutputStream(), true );
    pm_in = new BufferedReader( new InputStreamReader( pmSocket.getInputStream() ) );
    } catch (Exception err) {
    System.err.println(err);
    System.exit(0);
    public void sendMsg(String msg) {
    try {
    Thread.sleep(5000);
    } catch (InterruptedException e){}
    if (pmSocket.isConnected()) {
    try {
    System.out.println("Stream Status: " + pmSocket.isOutputShutdown());
    System.out.println("Bound Status: " + pmSocket.isBound());
    pm_out.println(msg);
    if (pm_out.checkError()) {
    System.out.println("Socket error");
    }catch (Exception e){System.out.println("Exception: " + e);}
    try {
    pmSocket.close();
    } catch (Exception err) {
    System.err.println("Closed Error: "+err);
    public static void main(String[] args) {
    System.out.println(args.length);
    System.out.println(args[0]);
    pconnect pconnect1 = new pconnect(args[0],Integer.parseInt(args[1]));
    pconnect1.sendMsg("SET00000000N|ALARM:MBX TEST|c29K1920755D");
    Thanks,
    Peter

  • Sending down Linux commands from database

    Hello
    Im working with Oracle 10.2.0.4.3 on Linux SuSE FUSE Version 2.3.0-RC0-SL0/SLES-9.
    Im currently doing an extract of BLOB files down to a directory on the server.
    When I do the extract the Oracle user becomes the owner of the files and my own user doesn't have the access (neither read or write) to the files.
    I cannot receive Oracle access due a security issue so Im wondering if its possible to send down a command from the database that does a
    $chmod a+rw my_directory/*.* ?
    Iv looked into the some forums and I didnt find anything in particulate that would help me, so Im wondering if any of you know if this is possible ?
    BR / SA

    Hello
    Thank you for your advice but the question was to send down Linux commands from the DB, not do anything in the Linux enviroment.
    Here is a good place to start that I found on the net.
    public class JShellCommand {
    public static int execute(String cmd) {
    try
    String[] shellCmd = { "/bin/sh", "-c", cmd };
    Process process = Runtime.getRuntime().exec(shellCmd);
    int exitVal = process.waitFor();
    return (exitVal);
    catch (Exception e)
    return 1;
    load it into db with loadjava and wrap it with:
    CREATE OR REPLACE
    FUNCTION Shell_Command(
    p_CMD IN VARCHAR2
    RETURN NUMBER
    AS
    LANGUAGE JAVA
    NAME 'JShellCommand.execute(java.lang.String) return int';
    For OS command you can use:
    public class JCommand {
    public static int execute(String cmd) {
    try
    Process process = Runtime.getRuntime().exec(cmd);
    int exitVal = process.waitFor();
    return (exitVal);
    catch (Exception e)
    return 1;
    and
    CREATE OR REPLACE
    FUNCTION OS_Command(
    p_Cmd IN VARCHAR2
    RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'JCommand.execute(java.lang.String) return int';
    /

  • Repetative trigger from PXI-6733 to PXI-6220

    I am running a PXI-6733 in continuous mode and want to send a trigger pulse from the 6733 to a PXI-6220 at the start of each cycle. I will also want to do this in finite sample mode. I have used a DAQmx Connect Terminals VI to connect the trigger channels. But I cannot find how to set the 6733 StartTrigger as an output or how to synchronize it with the analog output. Any suggestions would be welcome.
    Bob

    Since your AWG needs to send the 6220 the trigger, the M Series (6220) correlated DIO feature doesn't help. Luckily, the 6733 also has the feature. I've attached a vi that shows how to set up the 6733 to output a companion digital waveform to the analog waveform. The first point in the digital waveform is a 1, the rest is 0. You will have to connect a physical wire from the digital line used to an input (PFI) of the 6220.
    If you can run the 6220 in a 'batch' mode (a series of finite tasks), you can use this digital line as a Start Trigger for your 6220. If your passes happen too quickly, you might need to run the 6220 continuously. Now, you might use a counter on the 6220 to generated the sample clock for the analog input task. The digital line from the 6733 would serve as the counter tasks's Start Trigger. The counter task would produce a series of pulses each time it got this trigger. This is getting a little complicated.
    Attachments:
    6733 Correlated AO and DO.vi ‏66 KB

Maybe you are looking for

  • Could not resolve ms:script to a component implementation?

    hi, i am new at flex and tried to see a working porject. tried the code given in the url below: http://learn.adobe.com/wiki/display/Flex/1b.+Code+Files But i am getting the error: "Could not resolve <mx:Script> to a component implementation." I asked

  • How to read the stored images

    hi i have images in my table img, i want to know how toretreive that stored image

  • How do iPhoto and Adobe Elements Organizer compare?

    I just installed Photoshop Elements 13 and am curious how others compare iPhoto 11 and Adobe Elements Organizer 13 compare.

  • Idoc for Resource/Work center characteristics .

    Hi All , I want to send Resource/Work Center characteristics name and value from SAP R/3 to Legacy system via PI. The requirement is that I should use Idocs. Is there any Idoc in which I can send the following info. 1.Resource/Work Centre 2.Resource

  • Problem opening BI Answers portal

    Hi, Can anyone pls help me on this issue? This is a test portal installed in Unix system and used to open before. Now tried with restarting run-sa.sh and run-saw.sh services many times but portal homepage itself is not coming. I can provide all the f