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

Document Type: Example Program
NI Supported: Yes
Publish Date: Jun 8, 2007

HDLC Implementation in LabVIEW FPGA

0 ratings | 0.00 out of 5
Print

Overview

HDLC (High-Level Data Link Control) is a serial digital protocol that can be used to communicate between different nodes on a network. Many of today's commonly-used communication standards are built on the HDLC specification, which describes how to serially transmit frames of data with control registers and error checking.

This is an example of how to implement an HDLC interface with the LabVIEW FPGA Module and R Series Intelligent DAQ hardware.

Downloads

Filename: lvfpga_hdlc.zip
Requirements: View

HDLC Implemenation Example for LabVIEW FPGA

HDLC_Host.vi is designed as a driver VI that can be called from a test console or other test executive application.  It uses a state machine architecture to initialize the FPGA hardware, send commands, receive data and then close the connection.

HDLC_FPGA.vi can operate in on-demand or continuously transmit mode.  Each bit being transmitted can be syncronized to an internal or external clock.  Responses are received continuously and can be dumped to the Host via DMA transfer or analyzed on the FPGA.

There are three main loops in the FPGA application.

  • HDLC transmission loop
  • Data receive loop
  • Clock generation loop

This LabVIEW FPGA example code was developed by PLF Consulting.

 

Additional Reasources

National Instruments LabVIEW FPGA Module

R Series Intelligent DAQ

Developing Digital Communication Interfaces with LabVIEW FPGA 

Implementing a Custom Serial Protocol with Intelligent DAQ

Requirements


Filename: lvfpga_hdlc.zip

Software Requirements


Application Software: LabVIEW Professional Development System 8.2
Toolkits and Add-Ons: LabVIEW FPGA Module 8.2
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO), CompactRIO, Reconfigurable I/O (RIO)
Hardware Model: PCI-7811R, PCI-7813R, PCI-7830R, PCI-7831R, PXI-7833R, PXI-7811R, PXI-7813R, PXI-7830R, PXI-7831R, PCI-7833R
Driver: NI-RIO 2.2

 
0 ratings | 0.00 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/).