Sending binary file via RS232 connection

Hi,
I want to send a binary file via RS232 connection but I have troubles reading the .bin file and then converting the data to string in order to send it via RS232. Any ideas how i can deal with this?
Thanks in advance,
IG. 

It is hard to help then you do not post any code. I suggest you go to the toolbar then help. Then you select Find Examples. Search for files. Also since you are new to Labview always have context help enabled. Both tools are important if you want to learn Labview. Feel free to post again if you are stuck.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)

Similar Messages

  • How does one send a file via UDP?

    I need to send a binary file via UDP. The file has 99 32-bit binary words of data. How do I input the data to the UDP write command? I don't want to send the data sequentially..I would like to send all 99 words in a single UDP transmission. TIA.
    -jlivermore

    Something to be careful of is that while UDP is fast, it is not secure. You can lose packets and there is no way for the sender or receiver to know it was lost. Because UDP doesn't have a "connection" like TCP does, the sender doesn't know if the data is going anywhere and the receivers have no way of knowing if anything is being sent.
    Picture a radio station. A guy working the night shift hopes there is someone somewhere listening to his broadcast, but he doesn't know. Likewise, if you turn on a radio and hear nothing but static, you may be listening to a frequency where there are no stations broadcasting, or the station transmitter might be off the air, or there might be interference keeping you from hearing the signal, but again you don't know which.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Send binary file using xml

    Hi all,
    I've got an application wich currently sends xml messages through sockets between server and client. Now, I'd like to be able of sending binary files (jpegs and other images...) as some content of these files. Is it possible with CDATA? Do you know any URL with an example or something?
    thanks a lot!

    This is a little example that shows the solution I adopted.
    Two classes, a server and a client, execute the server in a given port and the client with "localhost" as ip and the same port as the server.
    Ex: java Server 5555
    java Client localhost 5555
    the code:
    import java.net.*;
    import java.io.*;
    public class Server {
        public static void main(String[] args) {
            ServerSocket serverSocket = null;
            if(args.length!=1){
                System.out.println("ERROR: java Server <port>");
            } else {
                   // Create listening socket
                   try {
                        serverSocket = new ServerSocket((new Integer(args[0])).intValue());
                   } catch (IOException e) {
                        System.out.println("ERROR: not possible to listen on the specified port");
                        System.exit(1);
                   // Create wait for connection
                   Socket clientSocket = null;
                   try {
                        clientSocket = serverSocket.accept();
                   } catch (IOException e) {
                        System.err.println("ERROR: Accept failed.");
                        System.exit(1);
                   try{
                          // Get the output channel
                        PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
                        // Send a xml message
                        out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?><FOO><VAR message=\"ugly harcoded XMLmessage\"/></FOO>\0");
                        out.flush();
                        out.close();
                        clientSocket.close();
                        serverSocket.close();
                   } catch(IOException IOE){
                        System.out.println("ERROR: on send");
    import java.io.*;
    import org.w3c.dom.Document;
    import java.net.*;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.InputSource;
    public class Client {
         public static void handleIncomingMessage(Document doc){
            System.out.println("DO WHAT YOU WANT WITH THE XML!");
        public static void main(String[] args){
            BufferedReader in = null;
            Socket socket = null;
            if(args.length!=2){
                System.out.println("ERROR: java Client <ip> <port>");
            } else {
                String ip = args[0];
                int port = (new Integer(args[1])).intValue();
                   // Open a socket to the server
                try {
                        socket = new Socket(ip,port);
                   } catch (UnknownHostException e) {
                        System.out.println("ERROR: Unknow host!");
                        System.exit(1);
                   } catch (IOException e) {
                        System.out.println("ERROR: I/O error");
                        System.exit(1);
              try {
                // Get the input channel
                   in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            } catch (IOException e) {
                System.err.println("ERROR: I/O error");
                System.exit(1);
              // Create a DocumentBuilder to convert the socket's incoming String
            // to a XML parsed Document
              Document XMLmessage =null;
            DocumentBuilder builder = null;
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              try{
                   builder = factory.newDocumentBuilder();
            } catch (ParserConfigurationException PCE) {
                System.out.println(PCE.toString());
              try{
                String messageRead = "";
                char caracter;
                StringBuffer sb = null;
                   // Read from the socket until \0
                   sb = new StringBuffer();
                   caracter =(char)in.read();
                   while(caracter != '\0'){
                        sb.append(caracter);
                        caracter = (char)in.read();
                   messageRead = sb.toString();
                   System.out.println("Recieved: "+messageRead);
                // Parse the read message
                   try{
                        XMLmessage = builder.parse(new InputSource((Reader)new StringReader(messageRead)));
                        // Work with it
                        handleIncomingMessage(XMLmessage);
                   } catch(IOException IOE){
                        System.out.println(IOE.toString());
                   } catch(SAXException SE) {
                        System.out.println(SE.toString());
              } catch(IOException IOE){
                   System.out.println("ERROR: I/O error");
    }hope it helps!
    any comment about the code will be welcome

  • Unable to send a file via my email client

    when i try to send a file via email i get the following error message : ' adobe reader could not  connect to e-mail client' - pl help.
    os; win 7 home premium[64-bit]; browser: ie9; e-mail client : hotmail & gmail

    That pretty much means you don't have an email client. This is something like Outlook Express you may have seen.
    Instead, open your email and attach the PDF.

  • Send binary files from SAP System to SAP XI/PI

    Dear experts,
    in our SAP ERP-System we have a link to JPG files which are stored in an archive. We want to send these files with some other information to our SAP XI and then store them on a file server. Is there a way to send a MIME attachment via RFC? Or is there another way to send binary files from SAP ERP to SAP XI? We want to avoid polling the files on OS level.
    Thanks and regards,
    David

    Most recommended way is to go for ABAP proxies. They support attachments.
    Regards,
    Prateek

  • How to send a file via e-mail with director

    Is it even possible to have a button in a free-standing
    projector that would send a file via e-mail, or open up an e-mail
    program and have the file attached and addressed? Or is it possible
    to put a file on a server? Of course, both of these methods would
    alert the user and ask for their permission.

    To just open the user's email program, you can use the
    standard lingo:
    goToNetPage(mailto:[email protected])
    That approach is kind of annoying because it actually opens
    an empty
    browser window then the user's email program. I don't think
    you can use
    that approach to send attachments though.
    A much better way is the fabulous DirectEmail xtra from
    DirectXtras.
    Check out their site:
    http://www.directxtras.com/demail_home.asp?UUID=1217348
    DirectEmail can do everything you are asking for (and more).
    It is
    cross-platform, shockwave safe, can handle text or HTML
    email, can do
    attachments, can use a mail server or not, and is really easy
    to use.
    The same company makes DirectFTP which you can get from:
    http://www.directxtras.com/DFTP_home.asp?UUID=1217348
    DirectFTP can put files onto an FTP site with a minimum of
    fuss. I have
    used both on quite a few occasions and they rock. You can
    actually
    write a full-fledged email or ftp program with those xtras
    and Director.

  • C5-03 -how to send music files via bluetooth

    hi
    i've c5-03 mobile
    1.can any one tell me how to send music files via bluetooth
    2.there only mark all option ann no mark several option can any one tell me r there any software updates for this
    Solved!
    Go to Solution.

    PerLs wrote:
    Hi,
    You can do it with the file manager this is how i use to do it. You will find it in menu|applications|office folder
    There is also a possibility to long press on the track and send. Im not sure if C5-03 support this... But go to you music libery and find the track you want then long press on it and press send.the long press method works
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How do i send a file via email so it opens in booklet form to other people

    how do i send a file via email so it opens in booklet form to other people

    You would appear to be doing the right method as in this work through:http://support.en.belgacom.be/app/staticpages/devices/en/#/nokia/c3-00/email/sending-an-email-messag...
    Is there similar problem with Email without attachment?
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Can not send any file via bluetooth

    my 5800 Xpress music can not recently send any msg via Bluetooth. As soon as sending started, the phone will be locked where as no more action possible no keys works the phone does not even switch off by pressing its button otherwise removing the battery. pls help me

    What does it says when you try to send a file via Bluetooth?
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • How to send .CSV file via email in Oracle10g/11g PL/SQL

    Hi Guys,
    Can any one let me know or suggest me how to send .csv file via email attachment using Oracle PL/SQL.
    Thanks in advance!
    Regards,
    LRK

    A FAQ. Use UTL_MAIL (if attachment is 32KB less). Else use UTL_SMTP. Search this forum. Search using google.

  • Send text file via serial

    hi
    i've trying to send a text file via rs-232 but no success
    The file contains a code for a device im dealing with, when i send the text file with labview to the device, it went ok with no errors, but when i connect the device on hyperterminal and check if the code was loaded it was not.
    can you please give some clues to deal with this?
    thanks a lot
    attached example text file and LV code
    Attachments:
    Serial.JPG ‏45 KB
    DefineHome.txt ‏1 KB

    Some devices are very picky with the End Of Line.  You might want to right-click on your FIle Read and deselect the "Convert EOL".
    Or if you need to write 1 line at a time, right click on the Read Text File and select "Read Lines".  Set the number of line to read to -1 (read all) and then wire the resulting array into a FOR loop where you do the VISA Write.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to send a file without getting Connection Refused??

    Hello everyone!
    I'm developing a FTP (Client and Server) program as a project and I have 2 main problems:
    1. The program can't connect to computers with router (Connection Refused error)
    2. If a computer with router connects to me, the program will not transfer the file (Connection Refused error again). but if it does, my friend's internet is suddenly disconnect after one transfer
    what should i do?!? : //
    everything is working well on one computer, but when i'm trying to work on 2 computers its screwed
    ***FOR EVERY TRANSFER I OPEN A DIFFERENT SOCKET AND CLOSE IT (AND ALL THE OTHER STREAMS) IN CASE OF EXCEPTION OR COMPLETION
    Thanks!!

    cotton.m wrote:
    Oron wrote:
    lol
    sorry..just want you to notice
    so how the other ftp programs transfer files? : //
    i have a test up against 2 testers and my program will not transfer files between 2 computers : ///Are these two computers on the same network? Aka behind the same router? If so then there is another problem, which is either a bug in your program and/or a firewall on one or both of the computers.
    How does FTP work normally? Well in most cases you are talking to a server that is on the internet. This server has been configured to be behind or on a network where the routers are not blocking requests to connect to FTP ports (among other services). So nothing different other than it is configured correctly.
    I do suspect your program may have some bugs as well. For example when you talk about it dropping the connection after one transfer. That doesn't sound too great.when i checked the program...no
    in the test...yes
    so the server has no blocking ports, but what about a client with a router?..how do the programs pass the client blocking?
    when i checked the program with a friend (i have a modem and i was the server) all the data was perfectly transfered (moving among folders, deleting files, creation of folders-->all these actions on the server..sending codes, strings and stuff), but when i tried to transfer a file it did connection refused :S
    i can bring a link to the file that do the transfer and if you have patience to read

  • How to send .jar files via bluetooth in Nokia 6500...

    I am not able to send and see the option of sending jar files vai bluetooth . I want to know how to send it.
    Kindly reply ASAP.
    Thanks
    Abhishek

    Its something like , I already have it on my mobile and wanna transfer that file to my another same mobile.
    This is case when i am away from my comp. so that i can transfer songs,images etc via bluetooth but not jar files. Is there any option or any software for Nokia 6500 slide ??
    I saw in some othen N's phone they have file manager option and they transfer app. via that through bluetooth.
    But there is no option in NOKIA 6500 SLIDE ??? Is it a bug ???
    Thanks
    Abhishek

  • Date formatting issue when sending excel file via mail

    hello People ,
    I am facing date issue .
    I have inetrnal format of date as yyyymmdd.
    I am converting it into  YYYY-MM-DD.
    CONCATENATE gs_output-end_date(4)
                        gs_output-end_date+4(2)
                        gs_output-end_date+6(2)
                        INTO lv_date_to SEPARATED BY gc_seperator. " gc_separator = '-'.
            gs_output-end_date = lv_date_to.
    I am writing this date and sending an excel file via MAIL . I get date result as MM/DD/YYYY always.
    Now if i pass in YYYY.MM.DD and used the same code where gc_separtor = '.'.
    I get output as YYYY.MM.DD.
    Can any one give me an idea why in format YYYY-MM-DD it is getting overwritten but for yyyy.mm.dd it gives me as yyyy.mm.dd?
    Regards,
    Abhi..
    Edited by: Thomas Zloch on Jul 11, 2011 2:30 PM - subject enhanced

    Thanks , Rohit ,
    I have change my date format in SU01 settings .
    It is now made to [ YYYY-MM-DD] but still '-' is replaced by MM/DD/YYYY.
    Also note that when i format in the following way
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date.
    instead of
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date sepearted by '-'.
    I get output as YYYYMMDD.
    Regards,
    Abhishek.

  • Send KM files via XI to other Systems KM

    Hi,
    I would like to know if it's possible to send content files from one Systems KM to other Systems KM....doing this with XI
    Thnx a lot for your help...
    Antonio M.

    I am assuming that all you require is to transfer files from one system to another. In that case try this approach as defined in the weblogs;
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

Maybe you are looking for

  • How to set up email on N86?

    I've tried several accounts, and no matter what I try the Nokia email setup gets stuck on "contacting email server". I would have thought it would work at least for gmail. The automated process doesn't let me put in any of the settings manually. God

  • PowerShell and Outlook

    Greetings, I wrote a script that traverses a mailbox, extracts an email then removes that email from a contacts list.  It works but it is running very slow because the contacts list is 40k+ items. This is a marketing contacts list.  When I receive em

  • The IO operation at logical block address # for Disk # was retried

    Hello everyone, A warning appears in the system log: === Log Name:      System Source:        disk Date:          2/20/2013 1:00:28 PM Event ID:      153 Task Category: None Level:         Warning Keywords:      Classic User:          N/A Computer:  

  • HD problem after connecting to new Mac Pro

    Went to our first MUG meeting of the years tonight. And took along my Lacie 500gig firewire external H/D. This was going to be used to demo the new iTunes 7 app. The computer being used was a new Mac Pro duo core intel etc. When I plugged the H/d in

  • SOAP and Export Functionality

    How does one enable Export Functionality on a form? We're trying to use SOAP to load information dynamically into a form running in a browser. Works fine with Acrobat but doesn't work with Adobe Reader 7.0. I see in the documentation that you need Ex