Hello, I'm trying to interface to a FT2232D USB chip using VB and the FTD2XX.DLL. I can program the part description using MProg3.0a and then get what appears to be a valid handle to the device using FT_OpenEx, but when I try writing some bytes out using FT_Write I do not see any pin stimulation from the chip. Anyone have any experience with this? I have the EEPROM set to 245 FIFO mode. Here is my simplified code;
Module Module1 Public Declare Function FT_OpenEx Lib "FTD2XX.DLL" (ByVal arg1 As String, ByVal arg2 As Integer, ByRef lngHandle As Integer) As Integer Public Declare Function FT_Write Lib "FTD2XX.DLL" (ByVal lngHandle As Integer, ByVal lpszBuffer As String, ByVal lngBufferSize As Integer, ByRef lngBytesWritten As Integer) As Integer Public Const FT_OK As Short = 0 Public FT_Result As Integer Public FT_HANDLE As Integer Public Sub OpenWriteDevice() Dim temp FT_Result = FT_OpenEx("Device A", FT_OPEN_BY_DESCRIPTION, FT_HANDLE) If FT_Result FT_OK Then Form1.lblStatus.Text = "Couldn't find Device A" Else Form1.lblStatus.Text = "Device A found and opened. Handle " & FT_HANDLE End If temp = FT_Write(FT_HANDLE, Chr(15), 1, FT_Result) End Sub End Module
Thanks in advance. Thomas Magma