Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Validating Serial Data Using Manual Parity Checking

3 ratings | 4.67 out of 5
Print

Downloads

Filename: validateserialdata.zip
Requirements: View

The Windows API, which LabVIEW uses for serial communication on Windows operating systems, does not report parity errors to LabVIEW. This means the Serial Port Read VI will not report a parity error.

This example validates data that is read using Serial Port Read, effectively performing manual parity error checking. It assumes the writer is using 7 data bits and either odd or even parity, and that the reader is using 8 data bits and no parity. This means that the parity bit becomes the highest-order data bit from the reader's point of view. The VI returns a Boolean that indicates whether a parity error occurred, as well as an array of parities, one for each character, so that the programmer can isolate the particular character that had bad parity.

Requirements


Filename: validateserialdata.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0.1
Language(s): LabVIEW

 
3 ratings | 4.67 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).