Code Examples

LabVIEW Examples

This page contains examples of communicating with FTDI devices through the D2XX drivers and FTD2XX.DLL using LabVIEW. 

Please note that at this time, FTDI run LabVIEW 7.1.  This restricts our LabVIEW example compatibility to LabVIEW 7.0 and LabVIEW 7.1.  Developers using earlier versions of LabVIEW can download screen shots of our LabVIEW example block diagrams here.

NOTE: FTDI’s D2XX drivers must be installed for the VIs to run.

D2XX Function Archive

Many of the D2XX functions have been interfaced to LabVIEW in this ZIP archive.  The VIs contained in the archive interface to the most common functions used in the D2XX DLL.  They can be wired up to like a standard VI for use with LabVIEW 7.0 or later, .

To download the D2XX function library for LabVIEW 7.0 and later, click here.

Example 1

This example shows how to use FTDI’s D2XX drivers to find a device, open it, write data in a byte-array format, read data in a byte-array format and close the device.

To download this example, click here.

Example 2

This example shows how to use FTDI’s D2XX drivers to find a device, open it, write data in string format, read data in string format and close the device.

To download this example, click here.