Post processing the received serial data

Hello,
I want to process the data received by comport in labview where the transmitter device sends 22 bytes of data in this format 0x01 0x02 <18 bytes of information data with LSB first> 0x03 0x0D through the comport which should be read using Labview. I want to process the received 22 bytes in labview as below
1)      Leave the first 2 bytes and last two bytes
2)      From the left 18bytes each consecutive set of 3 bytes should be reversed (because the transmitter sends the LSB first) and stored in a text file.
Can anyone suggest me the steps to implement this.
Thanks.
Solved!
Go to Solution.

PatanGova wrote:
When first 2bytes are skipped and remaining 18 bytes are divided such that consecuitve 3 bytes are rearranged then it is considering 030D0102(which is rearranged as in spreadsheet2 of the attached image) which should not be.
It is ignoring the first two bytes.  That's what the String Subset is doing.  You are taking starting on the thrid byte and up to 18 bytes.  If you put your Recieved Data on the output of the VISA Read, you would see that.
PatanGova wrote:
But I want to 1)skip the first two bytes(0x01 0x02) and last two bytes(0x03 0x0D).
2)From the left 18bytes each consecutive set of 3 bytes should be reversed (because the transmitter sends the LSB first)
Your code is already doing that.
PatanGova wrote:
3) arranged 3bytes value should be converted into 2's complement and want to plot the data (2's complement of arranged 3bytes) continuously such that there will 6 continous plots.(each consisting 2's complement of the rearranged 3bytes)
Now that is a little more difficult.  A three byte Two's Compliment will take a little work.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How to process the Received Idoc in SAP R/3 ? What to be done ?

    Hi All
    I am working for file to Idoc scenario.....
    Idoc received into SAP R/3 but how to process the Idoc data ?
    Such it will store in SAP R/3 DB.....
    Clearly
    How to Process the received idoc data into SAP R/3 ? (this is for inbound idoc)
    I hope any one can help me on the processing steps ?
    Waiting for valuable inputs form experts
    Regards
    Rakesh

    rakesh
    chec <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660">Sample IDoc</a>
    normally, based on the idoc types it will get processed. if it is an idoc with master record it will create appropriate master records or if it based for a transaction it will create one.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098</a>

  • Processing the batches of data in parallel

    Hi friends,
    Can any one suggest me how to process the bathces of data in parallel.
    Please see the requirement below.
    •     A new version of ZREDISND1_OLD named ZREDISND1_EINVOICE with the possibility of processing the blocked invoices with parallel processing capability. The program will process the blocked invoices and will have the same results / outcome as the old program ZREDISND1_OLD had.
    •     A new version of Z_RECTHI01_60 named ZRECTHI01_EINVOICE with the possibility of charging the amounts with parallel processing capability. The program will have the same results / outcome as the old program Z_RECTHI01_60 had.
    •     An umbrella-program ZREDISND1_UMBRELLA will have de same capability as ZREDISND1_EINVOICE but will split the data automatically into batches, initial by supplier and additional by Business Partner followed by Contract Account. It will therefore act as an umbrella program for ZREDISND1_EINVOICE.
    •     An umbrella-program ZRECTHI01_UMBRELLA will have the same capability as ZRECTHI01_EINVOICE but will split the data automatically into batches by suppliers. It will therefore act as an umbrella program for ZRECTHI01_EINVOICE.
    •     For the realisation of the umbrella-programs a new table must be created. The table must contain all the service providers which are charged by E-Facturering. Also the indication if the blocked invoices belong to the service provider are processed indirect (the old method) or directly (the new method) must be stored. The table name will be ZEINVOICE.
    I have to develop the umbrella programs.
    Please suggest to me how implement this. Its an Urgent
    Thanks in advance.
    Vijay

    We have 8 "short-fat" tables to hold the source data uploaded from the source file via SQL*Loader (the SQL*Loader step is fast). The data consists simply of strings of characters, which we treat simply as VARCHAR2 for the most part.
    These tables consist essentially of a case key (composite key initially) plus up to 250 data columns. 8*250 = 2000, so we can handle up to 2000 of these variable values. The source data may have 100 any number of variable values in each record, but each record in a given file has the same structure. Each file-load event may have a different set of variables in different locations, so we have to map the short-fat columns COL001 etc to the corresponding variable definition (for validation etc) at runtime.
    CASE_ID VARCHAR2(13)
    COL001 VARCHAR2(10)
    COL250     VARCHAR2(10)
    We do a bit of initial validation in the short-fat tables, setting a surrogate key for each case etc (this is fast), then we pivot+validate this short-fat data column-by-column into a "long-thin" intermediate table, as this is the target format and we need to store the validation results anyway.
    The intermediate table looks similar to this:
    CASE_NUM_ID NUMBER(10) -- surrogate key to identify the parent case more easily
    VARIABLE_ID NUMBER(10) -- PK of variable definition used for validation and in target table
    VARIABLE_VALUE VARCHAR2(10) -- from COL001 etc
    STATUS VARCHAR2(10) -- set during the pivot+validate process above
    The target table looks very similar, but holds cumulative data for many weeks etc:
    CASE_NUM_ID NUMBER(10) -- surrogate key to identify the parent case more easily
    VARIABLE_ID NUMBER(10) -- PK of variable definition used for validation and in target table
    VARIABLE_VALUE VARCHAR2(10)
    We only ever load valid data into the target table.
    Chris

  • Post processing the pulse signals

    I want to do the following post processing for a digital square signal                                                              
     1) How to get the time interval between two consecutive rising edges of a digital square signal                      
     2) To provide an time selection option for user such that when a particular value of time is entered  the time interval values corresponding to that value should be stored in a array) (say 30 seconds then it should store all the time intervals for the 30 second duration)  and to plot each obtained time interval.
    Can anyone explain a way to do this.          
    Thanks.                                                                 

    For point number1
    I tried as shown in the image below but it is not showing the required (time interval)duration between two conescuitve rising edges of the pulses.
    I need to get the duration(time interval) between two conescuitve rising edges of the pulses.
    Can I know how to get this and store in an array.
    thanks.
    Attachments:
    Analog_to_Digital1.vi ‏37 KB

  • Unexpected values at the moment to receive serial data

    Hi,
    I've been a time trying to fix this and looking for forums but unfortunately I can't figure out how to solve it. I hope you can help me a bit.
    I am working in a project which I have to send some information via ZigBee technology throught the serial port to my computer where there is another ZigBee module connected by serial port to LabView.
    The point is that I am able to receive all the data well if I take some long delays and I really need to decrease my delays.
    With low delays I receive zero values or even some values really out of range even when in some test I am just sending some fix values to debug it.
    I think that it's a problem of synchronization but I don't know how to fix it.
    PS: The reason cause I put a switch case even when the programm has to go out of the while when the Bytes at Port are zero, is cause i realise it doesn't. Just a way to be redundant in my goal.
    I attached you the .vi file and a picture where it can be seen my problem (it's suppose to receive always some value around -1).
    Thanks a lot for advance.
    Attachments:
    Untitled 2.vi ‏25 KB
    chart.png ‏11 KB

    Can you provide an example of expected data.
    How to you determine the start or end of a data transmission?
    It appears as though you are expecting to receive floating point numbers as a strings but you have no way of sychronizing to the start or end of a value.
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • I'm new user. I like to acquire, save and process the dynamic signal data

    My signal is from 5-10KHz and I'm using NI4551. I would like to acuire data for 5-10 sec, save it on the file and then perform frequency spectrum analysis. I realy appreciate if somebody refers me a vi, that I can modify to perform this particular task.
    Also I know there are good examples in Labview 6.1 but I don't know which would be appropriate for my application, and how to integrate separate vi's and achive my task.
    Thanks for the help

    In this case, you will not be able to use NIDSA.
    In order to program the 4451, you need to use the NIDAQ functions that are available in LabVIEW.
    I attach an example that shows how to save data acquired on a single channel to disk.
    Things you may want to add are :
    - Gain (input limits) depending on your sensor
    - AC/DC coupling
    I also compute a power spectrum on the whole waveform.
    You probably want to analyze your data in smaller blocks or analyze transients and modifying this example should be very easy.
    Please note I've been using the "waveform data type" to save data to a file in binary format.
    If you want your data to be "readable" by humans (ie save in XLS file format), you will have to use the "Export waveform to
    spreadsheet file" available in the waveforms manipulation palette
    I also would like to point you to the "Sound and Vibration 2.0 toolset" user manual :
    http://digital.ni.com/manuals.nsf/websearch/AC7BC1​9618C720BD86256BB2005AB842?OpenDocument&node=13210​0_US
    You may find useful information about signal processing in this manual.
    Hope this helps !
    Gerald
    Attachments:
    4451_Save_and_Process.vi ‏75 KB

  • How to process the data in a child node

    Hi Guru,
    would like to knows is that a way or best practice to process the child notes data? This is my case.
    request input will have this structure.
    <To>
    <Email>[email protected]</Email>
    <Email>[email protected]</Email>
    </To>
    <From>David</From>
    from the above schema i will need to use the email add to invoke some DB process and get the user details. Any idea how can I get each of the nodes and process it. Sorry i am still new in XML.
    In my mind is to loop the TO element but how? Thanks in advance

    something like that :
    <while name="While_1" condition="bpws:getVariableData('varIndex') < ora:countNodes('inputVariable','payload','/client:To/client:Email') + 1">
    <assign>
    - first copy rule
    varTemp = concat(bpws:getVariableData('varTemp','payload','/client:emailCollection')," ",bpws:getVariableData('inputVariable','payload','/client:To/client:Email[position() = bpws:getVariableData('varIndex')]'))
    -second copy rule
    bpws:getVariableData('varIndex') = bpws:getVariableData('varIndex') + 1
    </asign>
    </while>

  • Searching Incoming Serial Data

    Greetings!
    I was trying to get visual studio to filter through the incoming serial data it is receiving from an Arduino. The program shows the incoming data, so I know the serial port is working, but I'm not sure how to get it to look through that data ( I was thinking
    I could use StreamReader to do this). My goal is this: When certain data is received, change the background color of a textbox. I am very new at this and any direction would be appreciated! I feel like i'm throwing spaghetti at a wall... 
    Here is my current code:
    Imports System
    Imports System.Threading
    Imports System.IO.Ports
    Imports System.ComponentModel
    Imports System.IO
    Public Class Form1
    Dim myPort As Array
    Delegate Sub SetTextCallBack(ByVal [TEXT] As String)
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    myPort = IO.Ports.SerialPort.GetPortNames()
    portCmbo.Items.AddRange(myPort)
    End Sub
    Private Sub startBtn_Click(sender As Object, e As EventArgs) Handles startBtn.Click
    SerialPort1.PortName = portCmbo.Text
    SerialPort1.BaudRate = baudCmbo.Text
    SerialPort1.Open()
    startBtn.Enabled = False
    closeBtn.Enabled = True
    End Sub
    Private Sub closeBtn_Click(sender As Object, e As EventArgs) Handles closeBtn.Click
    SerialPort1.Close()
    startBtn.Enabled = True
    closeBtn.Enabled = False
    End Sub
    Private Sub SerialPort1_DataReceived(sender As Object, e As SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
    ReceivedText(SerialPort1.ReadExisting())
    End Sub
    Private Sub ReceivedText(ByVal [text] As String)
    If Me.inputTxtBox.InvokeRequired Then
    Dim x As New SetTextCallBack(AddressOf ReceivedText)
    Me.Invoke(x, New Object() {(text)})
    Else
    Me.inputTxtBox.Text &= [text]
    End If
    End Sub
    Private Sub outputTxtBx_TextChanged(sender As Object, e As EventArgs) Handles outputTxtBx.TextChanged
    Dim myReader As StreamReader = New StreamReader("Me.inputTxtBox")
    Dim line As String = ""
    End Sub
    End Class
    ps: If there is an easier way of doing this, please let me know!

    You should read a good book on "Communications".  When processing received data (from any device) you need to wait until you get the end of message before parsing the data.  The data will be received in chunks that can contain from 1
    to a million bytes.  When you get the word "Hello" you could get "H" then "ello" or "Hel" and then "lo".  You can't start looking through the data until you get the entire word "Hello". 
    So you first have to define a protocol for sending commands to the device and the amount of data that gets returned.  So normally you have to terminate a message using one of the following methods
    1) Ascii : Terminate a message with a fix character like a return or EOM.
    2) Ascii or binary : Includes a bytes count at the beginning of the message.
    3) Ascii or binary : Each type message is a fixed length.
    You can use combination of the 3 methods above.
    jdweng

  • Problem caling ConcRequest with Post Processing from code using fnd_request

    Gurus,
    Background:
    I am working on an XML Publihser report using Reports6i. I have defined a Report in Applications. This report generates XML data and as part of post processing I specify the template to pick under "Upon Completion" Section. The report works fine when I submit it from SRS window.
    (This is possible because with XML Publisher installed, we can specify a template for any RDF report and its processed as part of Post processing)
    Now I have to invoke the same report programmatically. I am using
    fnd_request.submit_request (application => 'PO',
    program => 'XXTPOREP',
    description => '',
    start_time => '',
    sub_request => FALSE,
    argument1 => 'R',
    argument2 => CHR (0),
    argument3 => CHR (0),
    argument4 => CHR (0),
    argument5 => CHR (0),
    My query is how do I specify the parameters for post processing the request to ensure that the output is generated with the template .
    Thanks in Advance

    before submitting the request add this line
    v_request_status := Fnd_Request.add_layout('PO','XXTPOREP','en','US','PDF');
    This is with the assumption that you need a pdf document as the output and the template language and territory is English and United States
    Message was edited by:
    user585821 on 19 July 2007

  • Post process bank statements in FEBA

    Hi expert,
    I received a customer payment via a bank transfer and I have loaded the bank statement via transaction FF_5.
    The G/L has been posted.
    When I wanted to post process the subledger, via transaction FEBA, the open items did not appear immediately.
    I had to select "More" and enter the account number.
    Then I was able to select all the open items related to my payment.
    Do you know what influences the fact that only 4 open items were shown?
    How can I show the whole list of a specific customer?
    Thank you.
    Kind regards,
    Linda

    Hello Eugene,
    Thank you for your reply.
    No,  we are not on new GL.
    Kind regards,
    Linda

  • Post-processing after errors in CAT5

    I had few CO errors during CAT5 transfer, so financial postings were not executed.  Errors were fixed in PS, but next time we run CAT5 there are no confirmation foir transfer.
    The question is how it is possible to re-process or post process the transferred confirmations that are missing financial postings?
    Thank you!

    Hi Kabir,
    Many thanks for your input.  Now I would like to do something that is probably not possible.
    I had a closed period, so CO postings failed.  It was decided that the period will remain closed, so I want to re-process same confirmations, but with another posting date (that is in the open period).  Is it possible?
    Or I'd need to change the data in each time report to trigger new confirmations?
    Many thanks!

  • Nokia Pro Cam photos post-processing makes yellowi...

    Hello there! I'm here to report a common problem which happens while taking pics with Nokia Pro Cam on my lumia 920. When you take a pic it has right colours and is very sharp but after apps' post-processing the pic turns yellowish and a bit softer. It doesn't look too good after that treatment. I'm asking for patch that would prevent this problem. While I was at Windows Phone central-forums I saw that I'm not alone with this issue.
    There is photos when one can see this issue.
    First is just after taking pic and second is after processing it. I guess one can see very clear difference.
    Attachments:
    wp_ss_20130829_0004.png ‏1693 KB
    wp_ss_20130829_0005.png ‏1377 KB

    shadow118 wrote:
    I see the same thing on my 620 (yes, I know Pro Cam is not officially supported by the 620 and would not work as good as on 920 or 1020, but I found a way to get it  the interface is just so much better)
    When I take a picture with manual focus, in the screen the pic looks sharp, but when i open the gallery, it changes (wll, postprocesses) to blurry 
    just a reminder, using unsupported apps may cause serious hardware problems in short/long term. i'm sure u won't be happy when u see melting plastic parts and  some smoke on your device
    The silence will fall

  • Get Page Count of PDF using Publication Post Processing Plugin

    Hi,
    I am using the publiching functionality of BOXI 3.1 to create a large volume of PDFs.  I have a report that I am publishing using a publication with a post processing plugin applied after distribution.  I need to get the total page count of the pdf and store this value in the database.  Becuase I am already using a post processing plugin after distribution, it would be ideal to extract it there...but I cannot figure out how to get the value at this point. 
    Currently we parse the actual binary pdf file, but I know that Crystal and BOXI know this total page count and some point in the processing cycle.  Does anyone know how to get at the total page count of each pdf/report instance?
    Thanks,
    Kristina

    I would post-process the PDF file as you're doing.
    The total page count isn't metadata - it's something computable from the report instance, that is lost after the PDF is generated.
    Trying to work with that would lead to a more complex workflow - i.e., schedule to report format, open the report instance using a reporting SDK, calculate the total page count, export using the reporting SDK to PDF, add the PDF to the publication artifact and remove the report instance, other steps I may have missed....
    Sincerely,
    Ted Ueda

  • 6534 DAQ card- i want to process continous stream of data....through DAQ card...

    I have NI -6534 DAQ card.i have continous stream of 16-bit parallel data. I use two port as input port .(16 bits parallel data), such that i recieve  12000 bytes per second in my card buffer.  i  use  DIO read.vi. then on this bunch of 12000 bytes, i do some processing and display a XY chart/waveform. 
    code structure is as follows:
    1) DIO config. vi
    2) DIO start. vi
    3) while loop
        {          DIO read.vi (reads 12000/or fixed number of bytes, inserts into an array )
                   Insert array.vi
                   while loop(this processes data till end of 12000 bytes,then stops)
                                      stacked sequence(this processes the 12000 bytes data, )
                                        (      seq 0: intialize counters,
                                                seq 1: extract some pre-defined bytes,convert and display on frontpanel
                                                seq 2: extract specified bunch of bytes, create  xy chart/waveform
                                 }(12000 bytes data ends)
         }(16-bit parallel data is unavaible/or user control stop)
    4)dio clear.vi
    the problem persceptable here is , that processing data takes time.. few seconds for processing bucnh of data..then goes back to DIO read to fetch new bunch of data. till then the front panel waveforms and digital displays are on hold/static.
    I want to process data simulatanouesly , and also being recieve in buffer through DAQ.real time processing.
    simulatanoeus aqcuuistion..and process on continous data rather than in bunch of data.(i.e. TWO vi. should run in paralell  DIO READ.vi acqusition...and process.. on that data(vi) )
    Can queue.vi slove this problem? any other method
    your help is greatly appreciated..Thanks.

    Hi,
    This is definitely something that can be solved using a producer consumer loop.  You would have two loops running in parallel, have all of your data acquisition/generation done in the producer loop.  Use queues to transfer all that data from the producer loop to the consumer loop and then do any kind of processing in your consumer loop.
    The producer and consumer loop will run in parallel, and the consumer loop cannot run faster that the producer loop.
    The good thing is that you can get a producer consumer template easily.  In the LabVIEW startup window, select New (not New VI) >> From Template >> Frameworks >>Desgin Patterns >> Producer/Consumer Design Pattern (Data).
    Hope that helps.
    Regards,
    Raajit L
    National Instruments

  • How to get/process the Data from XMLSocket?

    Hello All,
    I'm using Adobe Professional CS6, and Actionscript 3.0.
    To start with I have a C# program that basically just feeds data out from a Server in the form of XML data. I then have a Flash program that should receive the data and then I'll do some stuff with it. We had this working in Actionscript 1.0 but we need to upgrade the code to Actionscript 3.0, but instead of just trying to convert stuff over to the new  Actionscript version, I'm going to re-write the program.
    So far I've basically just defined some EventListeners most of which I found examples of online for using XMLSockets. As of now the Flash program will connect an XMLSocket to the Server that is feeding out the data, and the server feeding the data resends new data every 5-10 seconds or so.
    So when a grouping of XML Data comes in on the port I defined, the following Function gets executed for handling the incoming data. For my EventListener's Function for "socket.addEventListener(DataEvent.DATA, dataHandler);"  ("socket" is defined as --> var socket = new XMLSocket(); ). So when the new data comes in it executes the above function.
    The trouble I'm having is declaring a new variable of type "XML" and then using that variable to pull out individual "nodes/children" from the incoming XML Data. I found an example online that was very close to what I want to do except instead of using an XMLSocket to get data constantly streaming in they use the "URLLoader" function to get the XML data. I know I'm receiving the XML data onto the server because if I set the (e: DataEvent) variable defined in the function "head" to a string and then run a trace on that I can see ALL of the XML data in the "Output Window".
    But I can't seem to be able to set (e: DataEvent) to a XML variable so I can access individual elements of the XML data. The example I found (which uses the URLLoader instead) uses this line (myXML = new XML(e.target.data);)  to set the XML Variable, which won't work for mine, and if I try to do the same thing in my code it simply prints this for as many lines as there is XML data --> "[object XMLSocket]"
    MY CODE:
    *I left out the other Functions that are in my code for the EventListeners you'll see defined below, except for the one in question:
                             ---> "function dataHandler(e: DataEvent):void"
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import flash.events.SecurityErrorEvent;
    import flash.events.DataEvent;
    var socket = new XMLSocket();
    socket.addEventListener(Event.CONNECT, connectHandler);
    socket.addEventListener(Event.CLOSE, closeHandler);
    socket.addEventListener(DataEvent.DATA, dataHandler);
    socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    socket.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    var success = socket.connect('server.domain.name.local',3004);
    The code in this function was used from an example I found online as described above in the post: 
              LINK --> http://www.republicofcode.com/tutorials/flash/as3xml/
    // The Commented out code (*in blue) will show ALL the xml data inside the "Output Window":
    function dataHandler(e: DataEvent):void {
              // var myStr:String = e.data;
              var xml:XML;
              xml = new XML(e.target.data);  //<--- THIS DOESN"T WORK (I DONT THINK 'target' IS CORRECT HERE)??
              if (socket.connected)
                        // trace(myStr)
                        trace(xml);
    The Output from the line "trace(xml)" will show this data below in the "Output Window" (*FYI There should be 6 lines of XML Data on each 'update'):
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    Could someone show or point me in the right direction on this. I want to be able to access specific parts of the incoming XML Data.
    Here's some sample XML Data:
    <MESSAGE VAR="screen2Display" TEXT="CSQ_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Any thoughts or suggestions would be greatly appreciated..!
    FYI:
    I'm VERY new to Actionscript/Flash Developing (*about a week now), so go easy on me haha...
    Thanks in Advance,
    Matt

    Hey Guys, thanks ALOT for the replies!!
    Andrei1 and Sinious,
    The code I show above is actually just what I found in an example online, and its what i was trying to show you what "they" used
    in the URLLoader example. I wasn't trying to use URLLoader, but it was the closest example I found online to  what I was trying to
    do in terms of processing the XML Data, and not how I read it in. So XMLSocket IS definetly what I'm trying to use because the Server
    I'm receiving the XML Data from "pushes" it out every 10 seconds or so. So yea I definatly want to use XMLSocket and not URLLoader...
    Sorry for the confusion...
    The example you show:
         var xml:XML = new XML(e.data)
    Is actually what I had in my original code but I couldn't get it to show anything in the "Output Window" using the trace() method on
    it, so I assumed I wasn't doing it correctly...
    What my original code was in the "dataHandler()" Function was this:
    function dataHandler(e: DataEvent): void
        var xml: XML = XML(e.data);
        if (socket.connected)
            trace(xml);
            msgArea.htmlText += "*socket.connected = TRUE\n"
        } else {
            msgArea.htmlText += "*socket.connected = FALSE\n"
    OUTPUT:
    And what I get when I run a Debug on it is, in the "msgArea", which is just a simple Text Box w/ Dynamic Text on the main frame it prints:
        "socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE"
    It prints that message 6 times in the msgArea for each XML Message that comes in (*which I think 6 times because there
    are 6 "sections/nodes" in the XML Data). But then NOTHING prints in the "Output Window" for the "trace(xml)" command.
    Not sure why nothing is showing in the "Output Window", maybe the XML is not complete? But I could see data in the "Output
    Window" when I set "e.data" to a string variable, so I know the Data is reaching the program. Since I could see the XML Data in
    a string variable, does that mean I can rule out that the XML Data coming in is considered a "complete" XML Document?
    Because I wasn't sure if to be considered a complete XML Document it would need to have this included in the message..?
                        "<?xml version="1.0"?>"
    For the tests I'm running, one single XML message which is being pushed out from the server looks like this:
    <MESSAGE VAR="screen2Display" TEXT="Call_Queue_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Would I need to include that "Header" in the XML message above?
                   i.e. "<?xml version="1.0"?>"
    Or do I need to be more specific in the trace command instead of just using "trace(xml)"?
    Also yes, I already have a Flash Policy file setup and working correctly.
    Anyway, thanks again guys for the replies, very much appreciated!!
    Thanks Again,
    Matt

Maybe you are looking for

  • HT201250 I have an old My Book Essential, but no icon! Help!

    I have an old My Book Essential which was the back up for my Time Machine, but apparently in September it stopped backing up.  My My Book power is on and it is connected directly to my desktop computer. Any ideas as to how I can make My Book work aga

  • Best software for searching exchange server mailbox

    hi We have exchange server 2013 in our company and we need some report like ( our client from one date how many email send or received or sending or received from/to who ) and also what is a subject of email and what is the body of mail ).plz help me

  • Connect missing lines in image trace

    I am teaching myself Illustrator and I came across the image trace feature in CS6. I am able to to copy my drawing and do the image trace feature, but I am having trouble connecting missing lines to do a color fill without selecting the background ar

  • One sender to 2 recievers

    hello experts I have a file sender that suppose to go to 2 recievers(RFC and Mail). I pretty sure that I can define 2 reciever agreements and 2 communication channels in order to do it (I dont think you need to use BPM). does any one know a good link

  • Error 56 in datasocket

    Hi, I have working with differents vi using DS. I have 2 vi, one in a computer and the other in a different computer (both pentium 4, 1GB RAM). When I start the 2 vi appears the error 56. Why? The 2 computers are connected by a wire cross ("cable cru