LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acceleromter with FTDI

Hy everybody,

 

For a bachelor's project, I've to communicate with I2C protocol beetween a FT2232H mini module and a digital accelerometer. I decided to do this with Labview, but with help of exemple given by FTDI http://www.ftdichip.com/Projects/MPSSE/FTCI2C.htm but I don't know wich functions a need just to read a register of my accelerometer. I tried just to use the "Exemple.Vi" without using the "Write.vi" function but the communication doesn't work at all.

 

Does anybody know how to do it?

 

Thank you very much,

 

JB

0 Kudos
Message 1 of 4
(3,463 Views)

Hello JB,

 

thank you for posting at the National Instruments Forum. I would like to clarify your setup:

 

Setup.GIF

 

Your computer is connected to the FTDI-Chip using USB, the Windows Driver for the USB-Device is provided by FTDI. The onboard I²C implementation allows to communicate to I²C devices using FTDI technology.

 

FTDI provides a separate library (FTCI2C.DLL), which enables you to communicate with your application using USB. This DLL can be used by a variety of programming languages like Visual Basic .NET, Visual C++ and so on.

 

Have you successfully tried the provided examples from FTDI for these languages to communicate with your application?

 

LabVIEW offers the possibility, to access external DLLs. As soon as you are familiar with the handling of the DLL, you may use the "" function in LabVIEW to use the DLL.

 

More information about using DLLs in LabVIEW can be found in the LabVIEW help (Fundamentals » Calling Code Written in Text-Based Programming Languages » Concepts » Importing Shared Libraries) and here:

 

How Do I Call a Dynamic Link Library (DLL) from LabVIEW?

http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33

 

The details for your application (commands, sequences etc.) may be obained from the manufacturer of the accelerometer.

 

 

Best regards

 

Marian Vorderer
0 Kudos
Message 2 of 4
(3,413 Views)
You must also have the USB driver for the chip installed in order to use the Labview sample code. Current drivers for the FT2232C device are available on the VCP Drivers page and the D2XX Drivers site


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 4
(3,409 Views)
Thank you for your answers. After a week of "problems research" I found that my electrical schematic had some little mistakes. Now the communication works in one side. I mean that the FTDI sends signals correctly. Now the problem is that the accelerometer doesn't send his Acknowlege. So I'll try the communication with a new accelerometer.
0 Kudos
Message 4 of 4
(3,376 Views)