Sending data through a serial write box (vision processing)

Hi there, I am fairly new to labview and vision assistant. I was wondering if I could get some assistance on a particular problem we are having with our project. The idea is that we will use a webcamera to analyze a continuous loop of images and identify shapes, then send the data through the serial port to a controller which uses the mint motion language. The problem we are having is we cant sind a way to send the data we are getting from particle analysis to the serial port. Is there any way we can do this? I would be eternally grateful for any kind of pointers!
I will attach the write to box we are using right now as well as the program itself
Attachments:
bild.vi ‏104 KB
SKRIV2BOX.VI ‏31 KB

What you are searching for are the functions "Flatten To String" and "Unflatten from String".
Attachments:
FlattenToString - UnflattenFromString.vi ‏16 KB

Similar Messages

  • I want to transfer data through the serial port in the same coding that hyperterminal uses. How can i do it?

    The serial port seems to be working, and labview seems to be sending the data, but the problem is in which format does it send the data, because in hyperterminal i just input the string "JDX" and it sends it to my device, with labview it sends something but my device does not recognize it.

    nobuto wrote:
    > I want to transfer data through the serial port in the same coding
    > that hyperterminal uses. How can i do it?
    >
    > The serial port seems to be working, and labview seems to be sending
    > the data, but the problem is in which format does it send the data,
    > because in hyperterminal i just input the string "JDX" and it sends it
    > to my device, with labview it sends something but my device does not
    > recognize it.
    Hyperterminal adds the carriage return/line feed to the string which is
    generated by the return key to send out the current line. LabVIEW simply
    sends out what you tell it, so try to set the string to "Show \ Display"
    format and add a \r or \n or \r\n to the command you want to send out.
    Assumes of course that you set the right baudr
    ate/bits/parity etc in
    LabVIEW with the VISA property node, when opening the serial port.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Sender sending data through XML, How to process it in ECC (No PI involve)?

    Hi,
    The sender system sending data through XML tag and that need to be processed in SAP side.
    How it can be done without involving XI or IDoc?
    Is it possible through HTTP post?
    Sample XML Transactions
    1. SAP Availability Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILREQUEST>
    <AVAILTEXT>CHK STATUS</AVAILTEXT>
    </ECCAVAILREQUEST>
    2. SAP Availability Transaction (Response)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILRESPONSE>
    <AVAILTEXT>OK</AVAILTEXT>
    </ECCAVAILRESPONSE>
    3. DUMMY_SYSTEM PO Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <DUMMY_SYSTEM REQUEST>
    <CREATEPB>1</CREATEPB>
    <POORDERDATA>
    05607015156070151TORDAEHTWW05727500002D0979054+
    </POORDERDATA>
    4. DUMMY_SYSTEM Order/Inquiry Transaction (Response)
    <DUMMY_SYSTEM RESPONSE>
    <C_PO>99999</C_PO>
    <RETURNDATA>
    DAT&#13;&#10;
    </RETURNDATA>
    </DUMMY_SYSTEM RESPONSE>

    Hi,
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c97ceb1911d6b2ea00508b6b8a93/content.htm
    this is for processing inbound IDOc through XML-HTTP(Inbound) port
    like this there should be an option for reading files placed by HTTP_POST.
    in SICF transaction there should be a service to do that.
    defaulthost -> sap-> xi-> adapter_plain. i know you don't have XI in your landscape but this is the component which be responsble for receving messages over HTTP_POST.
    look for a program which can access messages from there.
    please check with your basis team
    Suresh

  • Why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.

    why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
    The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening? 
    Any help would be very appreciated.

    It looks that way..
    "When LabVIEW starts it contacts the service
    locator to removes all services for itself. This request is triggering
    the firewall.This is done in case there were services that were not
    unregistered the last time LabVIEW executed- for example from VIs that
    didn't clean up after themselves"
    This is not yet fixed in LV2009.
    Message Edited by Ray.R on 11-04-2009 12:25 PM

  • Problem in sending data through email in brodcasting

    HI All
    i am trying to send the data through email in the broadcasting. but as i execute the broadcasting the message comes
    "Online processing is not possible for user 1"
    further its is saying
    "You want to execute a broadcast setting online. Processing this setting requires switching to another user (for example, with the user-specific precalculation of Web templates for a user other than your user). This is only possible in background processing."
    but i dont know how to login as seperate user. as i have to send the data through my login and not someone else.
    Hope i am clear.
    Please help me on this its very urgent
    Thanks

    The solution to this problem is that:-
    1. this is not an error
    2. it gives the warning beacuse we cannot execute the broadcast setting at that moment (with different users in reciepient list) i.e. we have to schedule the broadcast settings.
    Thanks
    Prat

  • J2ME app.: To update Oracle table by sending data through mobile phone

    Hello all,
    I want to develop a mobile app to update the table of oracle database by sending the data through the SMS (Short Message Service). Means I'll send a sms through my cellphone containing some data and this data will be used to update the remote oracle database. How to do that?. Plz help.
    Thanx in advance.

    hi
    My problem is here I need to update the loginfo table with the file name, count of records, table name and datetime.
    For instance my dat file is XX.dat
    my database table name is Mytable
    Total record count is 10,00,000 records
    datetime as on this date
    the data in the XX.dat file I am using the controlfile (SQL*loader and dumping into the Mytable.Now my 10,00,000 records are dumped into the Mytable.
    This process information I want to store it in the loginfo table. For this I need the trigger
    CREATE OR REPLACE TRIGGER MYTRIGG
    AFTER INSERT ON MYTABLE
    Declare
    V_Count Number;
    Begin
    Select count(*) into V_Count from Mytable;
    Insert into Loginfo(TotalRecords,Date)
    Values(V_Count,Sysdate);
    end;
    This is the trigger I have used.But in my loginfo table instead of one value as 10,00,000 it is getting each record as row by row
    1
    4
    100
    1000
    10,00,000
    So I need only one value to be stored and at the same time my tablename and filename must also be stored.
    Kindly help me
    suroop

  • Sending Data Through a Output Stream...

    Hello,
    I am writing a program that works on a network...a server is running and client will connect to the server and send specific data for the server to complete transactions on.
    The transactions that are mainly seen are SQL SELECT statements and as you can imagine a statement could bring back many records.
    At present I have been able to send specific data through streams and have turned this into parameters on the server side and performed SQL. What I need help with or suggestions on is how to get the data back to the client. In some cases it may need to be displayed on screen or just used for further processing?
    Please let me know if this is not 100% clear.
    Thanks,
    P

    If you are able to send data over a network, then I assume that you know how to do network programming in Java, as well as knowing SQL.
    Java has JDBC - Java DataBase Connectivity API that supports your requirements in full.
    If you require a custom solution, then you need to be able to read data back from the server - when the server returns the ResultSet back to the client.
    A Socket object has both input and output streams. Seems that you know about the output stream, do you not know about the input stream?
    If the server is setup to send data back to the client over the same socket, then you should simply be able to read the results back from the socket's input stream.

  • Problems in Sending Data through JMS Bridge - WLS 10.3 to WLS 11g

    I have a scenario where I need to send data from a queue configured on WLS 10.3 to WLS 11g. I am using OSB on WLS 10.3.
    What I have done is
    1. Created a JMS Based BS in OSB which sends data to jms://localhost:7001/ConnFactoryJNDI/QueueJNDI
    2. Created a JMS Bridge on WLS 10.3
    3. Source Destination has been configured as the one mentioned above.
    4. Target Destination has been configured to a queue on WLS 11g.
    When i execute the JMS Based BS in OSB, data is being written to the Source Queue directly. I am not sure of the JMS Bridge functionality but I assume that once data is written to the Source Destination, that data will be automatically pushed on the target destination.
    I have configured a JDBC store for the target queue but I no table is created with the data sent from the source.
    M i missing something here?

    I think this question belongs to weblogic server, but as far as I know bridge should be created always at higher version. means, you should create bridge at 11g and try to pull/drop data from 10g. To check any errors in bridge, check the server log and make sure status of bridge is "forwarding messages"
    Regards,
    Anuj

  • Single source sending data through multiple messages to a single reciever

    Hi all,
    I am trying to implement the below scenario:
    - I am reading from table1 in a database using a sender channel1. Based on data retrieved, I perform a JDBC lookup on table2 (in same d/b) using a reciever channel2 in an UDF of a message mapping1.
    - The data retreived from table2 is mapped to an intermediate format1. A mapping between the intermediate format and target message type1 is performed and message is sent to the recieving system using a reciever channel3.
    - Now, I need to map data retrieved from table2 to different target message types1,2,3.. based on some criteria and send it to the same reciever. I intend to use a different target message type and intermediate format for every kind of data obtained from table2 and a corresponding mapping.
    I plan to do this without using a BPM. Is it possible? If yes, then are the 3 communication channels sufficient to achieve this or do I need to have more communicatin channels?
    Any help would be appreciated.
    Thanks,
    Amit

    This is pretty straight forward...
    change your design as folllowing :
    1. as you have both table 1 and 2 in the same database , you can directly write a join query to pick data from both the tables . this can be specified in the sender jdbc adapter
    so your source data type would be like
    row..0..un
    +f1(field from table 1)
    +f2( field from table 2)
    +f3(field from table 2)
    2. now just create 3 seperate mappings
    mapping 1 = between source structure given above and target MT1
    mapping 2= b/w source struc given above and target MT2
    mapping 3 = b/w source struc given above and target MT3
    3. use 1 receiver determincation ...1 interface detemination where you keep on adding the message interfaces and interface mapings created above..
    4. use 3 receiver agreemetns

  • How to send data through gprs from j2me application to desktop

    hi
    i wanna send some data to a server(where http://localhost:8080/ccp.html is running).i wanna catch this data and use it further.
    how to do it through query string/xml.

    Hi srini,
    it depends upon what is the receiver system.If you want to save the emails coming from SAP to Files ..then u will have to use File adapter in the receiver side...
    check these weblog.....
    Receiving Mail attachments using additional files of file adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    Regards
    Biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

  • Sending data through network takes forever

    hi fellow java developper
    i'm developping a program that hides files contents trough xml messages in order to exchange securily from a intranet to an extranet whitout having to use ftp and port 21. The problem is it takes over 22 seconds to send a 22k from the server and it takes about 85 seconds to receive it on the client side. this is driving me nuts because i know that delay is extremely high. IS there a way to optimized those to following methods so that the delay is reasonnably cut down
    thanks in advance
    here is my code to send and receive data,
    private BufferedInputStream inBuffer; // input buffer
    private BufferedOutputStream outBuffer; // output buffer
    * Method to send a String to the client
    * @param content is the string to send to client
    public void send(String message) throws IOException
    ByteArrayOutputStream streamOfBytes;
         DataOutputStream insStream_Out;
         streamOfBytes = new ByteArrayOutputStream(message.length());
    insStream_Out = new DataOutputStream(streamOfBytes);
         for (int i = 0; i < message.length(); i++)
              insStream_Out.write((byte)message.charAt(i));
         outBuffer.write(streamOfBytes.toByteArray(), 0,streamOfBytes.size());
         outBuffer.flush();
         * This method permit reception of string messages
         * @param a single character identifying the terminator to avoid receiving garbage
         * @return a string containing the message
         public String receive(char terminal) throws IOException
         char c;
         String message = "";
    long start = System.currentTimeMillis();
    int i = 0;
         while ((c = (char)inBuffer.read()) != terminal)
         message = message + String.valueOf(c);
    i++;
         long end = System.currentTimeMillis();
    System.out.println("temps requis recevoir:" + (end - start) +" ms nbboucle:"+i);
    return message ;
         }

    Hmmm.. there are a few optimization possibilities here, both with respect to creating bytes and retrieving text from bytes again. This is more close to the way java does it, and also the recommended way:// Push data out to a byte[] like this:
    String data; // initialized elsewhere
    ByteArrayOutputStream target = new ByteArrayOutputStream( data.length() );
    DataOutputStream stream = new DataOutputStream();
    stream.writeUTF( data );
    stream.flush();
    byte[] bytes = target.toByteArray();
    // Read data in from an InputStream like this:
    InputStream input; // initialized elsewhere
    DataInputStream stream = new DataInputStream( input );
    StringBuffer result = new StringBuffer();
    try
       // terminates with an EOFException
       // (ridicolous, but that is what the specification says...
       while( true )
          result.append( stream.readUTF() );
    catch( EOFException e )
    return result.toString();However, if your code works, the times you talk about is probably not connected to bad code (unless your XML is really really big) but more likely to network problems. Note that if your output string results in a byte array larger than 65535 bytes, a DataFormatException will be thrown from writeUTF (so the method fails). In that case, you will have to use OutputStreamWriter / InputStreamWriter and specify encoding to be e.g. UTF-8.
    Good luck!
    Daniel

  • How i can receive & send data through port? urgent

    port=9999
    data receive in 4 column
    name, price, high, low
    i want to receive this data & display this data in from & automatic refresh
    do u have any idea ?
    plz urgent reply

    IDS (Internet Developer Suite) is a RAD tool to create database application however that totally depend upon your requirement but if u feels limitation while working on Form IDS , u can switch to Jdeveloper an open source environment but still u have option create bean in Jdeveloper as per your need and bundled it with your Forms.
    I still suggest to discuss the problems which you are facing while invoking the bean in your form so that we can guide u better.
    Finally, neither move to latest version or change your development platform just for seek of fashion
    Hope it clears now!

  • I want to build an array using the data that I get through the serial port

    I am reading data through the serial port, but I want to buffer these data. I have seen a function, but i think that i can use this if I am reading data from I/O intrument, so I don´t how can I fill an array, with the data that I am reading!!!
    Thank you!!!

    I'll hazard a guess that you are reading data with VISA as a string. Then you want to convert that (probably with Scan From String) into a number. Then, you want to collect those numbers into an array.
    We don't really have enough information to tell you the best way to do this. Here are some ideas.
    If you are reading all the numbers from the instrument at once (e.g., a waveform from a scope), you might consider using "Spreadsheet string to array". Most scopes return the data as ASCII with commas between the values, so you'd wire a "," to the "delimiter" input of the "Spreadsheet string to array" function.
    If, however, the instrument is returning a single point at a time, there are more questions. Do you want to do this continuously, or do you want t
    o collect only a certain number of data points, and then process them as a block?
    If the latter, then you'd just acquire each data point, convert it to a number, and then use output indexing on the for loop to create your array.
    If the former, then you may want to store the data in a queue, and read it from the queue elsewhere in your program.
    If you let us know what you want to do, we can probably provide more precise help.
    Brian

  • Is this "OK"? Lots of Serial Write.vi's !

    Hello all. I had a recent post and two excellent responses about how to get a constant FALSE condition to send a command ONCE, and a constant TRUE condition to send a command ONCE. In other words, while the buttons are "idle", nothing is being sent. The attached VI works great, but look at all the Serial Write.vi's! It doesn't really bother me, but is it just seems wrong. Are all those vi's "doing something" while they sit there in the case structure? Is there a way to get ONE Serial Write vi outside of the cases? Or should I care?
    background: In my other applications, the hardware has a FIFO and memory and I can concatenate lots of strings and send them to ONE Serial Write vi. In my new application, it's paramo
    unt to send ONE command and stop, hence the imbedded case structure and shift register to tell that a key has been pressed. The other attached vi is an example of what works on my old hardware but not the new stuff, so you can get an idea of why the new program seems so fat.
    Richard
    Attachments:
    WriteOnce.vi ‏58 KB
    ABSsub_VL&P.vi ‏91 KB

    If you want to use a single serial write, you can programmatically build your device dependent data string. See attached.
    P.S. What a great user profile name. Wish I had thought of it.
    Attachments:
    build_ser_string_programmatically.vi ‏37 KB

  • Bpc 7.5 - not sending data on a specific application

    Hi I use SAP BPC 7.5 SP7 patch 1 with Microsoft Sql Server 2008.
    I moved my AppSet from a server 32bit to a server 64bit.
    On 32bit server everything works fine.
    On 64bit server (64bit configurations written in BPC installation guide applied + no error in Server Manager > DIagnostic): I can't send data on a specific application I have.
    On 64bit server: I precessed all dimensions and all applications and then I even optimize. Nothing change.
    I have to applications: A and B.
    On Application A I can send data correctly.
    On application B in my Input schedules when I send data: everything seems to work fine but afer data refresh on my sheet the value disappear and nothing is written into FactWB table. No error displayed.
    Those input scheules are the same I have and working on 32 bit server.
    No errors into Windows event viewer so... what can I check or do more? How can I fix it?
    Edited by: Francesco Andolfi on Feb 10, 2012 7:56 PM

    Hi Francesco,
    have you tried modify application on B?
    have tried if you can send data through a new simple input schedule?
    Kind regards
    Roberto
    Edited by: Roberto Vidotti on Feb 10, 2012 8:35 PM

Maybe you are looking for

  • Driver update for Win 7 USB issue on nVidia chipset systems now available

    This patch is needed for the TouchSmart 600 AIO Desktop series if you haven't installed it. http://h30434.www3.hp.com/t5/Lockups-Freezes-Hangs/Driver-update-for-Win7-USB-issue-on-nVidia-chipse...

  • Photoshop color settings - what is Photoshop doing?

    Hello, I'm trying to understand how converting to different color profiles within Photoshop works. What I'm trying to understand is why, when I have a document saved in with an embedded color profile of "Adobe RGB (1998)", when I *convert* the color

  • Integrated login not working

    Ok, I think I'm doing something wrong, but I just can't figure out what it is. I've got SLED & the 1.2 client installed on it. If I log off and log back on, all existing mappings and connections are kept. But if I restart they go away and I have to m

  • Is there a way of archiving iMessages?

    I have been in iMessge contact with a friend for about a month and we would both like to save these messages in some archiveable format. I have an iPhone with IOS 5 on it and an iMac but I'm not sure whether messages can be transferred to the iMac to

  • "Error! Check activation"... What should I do?

    I just bought my first epub book from Guilford Press and downloaded ADE for it. However, it won't let me read the book, and only says: "Error! Check activation". What should I do? I am using a regular PC.