Passing data through TCP/IP

Hello ! My challenge is this: I have a vi that i have to use as a server and a vi as a client. In the server vi, i want to modify multiple parameters of one graph and these modifications should reflect on the client vi. How can i transmit, through TCP/IP, the modified graph to the client vi/application ? I would appreciate very much a link or a example vi that can show me exactly how such an opperation can be achieved. Thank you!

You can make the string you pass include any data.  Here is a simple example using an XML string.
<Graph>
<Value>1,2,3,4,5,6</Value>
<Visible>True<\Visible>
</Graph>
Send this string on the server side taking a reference to a graph and build a simple vi to generate a string containing  the data you want to send.
At the client side you parse this string an a loop as set the appropriate property node as the tag dictates.
I cant think of a precanned solution for this but my morning coffee has not kicked in yet.
Paul 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

Similar Messages

  • Receiving data through TCP Socket

    Hi all,
    I am trying to receive some data through TCP Socket from the
    server using XMLSocketClass. Ther server is responding with some
    data. But I can't access this data in my application. Pls tell me
    the reasons for not working of handler private function
    dataHandler(event:DataEvent):void .
    =============================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.DataEvent;
    import flash.events.IOErrorEvent;
    import flash.net.XMLSocket;
    private var socket:XMLSocket;
    private var nextId:int;
    private var events:ArrayCollection = new ArrayCollection();
    public static var host:String = "34.234.43.97";
    public static var port:Number = 8002;
    public var xml:XML;
    private function connectToServer():void
    socket = new XMLSocket();
    socket.addEventListener(DataEvent.DATA, dataHandler);
    configureListeners(socket);
    socket.connect(host, port);
    //This function is Not working
    private function dataHandler(event:DataEvent):void {
    Alert.show("dataHandler: " + event.data);
    xml = new XML(event.data);
    Alert.show(xml); }
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, closeHandler);
    dispatcher.addEventListener(Event.CONNECT, connectHandler);
    dispatcher.addEventListener(DataEvent.DATA, dataHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    private function closeHandler(event:Event):void {
    trace("closeHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    /* private function dataHandler(event:DataEvent):void {
    trace("dataHandler: " + event);
    private function connectHandler(event:Event):void
    var obj:Object = new Object();
    obj.id = nextId++;
    obj.eventName="connect";
    obj.timestamp = new Date().valueOf();
    events.addItem(obj);
    private function sendData():void
    var xmlvalue:String=txtData.text.toString() ;
    var xmlfile:String =
    "<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
    socket.send(xmlfile);
    Alert.show(xmlfile);
    ]]>
    </mx:Script>
    <mx:HBox width="80%" horizontalAlign="center">
    <mx:TextInput id="txtData" name=""/>
    <mx:Button id="btnConnect" label="Connect"
    click="connectToServer();btnConnect.enabled = false"/>
    <mx:Button id="btnSend" label="Send Data"
    click="sendData()"/>
    <!--<mx:Button label="getData" id="btnGet"
    click="getData()"/>-->
    </mx:HBox>
    <mx:HBox x="10" y="30" width="100%">
    <mx:DataGrid width="80%" height="100%"
    dataProvider="{xml}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn headerText="Event Name"
    dataField="eventName"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:HBox>
    </mx:Application>

    Hi all,
    I am trying to receive some data through TCP Socket from the
    server using XMLSocketClass. Ther server is responding with some
    data. But I can't access this data in my application. Pls tell me
    the reasons for not working of handler private function
    dataHandler(event:DataEvent):void .
    =============================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.DataEvent;
    import flash.events.IOErrorEvent;
    import flash.net.XMLSocket;
    private var socket:XMLSocket;
    private var nextId:int;
    private var events:ArrayCollection = new ArrayCollection();
    public static var host:String = "34.234.43.97";
    public static var port:Number = 8002;
    public var xml:XML;
    private function connectToServer():void
    socket = new XMLSocket();
    socket.addEventListener(DataEvent.DATA, dataHandler);
    configureListeners(socket);
    socket.connect(host, port);
    //This function is Not working
    private function dataHandler(event:DataEvent):void {
    Alert.show("dataHandler: " + event.data);
    xml = new XML(event.data);
    Alert.show(xml); }
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, closeHandler);
    dispatcher.addEventListener(Event.CONNECT, connectHandler);
    dispatcher.addEventListener(DataEvent.DATA, dataHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    private function closeHandler(event:Event):void {
    trace("closeHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    /* private function dataHandler(event:DataEvent):void {
    trace("dataHandler: " + event);
    private function connectHandler(event:Event):void
    var obj:Object = new Object();
    obj.id = nextId++;
    obj.eventName="connect";
    obj.timestamp = new Date().valueOf();
    events.addItem(obj);
    private function sendData():void
    var xmlvalue:String=txtData.text.toString() ;
    var xmlfile:String =
    "<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
    socket.send(xmlfile);
    Alert.show(xmlfile);
    ]]>
    </mx:Script>
    <mx:HBox width="80%" horizontalAlign="center">
    <mx:TextInput id="txtData" name=""/>
    <mx:Button id="btnConnect" label="Connect"
    click="connectToServer();btnConnect.enabled = false"/>
    <mx:Button id="btnSend" label="Send Data"
    click="sendData()"/>
    <!--<mx:Button label="getData" id="btnGet"
    click="getData()"/>-->
    </mx:HBox>
    <mx:HBox x="10" y="30" width="100%">
    <mx:DataGrid width="80%" height="100%"
    dataProvider="{xml}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn headerText="Event Name"
    dataField="eventName"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:HBox>
    </mx:Application>

  • "secured by passing data through LWAPP tunnels."

    Hi,
    The WLC v4.1 Config Guide says,
    "all Layer 2 wired communications between
    controllers and lightweight access points are secured by passing data through LWAPP tunnels."
    Is it correct that this is only true for the LWAPP Control channel which is encrypted - the LWAPP Data channel is in clear text which WireShark has no problem parsing, right?
    Regards, MH

    Only LWAPP control message payloads are encrypted. As you've stated however LWAPP data payaloads are not encrypted as the wired network is assumed to be relatively secure (compared to wireless).
    Additional Reference Appendix B in this document:
    http://www.cisco.com/en/US/netsol/ns340/ns394/ns348/networking_solutions_white_paper0900aecd805e0862.shtml

  • Passing data through address bar

    hi all,
    I am implementing a forum application on the java studio creator, and Iam having a problem in getting data from the address from page to page.
    The problem is that i have a table containes records of table "data IDs" when you click on the data Id it will take you to another page and show you the data complete. Iam passing Data Id in the address bar, how could i get it in the other page.
    Best Regards.

    Hi,
    Please go through the tutorial named "Sharing Data Between Two Pages". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    Hope this helps
    Cheers
    Giri

  • Receive data through TCP connection

    Hi
    I'm receiving a string "Hello" from TCP from a C-program, where I have to display this string in a string indicator in LabVIEW. 
    I have the following block diagram I found among the examples: 
    The point here is that I can only read the last character "o" in the indicator when I change the "bytes to read" value to 4 bytes, but can read the characters "ello" when setting the bytes to read value to 1. How do I read the whole "Hello" string ?. 
    Best regards
    Oesen
    Attachments:
    Simple TCP - Client.vi ‏15 KB

    Since you are sending a string, I would try using "CLRN" mode on TCP Read.  Then you can trigger it to read all the text until the "/r/n" characters in C.
    mode indicates the behavior of the read operation.
    0
    Standard (default)—Waits until all bytes you specify in bytes to read arrive or until timeout ms runs out. Returns the number of bytes read so far. If fewer bytes than the number of bytes you requested arrive, returns the partial number of bytes and reports a timeout error.
    1
    Buffered—Waits until all bytes you specify in bytes to read arrive or until timeout ms runs out. If fewer bytes than the number you requested arrive, returns no bytes and reports a timeout error.
    2
    CRLF—Waits until all bytes you specify in bytes to read arrive or until the function receives a CR (carriage return) followed by a LF (linefeed) within the number of bytes you specify in bytes to read or until timeout ms runs out. The function returns the bytes up to and including the CR and LF if it finds them in the string.
    3
    Immediate—Waits until the function receives any bytes from those you specify in bytes to read. Waits the full timeout only if the function receives no bytes. Returns the number of bytes so far. Reports a timeout error if the function receives no bytes.
    Otherwise, you need to follow the instructions per protocol;
    bytes to readis the number of bytes to read. Use one of the following techniques to handle messages that might vary in size:
    Send messages that are preceded by a fixed size header that describes the message. For example, it might contain a command integer that identifies what kind of message follows and a length integer that identifies how much more data is in the message. Both the server and client receive messages by issuing a read function of eight bytes (assuming each is a four byte integer), converting them into the two integers, and using the length integer to determine the number of bytes to pass to a second read function for the remainder of the message. Once this second read is complete, each side loops back to the read function of the eight byte header. This technique is the most flexible, but it requires two reads to receive each message. In practice, the second read usually completes immediately if the message is written with a single write function.
    Make each message a fixed size. When the content of a message is smaller than the fixed size you specify, pad the message to the fixed size. This technique is marginally more efficient because only a single read is required to receive a message at the expense of sending unnecessary data sometimes.
    Send messages that are strictly ASCII in content, where each message is terminated by a carriage return and linefeed pair of characters. The read function has a mode input that, when passed CRLF, causes it to read until seeing a carriage return and linefeed sequence. This technique becomes more complicated when message data can possibly contain CRLF sequences, but it is quite common among many internet protocols, including POP3, FTP, and HTTP.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • Problem in passing date through hyperlink reports in Linux version(CRS2008)

    Hi,
    How to pass value of a date paramater through hyperlink(open doc) from main report to target report(clicking on hyperlink )
    thanks in ADVANCE

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Passing data through parameters or return?

    Here are too samples:
    void doStuff (String s)
    void String doStuff()
    }they both pass a String to the caller, but I found they are totally different. Can anyone give me some idea about it?

    Let me take a whack at this. I think the original poster got hamstrung because his example data type was
    immutable (String). Consider the simple mutable type java.awt.Rectangle which has public int fields x, y,
    width and height. Now consider two or three way to write a method that supplies the caller with rectangle
    data:
    public Rectangle getBounds1() {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        return new Rectangle(x, y, w, h);
    public void getBounds2(Rectangle r) {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        r.setBounds(x, y, w, h);
    public Rectangle getBounds3(Rectangle r) {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        if (r == null)
            r = new Rectangle(x, y, w, h);
        else   
            r.setBounds(x, y, w, h);
        return r;
    }There are examples of these variations in the API, for example java.awt.Component has getBounds
    methods that are version 1 and 3 here. My rule of thumb is to keep it simple: go with getBounds1. The
    other two allow you to avoid constructing temporary rectangles, but construction is cheap these days.

  • Passing data through connect().

    Hi, I found this example of a lobby in my flash media server book. But there's a little issue...
              var nc:NetConnection;
              var rtmpNow:String;
              var userName:String;
              var users_so:SharedObject;
              var connectName:DataProvider;
              nc=new NetConnection();
              rtmpNow="rtmp://localhost/userlist/roomlist";
              nc.addEventListener (NetStatusEvent.NET_STATUS,checkConnect);
              button.addEventListener (MouseEvent.CLICK,addName);
              connectName=new DataProvider();
              function addName (e:MouseEvent)
                   nc.connect (rtmpNow,textInput.text);
              function listPlace (e:SyncEvent)
                   list.dataProvider=connectName;
                   list.removeAll ();
                   for (var uName:String in users_so.data)
                   {//no uName found.
                         if (users_so.data[uName] != null)
                              connectName.addItem ({label:users_so.data[uName]});
              private function checkConnect (e:NetStatusEvent)
                   if (e.info.code == "NetConnection.Connect.Success")
                         button.label="Connected";
                         users_so=SharedObject.getRemote("users_so",nc.uri,false);
                         users_so.addEventListener (SyncEvent.SYNC,listPlace);
                         users_so.connect (nc);
    When I press "connect", the name in textInput.text normally will be passed and added to the list under the button. But the list stays empty and textInput.text isn't passed. Does anyone know a solution?
    Really thanks,
    Thomas

    Hi,
    The list is displayed empty because, you are populating the list with the value of the shared object's properties. Since you have not set any property in the code its displaying empty.
    Regards,
    Manish.

  • Passing data through webservices.

    Hi All,
    I have two doubts.
    1. Can we call a webservice without calling creating an ABAP Proxy?
    2. If yes how can i pass my internal table through webservice.
    any code snippet or wiki link regarding this will be very helpful.
    TIA
    Vikash Singh

    Hi Vikash,
    Go through the below link, it has a simple example which will help you,
    just search for "Calling a web service in ABAP that validates an email id" and click on the link of saptechnicaldotcom
    or try this
    http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    Also, for transforming your internal table into XML, you can use the below piece of code
    CALL TRANSFORMATION ID  
       SOURCE root = ITAB
       RESULT XML xml_string.
    And you can pass the XML_STRING as input to the "CREATE_BY_URL_METHOD".
    But the XML_STRING will need to be in the format that the service can understand, you might have to modify it accordingly.
    Regards,
    Chen
    Edited by: Chen K V on Apr 26, 2011 1:04 PM
    Edited by: Chen K V on Apr 26, 2011 1:07 PM

  • Error when passing data through Business connector

    Dear all,
    we are getting below exception in BC trace while connecting to the remote url through SAP BC. Please guide us how to solve this problem.
    java.lang.RuntimeException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
         at com.wm.pkg.sap.rfc.ListenerCallHandler.handleRequest(ListenerCallHandler.java:516)
         at com.sap.conn.idoc.jco.DefaultJCoIDocServerWorker$IDocDispatcher.handleRequest(DefaultJCoIDocServerWorker.java:72)
         at com.sap.conn.jco.rt.DefaultServerWorker.dispatchRequest(DefaultServerWorker.java:141)
         at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.dispatchRequest(MiddlewareJavaRfc.java:2621)
         at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:1919)
         at com.sap.conn.jco.rt.DefaultServerWorker.dispatch(DefaultServerWorker.java:258)
         at com.sap.conn.jco.rt.DefaultServerWorker.loop(DefaultServerWorker.java:320)
         at com.sap.conn.jco.rt.DefaultServerWorker.run(DefaultServerWorker.java:219)
         at com.wm.util.TimeWrappingProvider$TimeMesuredTask.run(TimeWrappingProvider.java:40)
         at com.wm.pkg.sap.rfc.ListenerThread.run(ListenerThread.java:70)
    Caused by: iaik.security.ssl.SSLCertificateException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
         at com.wm.app.b2b.client.Context.invoke(Context.java:1290)
         at com.wm.app.b2b.client.Context.invoke(Context.java:1106)
         at com.wm.app.b2b.client.Context.connect(Context.java:764)
         at com.wm.app.b2b.client.Context.connect(Context.java:706)
         at wm.server.remote.checkConnection(remote.java:888)
         at wm.server.remote.checkConnection(remote.java:861)
         at wm.server.remote.invoke(remote.java:397)
         at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:310)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:468)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:574)
            at com.wm.app.b2b.server.Service.doInvoke(Service.java:499)
         at pub.JSBC_remote.invoke(JSBC_remote.java:34)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:310)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:147)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:279)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:556)
         at com.wm.lang.flow.FlowState.step(FlowState.java:427)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:397)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:972)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:481)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:590)
         at com.wm.pkg.sap.rfc.ListenerCallHandler.handleRequest(ListenerCallHandler.java:454)
         ... 9 more
    Thanks and Regards,

    Dear sandeep,
    Thank you very much for your fast response.
    We have alredy downloaded certificate given by the other party and configured in BC.We are able to get the response from a from third party from url separtely from internet explorer.while executing by using service we are getting the above exception.
    Please give us some inputs on this issue.
    Thanks and  Regards,
    Edited by: chandra madapati on Dec 30, 2008 1:28 PM

  • WRE54G V2 connects with network, appears to work, but won't allow devices to pass data through

    This is the number one problem I've had with the WRE since I got it several months ago.....
    I originally set it up exactly in line with the instructions.....I turned off my WEP to prevent security issues at the start....
    My WRE starts up, red lights, then blue lights, then solid blue lights....All appears perfect....
    That is, until I attempt to use my PDA (HP 27XX) running Windows Mobile 5.....It just won't connect via the WRE......I have to unplug the WRE, then the PDA will connect, no problem, although with a weak signal......
    My laptop running a DLink wireless card will connect via the WRE, so I know it works!.....
    I have 3 PDA's....all HP, a 24XX, and 2 27XX models....all 3 won't connect through the WRE.....
    My Zune also won't connect via the WRE.....not sure why?....
    Any ideas?.....

    O.k.....I set it up as instructed.....No Go.....not even the Laptop would connect through it this time around.....
    The WRE appears in the "site survey", but nothing will connect to it or through it.....it acts like a VERY EFFECTIVE jammer!.....
    I'm surprised the "underground" hasn't discovered just how easy it is to use this as a network jammer.....
    Since I've owned mine, I'm guessing it's only worked 10 to 15% of the entire time....and NEVER with a PDA or ZUNE.......
    Please don't give up on me though, I really do appreciate and need tips and advice getting this thing to work......

  • How to pass data from one  UIBB to anothere UIBB in OIF/GAF - FPM

    Dear all,
    as of now i am using FPM only for displaying data  from different components.
    now i would like to pass the data from one UIBB to another by calling second UIBB on action of a button. (instead of using standard path in GAF scenario)
    how could i achieve this.  is there any difference mechanism's for UIBB's of single component and UIBB's from different different components.
    it would be great if some one can explain or help me reg this issue on both OIF and GAF FPM's.
    Thanks in Advance.
    Best Regards,
    Kranthi kumar Palle.

    I've actually combined these two approaches to data sharing - I've passed a class reference in the shared data component. This is nice (in my opinion) because it is very obvious where the data is coming from and who it is shared with. It also means that there is not a huge overhead in passing data through the shared context, because you are just replicating a reference to a class instance.
    And -  you don't have to deal with singleton classes :-). So if you want/need to extend your implementation at a later date (for example embedding multiple instances of the same "app" in the one window - or suspending and resuming to another instance of the same app you can then do this. (NB - suspend resume to launch another FPM app does not work because of this (amongst other things)).
    NB a shared data component need not be faceless! I certainly have "shared data" UIBBs that also have UI components - possibly not best practice - but it certainly can be done.
    Cheers,
    Chris

  • Labview was blocked when building communication through TCP/IP

    I am trying to transfer data between a Labview system with Win2k and a RT system on PXI controller through TCP/IP. A problem is that when the Labview program started to build the communication to RT, the other Labview programs are all blocked. Howerver, the other application programs except Labview are running properly.  

    Thank you Mike.
    I am trying to transfer data through TCP/IP and Ethernet. The source is a Labview RT program in a PXI controller, and the receiver is a Labview 6.1 program in a workstation with Win2k, and here we focus on the program in the workstation. Besides the communication program, some other Labview programs are also running in the workstation in the mean time.
    The problem occurred at the beginning of the TCP connection: during the following several seconds after the communication program started, I cannot access any of the Labview programs (no response when click on any Labview program). Meanwhile, I found that the CPU usage and memory usage were in normal level and I can access any other windows application program properly. So it seems that the communication program held up all the LabVIEW programs when it started to build connection. Do you have any idea?
    Pierce

  • Flatten to string for sending through TCP/IP contains CRLF characters

    Hi,
    I'm using a 'flatten to string' function to send some data through TCP/IP.
    To minimise delays, I use the CRLF mode so that the receive function returns as soon as it receives a CRLF sequence (termination character).
    I noted that every now and then only part of the data is transmitted because the flattened string itself sometimes (albeit rarely) contains CRLF characters.
    I was wondering if this is correct behaviour, or if I'm missing something.I expected flatten to string to produce pure ASCII strings without special characters.
    Now I first have to scan the string and replace possible CRLF characters by some known series of characters and do the opposite on the receiving side, and hope that this particular sequence never occurs.
    Any comment is appreciated,
    Manu
    Certified LabVIEW Developer (CLD)
    Solved!
    Go to Solution.

    mkdieric wrote:
    Hi,
    thanks for the feedback. I'll use the way you describe, by first sending the number of characters to expect.
    Manu
    Make sure you are consistent with the format for the number of butes. That is, always use an 8, 16 or 32 bit value. Which one you use is up to you and will depend on the size of your data. A 32 bit value is the most common size to use. Anyway what I am basically saying is that if you are inconsistent with what size number you use for the size you will get inconsistent results when you read the data since you will be interpretting the size incorrectly some of the time.
    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

  • How can i send Comments field data through IDOC HRMD_A06-E1P0035?

    Dear all,
    We need to post the legacy system data for infotype IT0035 using IDOC - HRMD_A06-E1P0035 to the SAP R/3 system.In this segment (E1P0035) there no field for the 'comments' to send the data. Pls let us know, is there any way to pass data through E1P0035 segment for the 'comments' field of IT0035?
    Thanks in advance.
    Ram Rayapudi

    Hi Ram,
    Comment fields in infotypes are not stored in the infotype-tables itself, but in PCL1-Cluster TX.
    In Standard-SAP there is no way to pass this via ALE. Even the infotype-table-field ITXEX, which say that there is any textfield present, is clear in ALE.
    If you really need to transfer this data, you have to do ALE-amplifications.
    Regards,
    Herbert

Maybe you are looking for

  • HT201269 how can i restore a back-up from an older phone?

    how can i restore a back-up from an older phone? I did a back up from my iPhone 4 on iTunes but I don't seem to be able to restore on my new 5c

  • Change an Object property based on a value coming from the Excel sheet

    hi all i've been able to bind a value from the excel sheet to my my component but i want to change a property of an object in my component based on this value at the run time. during the design time, it works fine for example, if my value called "_xv

  • WAD problem with query variable sequence

    Hi Everyone, I have created 3 Queries of which all of them have common but different number of selection variables eg: query 1 : A, B,C,D,E       Query 2: D       Query 3: C I need to display the variables in WAD as displayed in Query 1.But they are

  • CS 4 limit of image sequences

    A co-worker of mine rendered an image sequence of close to 36k frames. When trying to import that into After Effects it only imports from 0 - 32766. Is this a built in limit in After Effects or am i missing something? If it's a limit is it in CS5 as

  • Protecting files against download

    Right now, if someone types in mySite.com/myFlv.flv, a popup window comes up asking if they want to download the file. How can I prevent this? I want my swf files (I'm building a site on the Gaia flash framework) to have access to all of my flv's/vid