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

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

  • Multiple serial ports reading from a shared USB port

    I have a program that reads from 4 flow controllers, which send data through RS232 serial ports. Because the computer is located pretty far away, the vendor suggested to use an Edgeport box to convert RS232 to USB, then convert to ethernet port using a SuperBooster converter. The signal travels long distance in ethernet cable to the computer and get converted back to USB, then to the computer. In MAX, I was able to see 8 com ports from the Edgeport box, and I was able to communicate with my flow controllers.
    The problem is, it will give me some error message occasionally. Sometime it's a VISA Read error, sometime it's a VISA framing error. Could this be caused by the way the signal is transmitted?
    In the program I have four parallel WHILE loops that constantly do READ and WRITE to the 4 flow controllers. Could this be causing the errors? If so, what is the best strategy to design this program?
    Thanks

    I agree with Mike, you will need an error handling strategy that accounts for these errors.  And retries the communications.  This can be a little tricky, but very doable.  I believe some sort of statemachine approach will work best for this. 
    As for your heated probe.  I would make some sort of hardware interlock that will shut it down in case of a coolant failure.  NEVER, EVER trust the computer to be running where safety is concerned, either for personal or hardware.  There are plenty of ICs that can monitor temperature, and have warning, and alarm outputs!  Another option is some sort of watchdog on the communications bus for the coolant control, but I think this is a bit more tricky. 
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How to find COM port for a specific USB device

    I want to automatically find the COM port for a specific USB device. I use the VISA find resource function but I can't get the manufacturer's ID. VISA says the device doesn't have this information. The find resource function does narrow my search (and often finds the port depending on what other usb devices are connected). In the case where it finds multiple possible ports, can I safely send a message to each port to determine if it is the correct device? I know it will work for my purposes but I don't know if I am asking for trouble by sending messages to unidentified devices. Any thoughts on how I can identify my device port will be appreciated. Thank you - Dave F

    You can do it using WMI.  I have C# code I am supposed to convert into LabVIEW foing something similar to what you want to do.  In my case, I am testing a USB device and need to know which port on the hub is which COM port (the device creates a virtual COM port for communication).  Using WMI, you can find the hardware path to the device and know that COM10 is USB hub Port 1 for example.  Unfortunately, I cannot share the C# code.
    You can download the WMI Code Creator tool from Microsoft, which should help you tremendously find the proper method of getting your info.
    You basically want to look at all the W32_USB devices for the specific device you are looking for.  Once you have that, you can look for the COM Port associated with it.  I don't know when I will get to coding this up in LabVIEW, but will report back when I do, assuming you haven't found the solution by then.

  • Problem related USB Virtual COM PORT using PDA module 8.2 on Windows CE

    Hi,
    I am working on tranferring my application developed on LV 8.2 to a Single-board computer(SBC) running Windows CE 5.0. I am using LV PDA module 8.2 to achieve this. My problem lies in finding the port number of the Virtual COM Port on the SBC. I need to connect a USB RF modem from Maxstream to this SBC and to talk to it using VISA. I have installed the required drivers from Maxstream for converting the USB port to a virtual COM PORT. What is a way to figure out the COM PORT number on a Windows CE device? For a PC, I can see the COM PORT in the device manager but I do not know how to find this in Windows CE. . Also, I have tried using "VISA Find resource" function ..it works on a PC but I do not get anything in the Win CE device.
    Any help would be much appreciated.
    -Shruti

    Shruti,
    Is there a way to verify that the Maxstream driver successfully provides you with this virtual COM port? Essentially, what I mean is that if you did not have LabVIEW on this device, how does Maxstream prove that their driver is functional? Does it come with additional software that would be used to configure the USB RF modem? In any case, we would want to try opening any terminal program (like the hyperterminal) to determine what ports are listed for communication. I hope this is useful for you. Please post back when you are able to give this a try. Thanks,
    Mike D.

  • 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

  • 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]

  • Can a USB Keyboard/Barcode reader be used with the USB port on the CRio

    Is it possible to use a USB Keyboard or Barcode reader with the USB port on the CRio, I know you can use this port with a USB memory device, but what about other devices?
    I have a project that requires that all hardware elements be connected to the controller and use the HMI purely for display,
    anybody any ideas?? 

    Hi kmoyna,
    The standard CompactRIO range's USB host ports are not suitable for standard USB devices like keyboards or barcode readers - they are intended only for use of mass storage devices. From your description, it seems your project's requirements would be best met by the newer models, cRIO-9081 or cRIO-9082. These two units have Windows Embedded Standard 7 (WES7) and allow the direct connection of a monitor and standard USB devices. We now also have similar stand-alone CompactDAQ models running WES7 - cDAQ 9139.
    I would recommend calling into your local branch to discuss your project further with one of our engineers. If you're in the UK, it's 01635 523 545 - or view contact details for other branches.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • USB TO COM port drivers in LabVIEW..

    Hi Everyone,
                      I have virtual com port equipment (hardware) from STmicroelectronics and i need to communicate it with LabVIEW through USB.
    I have done with NI-VISA Wizard which i have gone through previous posts but am not able to communicate.
    Can i get any drivers for this communication.
    In MAX, i can see it as COM4, COM5 like that but i want it as USB.
    Thanks,
         Sony.
    '' A professional is someone who can do his best work when he doesn't feel like it''...........

    To expand on Sir Dennis' point, it is not uncommon for vendors with USB widgets to sell to implement the interface to them as virtual serial ports, and the reason is simple: Nearly any environment can talk to a serial port, and you don't need any special hardware. In addition, because it is a **virtuall** serial port you don't even have to worry about cables.
    The point to remember is that when you plug in one of these devices you are in essence adding in both the device AND the port to talk to it.
    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

  • COM-port problem with MSI BToes USB Dongle

    I´ve had problem to get my Sony Ericsson T610 to work with my MSI BToes USB Dongle, so I tried to update my drivers. Now I have Microstar Bluetooth Software 1.4.2 build 10 but can´t get my Serial Port service to work. In Advanced configuration / Client Applications under "Bluetooth Serial Port" / "Properties", the only serial port I can choose is com0. Does anyone know how to fix this problem?
    /Peter

    Well, I think i´ve solved the problem. To get the com-ports to work I installed the software. Then I had a problem to get the phone to communicate with Sony Ericssons synk-software and outlook, but suddenly it worked and has worked since then. I have no idea what the problem was but now it works and I´m satisfied.
    /Peter

  • I want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port

    hello sir,
    I am developing a GUI screen from that i want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port. the driver i am using is FTDID2XX driver.if anyone having examples of loading file through serial port.Please reply me .
    Thanks

    Looks like you should post your request in the LabVIEW forum, this one here preferentially is for LabWindows/CVI...

  • 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

  • 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?

  • Can I connect a USB 2 sound card to a Macbook equipped only with USB 3 ports?

    Hello,
    I just learned I might have to purchase a new Macbook because my USB ports are fried and I was looking at purchasing a refurbished Macbook pro from 2012:
    http://store.apple.com/ca/product/FD101LL/A/refurbished-133-inch-macBook-pro-25g hz-dual-core-intel-i5
    the only trouble is I make music with a MOTU Audio Express sound card, and it only has a USB 2 port and a bus-powered Firewire (which I don't like using since it hasn't been too reliable in the past).
    http://www.motu.com/products/motuaudio/audio-express/summary.html
    Unfortunately, it seems that the Macbook I'm looking into purchasing only has USB 3 ports, and I looked for info on USB 3->USB 2 adapters online and this simply doesn't seem to exist. The only info I managed to find on this subject was this little bit on the Apple website:
    Can a USB 2 cable be used to connect a USB 3 device to my computer?
    If the device end of the cable fits into the connector on the device, yes. However, because it has fewer wires, you won't get USB 3 speed and power may be limited to 500 mA.
    does this mean that I can connect a USB 2 cable from the USB 2 port of the MOTU sound card to the USB 3 port on the Macbook? I'm OK with the power and the speed being limited to USB 2 power, I just want to make sure I can actually use my sound card with this new Macbook.
    Thanks!

    I think I'm understanding this a bit more now.
    Here is the cable that I use:
    http://www.amazon.ca/USB-Cable-Type-Male-Black/dp/B00183I7EE
    The Type A part is the one that I'm currently putting into the Macbook and the Type B part goes in the sound card.
    Would this work with a USB 3.0 port on the Macbook?
    Thanks for your time and patience...

  • How can I write to multiple daisy-chained network serial addresses through a single COM port?

    I have a VI to write to 3 PI Mercury motor controllers using daisy chained RS232 connected via a Prolific USB-to-Serial adapter. I know that it is possible to talk to the individual controllers because the PI terminal that I have recognises the addresses of multiple controllers and designates them Device 1,2,3. The VISA resource name when configuring the port just comes up as COM5 most of time, with seemingly no way to specify an address on that COM port. Occasionally the VISA resource is ASRL5::INSTR and as this is disconnected and re-connected, this address moves up a number (e.g ASRL7::INSTR). Can anybody tell me how I can configure my serial communication to allow me to individually communicate with the different devices through a single COM port?

    What does the manual say about addressing? RS-232 is not multidrop, the resource name is correct, and there is no additional configuration needed. There would have be a specific write in order to address a certain controller.

Maybe you are looking for

  • Delivery address of PO is not geting disp in print o/p when it is changed

    Hello, When delivery address is changed at PO line item it is not getting displayed in print output. Before change it is getting displayed. Note - system is 4.6C. Thanks - aadil

  • IPod Touch 4th Gen 64Gb EXTREAMLY slow to sync

    My iPod Touch 4th Gen seems to have, in recent weeks, slowed down syncing. I have made no changes, and only use it for music, yet when new music goes on, it takes around 1.5mins per track to sync. The files size per track is the 5MB (192kbps MP3). So

  • Can I define a SQL Server View to Oracle data?

    So I have a subset of data whose source of truth resides in an Oracle Database. Can I define a SQL Server View to retrieve this subset of data and make it available on the SQL Server side for say Reporting and SSRS? I think I also saw where they tend

  • Hotmail on N97

    I have used Nokia Messaging, downloaded from email.nokia.com to download my hotmail account to the N97. I worked very well and I was an active user. But after 3 weeks it stopped downloading new mail from one day to another. I checked settings which d

  • Messages to Weblogic Queue from JCAPS

    Hi, We are facing problems looking up a Weblogic queue from JCAPS to send a JMS message into it. The same code works fine from ICAN and stand alone java class. Has anyone done this before in JCAPS? Any help would be highly appreciated. Thanks.