Parity errors & read on Serial Port framing

Hello, I am writing a program that reads the serial port IR thermometer. Intermittently I get parity so many framing errors and can't explain why or find a way to remedy. All the parameters of the series were double checked and controlled. I don't get any errors when you use HyperTerminal yet, when I do test bed in MAX, I see these mistakes from time to time. I tried the suggestions of the knowledge base for these as presenting a delay between the Visa set up and read the Visa or flushing buffer issue before reading, but none worked. Any idea or ideas would be appreciated.

In addition, while searching through discussions on parity and framing errors, I saw a when a user recommends the following: "use wait event triggered by the stop character and when the error occurs, I just deleted the error, empty the buffer (wait the next stop character) and reread." If that sounds like a good solution, how would I go about its implementation?

I've attached a screenshot of my reading series loop so you can see what I'm doing. I do about the error code control timeout is.

Given that you have activated the stop character, you should not use the bytes to the serial port. You shouldn't have to delay or any function buffer flush.

PS, You also have to change the way your loop exits.

Tags: NI Software

Similar Questions

  • Sometimes the lost bytes, reading the serial port

    Hello!

    I'm reading the serial port data (flow rate 57600 baud rate) that works very reliable so that I do not open any other window

    or minimize/restore my window of the application during the program is running. Then a byte of incoming data will be lost.

    I get a string of 30 bytes each 50 m in most of the cases the first byte is lost, sometimes one in the middle.

    This occurs not only on a PC.

    Is this a problem of LabVIEW or Windows?

    Are there settings that can solve the problem?

    Best regards

    JK78

    I solved the problem.  

    There was a bug in my program who become visible only if a window has been reduced or restored.

    When there are two or more messages in the buffer VISA, the separation of the messages was incorrect.

    Array index corresponded to false so that the first byte of the second message was at the end of the first

    and so the second message in the buffer seemed incomplete.

    In normal operation, the playback loop runs so fast, never both messages are in the buffer.

    Thanks for all replies.

    JK78

    Either way, I work with LabVIEW 2009 and serial interface hardware motherboard. With XON/XOFF flow control

    is not possible in my application because all the hex values from 00 h to FFh may appear in a message.

  • read the serial port PIN +.

    Hello!
    Ive got a question on the serial port. I don't want to make any communication on the port. I want to directly connect an instrument (later), the pin of the connector series #2. On the PIN, I need to read impulses. I am able to read the port pin series, who is active? I know, I can do it on the parallel port. With the port. VI, I give the address of the port, check the D0 PIN for example and the result I can indicate on a led indicator. I want to do the same thing on serial port, because later the target pc will be ve no parallel port. Is this possible? Can you give a statement of departure?
    Thank you very much for your help!
    Mr. Gabor

    You can read the down state from some other lines, DTR, RTS, etc.. There is an example that comes with LabVIEW. Open example Finder (help-> find examples) and search for "Troubleshooting Serial Line Monitor" example (just search "series").

    This can be considered an e/s digital interface a poor man, depending on what you are doing, you can be better with a 'real' digital i/o interface.

  • How to read a serial port?

    Hello

    I am a complete newbie to Labview and hoped that one of the benefits could point me in the direction of a tutorial on how to acquire data from a serial port. I downloaded some programs here, but I really have no idea of what is happening in their. I also tried looking for the tutorial and through the forums, but all I've found is too specific and would really like to know how to go about reading data.

    Thank you!

    Search for series in the Finder for example of NOR (help > find examples) then choose the basis series write and Read.vi.

  • Read the Serial Port in case of break in series

    Hello world

    I want to create a VI who will write a series, write interruption, then wait for an interrupt series to be received and if it is received, read what's on the serial port.  However I can't the VI to detect that an interruption of the series took place.  I looked at and followed what was done in the "Detect the Event.vi Break" example in examples of Labview.  The microphone that speaks to the VI sends a break of 13 bits (approximately length 57us), as expected, proved by the use of an oscilloscope but Labview is not contagious. I have attached the VI in question.  It is used as a subvi in a larger program.  I'm missing something or doing something wrong?

    I do not know.  230 400 is a very fast pace.  The UART in the PC isn't really in the game, but the EasySync USB/serial box is what is the factor.  USB is part of the communication may be adding a few complications.  You may browse the EasySync detailed technical data to see if they talk about it.

    I would certainly try a very long break first.  If it works, then start working backwards to small jumps.  If a long pause does not work, then you know that perhaps the problem is elsewhere.

  • Can not read the serial port VISA without MAX

    Hello

    I'm trying to build an application that will interface with a Black Cat Systems GM-10 radiation detector.

    The app works fine on my computer (with the full development system OR) but when I install it on another computer, without LabView, the application cannot see the serial port!

    I checked that the driver is installed correctl and Windows can see the device, but when I run my program, he can't seem to access the serial ports.

    I then tried to install MAX on the second computer, how the application worked well, but as I install this app in other places, I don't really have the ability to install MAX everywhere (software must be autonomous).

    Any help would be appreciated!

    Z

    I would have joined the project file, but the forums seem to not want to allow me to download that big of a file.

    What version of LabVIEW are you using? With 8.x, the installer is very able to install the runtime of NI-VISA and MAX. If you are using an older version of LabVIEW, there is an option to include the series VISA support. Install just MAX will do nothing to make the available ports. This is the VISA that does this.

  • read the serial port management using the SRM Protocol

    Hello

    I have a gas analyzer that communicates with the PC via the serial port.

    This is the "Industrial VarioPlus SRM".

    I have attached a PDF file that describes the communication protocol.

    I'm trying to decode the data that are sent from the parser, but I can't do it.

    I have attached the vi in which I made some effort.

    Any help is appreciated, at least for a single value in the data stream.

    Thank you.


  • Read the Serial Port with termination Char?

    Hi, I have a particular piece of hardware that I'm communicating which sends a stop character 0xAh at the end of the data written to the port. I have trouble reading the data from the port where I only get half of the data due to synchronization problems. I know that it's related to be looking at the bytes to the port property node and read the bytes that probably replacing end setting tank. I have the correctly defined termination char, so, how did a survey for serial data to the port without using the bytes to the port method because I don't think that it works when you use the termination char port method. Anyone know this issue?

    Simple VI that explains what my main VI by defining the term tank and using the bytes to the method of port that is not working properly and causes problems of loss of data from mark is attached.

    Thank you.


  • [begineer] reboot a 'while' loop reading the serial port

    Hello! I read some data from a COM port. I want to read my like this "%d S. the unit will send data continuously and depending on when I push the button run in labview, it can start to read data from the middle (%d is a four-digit number). as: 23 S 15'

    "whenever the first character of my data is not of", I need to restart playback. I read the data in a while loop. so I need to stop the while loop. From what I found on the internet, I used a case, another while loop and shift registers.

    but in some way I'm stuck inside the while loop. My VI is attached. Thanks in advance and sorry if my code is a mess!

    PS: what should I do if the bytes I get to the port is variable? use bytes to the port?

    The device sends a character at the end of the line at the end of each message?  You are currently Setup to do this by activating the stop character (currently set to end of line/10/0xA).  If this is true, then simply set the bytes to be read on the VISA to read something rediculously high.  It will stop playback when it finds this termination character.  From there, you just have to check for the correct format.  If this isn't the right format, ignore him.  Otherwise make your recording.

    I managed to clean up your code a bit on this basis.

  • reading photoplethysmograph waveform with serial port on PC using Labview

    Hello world

    I'm gaining time real Photoplethysmography waveform of serial port using Labview.I have managed to acquire data from serial port by using the following features:

    -Baud rate: 38400

    -data bits: 8

    -stopbit: 1

     

    -No parity bit

    -Time delay before reading the serial port: 10 ms (according to what was written in the manual that every 10 ms there is a frame in serial port)

    After the reading string will be converted to byte array to be able to extract the bytes associated with waveform (1 & 2 bytes in a frame) even for SOP2 (6 & 7)

    (what is read in serial port is in decimal and must be converted to hexadecimal based on what made the software of prodeuct for some result.that in the waveform properties, I chose the hexadecimal representation)

    Then, as mentioned in the manual, I associate these two values to draw the waveform.

    Although I used the filter band digital waveform of pulse but not significant pass that was seen (cutofffrequeny:10 high low cut-off frequency: 0.5).

    I have attached my program and result in front of Panel and manual for the sensor. The result is still far from what is supposed to be. I was wondering if you could help me and let me know your opinion on the program and the protocol used. I have to get the result as soon as possible. Please let me know if you need more information.

    Kind regards


  • That - 1073807252 serial port error code means?

    Hello

    I have a client with a prototype device that uses a USB OR for RS-422 interface connected to a PC.  On the LabVIEW, the following error code application of the serial port is seen:-1073807252

    What does this code mean?  Is there a place where serial port error codes are discussed?

    Thank you.

    Bob

    Right-click on the cluster of error, and then select 'explain the error.

    Alternatively, use the Simple (or general) error handler.

    He tells you: VISA: (Hex 0xBFFF006C) an overrun error occurred during the transfer. A character not read in the material before the arrival of the next character.

    Basically, this means that you do not read the serial port stuff pretty quickly.

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values

    IRP_MJ_WRITE when I write some values and

    IRP_MJ_READ when I try to read from the serial port

    But when I'm using LabView, I can only send IRP_MJ_WRITE function by using the component to write VISA (if this one works well), but when I use VISA component read my serial port monitor gives me only IRP_DEVICE_CONTROL. Do you have any sugestion where can be a problem? I don't know how to get this function IRP_MJ_READ using LabView VISA component.

    You watch the using PortMon software? The only thing I see here is that the order that you send, there could be a space that you could have made while typing,

    or

    You're still motor control software running step by step when running the labview? In this case, there will be conflict.

    When you use software original stepper motor and when you send the command wirte down the hexadecimal value (see portmon or any other monitoring software) and try to send back the same hex values using labview. Sending a command, sending of hex are the same but just give it a try,.

    Use bytes depending on the port before VISA to read all available data.

    Search for Microcon network drivers driver Instrument in the Web site OR if you want a quick and simple solution.

  • TPC-2106 t: can't access serial port

    I used visa function reading read the serial port through PTC but byte is always zero.

    How to access the serial port?


  • Driver serial port PCI missing on elitebook 2560p after replacing the defective motherboard

    Hello

    I have the following problem, after a replacement of faulty motherboard on my elitebook 2560p with Win XP, I find a question mark in the Device Manager list under a PCI serial port driver is missing.

    Properties of the navigation device I can read:

    Serial port PCI - PCI bus 0, device 22, function 3

    and
    PCI\VEN_8086 & DEV_1C3D & SUBSYS_162B103C & REV_04\3 & B1BFB68 & 0 & B3

    I tried to locate the pilot unsuccessfully in SP38312, SP45131, SP53918, unzip the files and trying to manually locate the driver in the files with the windows driver update function.

    can help you locate the correct driver?

    Thank you very much in advance

    Hello:

    Try this one:

    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=321957&prodSeriesId=5071201&prodNameId=5071203&swEnvOID=4059&swLang=13&mode=2&taskId=135&swItem=ob-91961-1

    Paul

  • Time GPS, Position, Velocity.vi - error-1073807360 reading was held at node (arg 1) .vi property VISA set up a Serial Port (Instr)

    We receive information such as the Latitude and Longitude of a receiver Garmin GPS18xLVC via a serial port on our PC using LabView 7.1.  Successfully, I connected the GPS on the serial port and tested with HyperTerminal.  I tried reading GPS time, Position, Velocity.vi several times and still receive the following error message: error 1073807360 has occurred to the property node (arg 1) visa configure a Serial Port (Instr) .vi.  I think it has something to with the configuration of the VISA series under vi.  Any suggestions would be greatly appreciated.

    Thank you

    I understood the question, that I had with the time reading the GPS, the Position, the Velocity.vi.  The vi. "do not open" port com automatically and so I had to modify the NMEA GPS Subvi reading to first open the port (VISA open command) and then continue with other operations.  Once I did this it started to work very well.  I don't understand why this feature has been left out because it won't work without it.  I tested the code with a receiver Garmin 18xlvc and it seems to work fine.

Maybe you are looking for

  • HOW TO REMOVE A FRAME TO A PICTURE OF HER.

    HOW TO REMOVE A FRAME TO A PICTURE OF HIM.

  • I can't share the album on flickr or facebook

    Hello: I have started to use pictures and still trying to find a way to do some very basic housekeeping! First, however, can't you share a photo album. The only option that appears when I chose to share, is iCloud, which I'm not interested in using f

  • Is it safe to replace macbook pro battery?

    Hello I have a MacBook Pro 15 inch (end of 2008), the State of the battery is showing that "replace now". Therefore, I am interested in resolving this issue. Is it safe to replace the battery with a new one, or could they cause no problem (I have a l

  • Analysis and generation of a signal

    Hello I am using NI Multisim 13.0.I want to generate a signal similar to that illustrated in the accessories acquired using labview that is the output of a phototransistor. The output image contains 10 signals each containing each acquired using 1 k

  • Replace windows 2000 Pro with Win XP Pro SP2

    What could be the best way to go about changing of OS witout losing Dat and the files on the PC. Would appreciate all comments and helwith the new facility. Thanks adavance