Reading COM port I/O comma delimated data

Let me start by stating I am completely new to LabView. I am using it for an Engineering Design Course in college in order to collect and analize data being sent from a Silicon Laboratories C8051 Micro-Controller. I am currently using a hyperterminal to see the data that the Micro-Controller is sending. Currently I am just using a printf() statement in the micro-controllers code. The settings at the moment are:
Baud Rate - 57600, Data Bits - 8, Parity - None, Stop Bits - 1, Flow Control - 1. So specifically I would like to take this data and just archive it so I can then later plot it. The data coming in is just intergers in comma delimated form. I went to a breif LabView tutorial and the person told me how to use the VISA i/o functions but I didn't have LabView 7.1 until now. Any help on how to set up the COM port and display the data right now like a hyperterminal would be greatly appreciated.
Thanks

In the NI Example Finder I went to Hardware I/O -> Serial -> Basic Serial Write and Read.vi and I get an error message over and over and the pop up box says:
"Error -1073807202 occurred at Property Node in VISA Configure Serial Port (Instr).vi->Basic Serial Write and Read.vi
This Error code is undefined, No one has provided a description for this code, or you might have wired a number that is not an error code to the code input."
I tried changing the VISA setup options and at one point instead of 8 instances of the error I got it down to 4 but that was one time only. Does anyone know what this error is talking about?

Similar Messages

  • How to read COM port in Developer 4.5 or 6i?

    Dear all
    Have any one please let me know how to create forms with Developer6i join Barcode Scanner in COM port?
    At the time, I import OLE Library interface to be developer's package body (Component MSCOMM32.OCX) It isn't efficiency.
    Have any one Please let me your method and how to ?
    Thanks a lots.

    Parallel threads are easy in Labview.  You just create two loops where the output of either loop is not connected to the input of the other.  Without this data dependency, the two loops run in parallel.  See the attached vi, my producer-consumer template.  Replace the random number generator in the top loop with your serial port code.  Put your other processing code in the bottom loop.  Use the queue to pass info from one loop to the other.  You can signal the lower loop when the serial port receiving is done by putting something on the queue that signifies the completion (like a "done" string).  Your lower loop will constantly check the queue, looking for the "done" string.  You can use a boolean if you remove the string wires and replace them with boolean types.
    Bytes at Port will look at the serial port buffer and report the number of bytes sitting there waiting to be read.  Call it before you read, and pass the number from bytes at port to the read function.  Search the LV examples for serial port and you will see how bytes at port is used.
    Message Edited by tbob on 10-04-2005 03:51 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    ProducerConsumer.vi ‏40 KB

  • Reading from COM port, in forms 6i.

    Hi All,
    Can anybody help me how to read COM port, capture from comport in forms 6i, we have weigh bridge system and they have supplies MS access bases application, i would like to use forms based own application instead that.
    please anybody help me..
    thanks in advance

    [http://www.java2s.com/Code/Java/Development-Class/COM-Port.htm]

  • Scan and Read USB port

    Hi!
    I have USB port in my test jig. So first i want to scan my usb port and it also reads com port number.
    what happened, if i connected my test jig with one PC than USB port (COM 4) and some other PC it gives (COM3) through device manager. so every time i have to look device manager and look which port is connected with USB and i have to change port number in program.
    so i want to scan usb port and read which com port is connected to USB
    thanks

    Hi swami,
    I think there is no way to distinguish between native COM-ports and virtual serial RS232-devices via USB. If you use the VISA VIs to control your serial interfaces, use "VISA Find Ressource" to list the available serial interfaces. As an example you can use it as follows:
    Greets, Dave
    Message Edited by daveTW on 01-24-2007 09:44 PM
    Greets, Dave
    Attachments:
    Example_BD.png ‏2 KB

  • Getting data through com port

    how can i understand that data is sent tome through a com port.
    i use dataavailable event but when i read the data iread just meanless codes and it can not be.
    i use javax.comm for my project..

    Hi
    You Must have a listener for your comm port e.g
    private class CommListener implements SerialPortEventListener{
    case SerialPortEvent.DATA_AVAILABLE:{
    while(true){
    try{
    ch = is.read();
    if(ch==-1)
    break;
    buf.append((char)ch);
    }catch(IOException ioe){
    System.out.println(buf.toString());
    }

  • Communicating via the Com port (comm)

    Hi Folks,
    I'm trying to communicate to the com port on my device but apparently can't "see" any available com ports.
    Actually I'm trying to communicate via the Infrared port on my device and have been able to do so on a Nokia using COM0, however, on an Orange SPV, no ports are available. I'm using the Connector class from GCF.
    I've used
    System.getProperty("microedition.commports")
    and on the Nokia get a load of ports back, however, on the other device I get back null. The device does have a IrDA port so I feel like I should be able to access it, I just don't know how.
    I wondered if there is other ways to get hold of a port?
    Reading http://developers.sun.com/mobility/midp/questions/properties/index.html it implies that the above property is implementation specific, does that mean Midlet Manager implementation specific (the SPV device uses Intent Java).
    Thanks for any suggestions or any tips / links on IrDA / serial communication with ME :)
    Cheers,
    Toby

    Start with the NI modbus library.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/201​711
    Or download portmon and use it to watch the data as modscan is working. Then use VISA and serial port commands to transfer data bytes until it matches what modscan is transmitting. You'll learn more doing it this way.
    Also download the modbus protocol pdf file.
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=197677&query.id=96682#M197677
    Message Edited by unclebump on 03-10-2008 06:04 PM

  • USB COM port read garbage Bytes

    We have configured USB COM port at 625000 baud rate and reading the data continously. When the COM port is read for long time, see some garbage bytes inbetween valid data. Could somebody help what could be the problem?

    1m is a trivial length, doubt that causing any problem. I am a little suspicious of the USB-Serial adapter. With an "old school" serial port it was generally hardware until the OS read the buffers where the incoming data was being "stored". Not sure with the USB version, suspect that there is little hardware buffering, and with anything in a non-realtime OS (Windows) a interrupt that puts the USB task in a lower priority and you could have and issue, although figure it would drop data rather than add it.
    --- Pondering ---
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How Do I read in from a COM port?

    I am running a project, and i need to read in four streams of numbers from the same serial port and output them to the screen, preferably as graphs. My current problem is reading the data in from the serial port. I have downloaded the commapi from the Sun website, but when i try to compile the example file SimpleRead.java i recieve 24 errors. What can i do and how can i read from this COM port. Please help.

    Fix the 24 errors

  • Comm: no com port found

    help!
    i have copyed the win32com.dll to jdk\bin ,and the comm.jar and prop file to jdk\lib,but still no com port found

    Have you tried enumerating the com ports? Something like this:
    Enumeration  en     = CommPortIdentifier.getPortIdentifiers();
    while ( en.hasMoreElements() ) {
       portId = (CommPortIdentifier) en.nextElement();
       if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) {
          System.out.println(  portId.getName() );
    }But what does this have to do with j2me?

  • How can i read an COM port ???

    Hi,
    somebody knows how can i read an COM port from Forms 4.5 ?
    Thanks in advance.
    Patricio

    Hi Patricio
    have U got any solutions?? Im also trying to send message to display panel from forms 5.
    If You got any please let me know itll help me a lot
    Thanx
    Suraj

  • How to read serial port only when new data has been sent to it

    I've written this very simple vi to read the serial port whenever the MKS Helium Detector sends a new value.  The timing of new data is controlled directly from the front panel of the MKS instrument.  I thought it was as simple as looking at the "bytes at port", and reading the port only if the value is not zero.  The problem I'm having is that the read function is occuring whether I want it to or not.  Consequently, the "Scan from String" function is returning an error (0) once in a while, because it's reading the serial port as it's being updated (I think).   Apparently, when the port is in the process of being updated, it is not zero.   Anyway, I'm assuming there is a simple fix, but I'm having no luck finding the Easter egg.  Any help would be, as always, very much appreciated. 
    Attachments:
    MKSRead.vi ‏55 KB

    You can approach your problem in a couple of ways. The way you've got it written now, as soon as the number of bytes is non-zero, you read and convert. This means that when a partial string is there, you conversion is nor correct. One way is to wait until non-zero bytes like you do now, and then in another loop, read until the byte count is equal to zero and then do the conversion. You can also read until the cr\lf is detected and then do the conversion on the string. You can also enable the termination character for the read but then you'll have to increase the number of bytes to read to something other than just the number of bytes first available. If the instrument always returns the same number of bytes, you can use that as a constant for the VISA Read. Then the read will terminate whenever the byte count OR the termination character is detected.
    I modified your VI to show you how you might put it in a loop and what for the CR/LF to be detected. You would want to add a timeout to this so that if the character does not show up, the loop will not run infinitely
    Attachments:
    MKSRead_mod.vi ‏68 KB

  • GPS or MNEA data into com port

    I need to get GPS data into the com port and merge with DAQ analog data for logging. Any suggestuions?

    LabVIEW would work well for that. You could do it with LabVIEW by using serial communication and DAQ, which there are lots of examples for both. You posted this in the Datalogging and Supervisory Control area which is an add-on module to LabVIEW. It gives you lots of features which you may or may not need for this application. For instance, with the DSC module you could have the data automatically log to a database that is ODBC compliant and incorporate security features. Without the module you would have to write the information to file programmatically. You might do some research on www.ni.com to get more information on DSC to see if it is a good fit for you application.
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • Need so somehow come back from reading a port to do other things.

    I got a class that runs a GUI to open a user's webcam and display the view. Then the class goes over to another class that reads from a serial port to display the speed frmo a GPS receiver on the port and display it on the GUI. Then I need the GUI to be ready for a user's input for start/stop as well. I'd post the code but it's kind of long, my problem is that once the focus goes over to the class that reads the serial port, it stays over there and the GUI doesn't load. It's splitting off to read the port from the constructor so it's the first thing done, how do I make the GUI and stuff load as well? Do I need to create a different thread and have them run concurrently? Then if I try to run getSpeed() from the thread running my GUI, will that get the speed currently pulled by the other thread that's reading the port?

    All the blocking I/O should be done in separate threads. If they need to update the GUI they should do that via SwingUtilities.invokeLater().
    Then if I try to run getSpeed() from the thread running my GUI, will that get the speed currently pulled by the other thread that's reading the port?If they refer to the same variable and you've taken care of synchronization.

  • Output to com port

    hi,
    pls i'll like to know how i can get my program to sent bytes to the com port of my computer system. I suppose there should be something in the java.io package

    Nope !! there is no option in java.io package.
    You have a package by name javax.comm which will let you to read/write data to any desired port.
    Download it from sun's site along with the required .dll file.
    Hope this helps !!

  • PXI 6511 reading multiple ports in parallel

    I am reading multiple ports in parallel, and it seems to be working fine until I send out data on the MIL STND 1553 bus then the 6511 readings are whacky. Don't know how the 1553 affects the 6511, but am wondering if there is a better way to read the 2 ports in parallel, maybe some of the instability (?) may go away.
    Grasping at straws but figure this is something I can confirm through the community.
    Is there anything obviously wrong (or flakey) about how I am reading these two ports? Is there a better way?
    TIA
    lmd2
    Message Edited by lmd2 on 03-28-2006 02:18 PM
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]
    Attachments:
    6511 Read 2ports.vi ‏122 KB

    Thanx
    this is a very good tip, I didn't know that multiple ports could be input with a comma delimiter.
    the 1553 bus seems to not be an issue (?) but the circuit had a bad IC that was engaged by the 1553 command.
    Anyway I rally appreciate the tip  -   that will come in handy for sure.
    lmd2
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

Maybe you are looking for

  • Two all day events in list view?

    Is it possible to have two all day events over the same time period in list view? When I try to add a second, the first is then only shown as three dots on each day (the stripe disappears). Thanks

  • How to get rid of the numbers on the Pages flag icon

    How do I get rid of the numbers tag at the top of the Pages Flag in iWork

  • Library crashed how do i move the apps on my touch to new library

    Long story short, the volume structure of the external hard where my itunes library was located disintegrated. Not all was lost, as I happened to have copied all of my music onto my wife's itunes (running on a separate external hard drive) so i still

  • Problems with sound and safari slowness

    installed mavericks on a macbook pro from 2011, 2.5 GHz and 4GB RAM the sound icon on the top menu bar is light grey, won't open in system preferences (spinning beach ball of death...) safari takes FOREVER to load new pages, especially outlook, and n

  • Card index software for MAC

    Does anyone know of some good software that acts like a card-index - somewhere I can store information about books that I read/reviews/quotations? I've tried 'Googling' card-index software for mac, and various other permutations, but not come up with