File ID: 83765
File Size: 10.0 KB
FTD2XX_NET_Write_GetPinStates 1.0 Description
Description: File demonstrates calling directly into the FTD2XX_NET.dll library from Matlab code. Code demonstrates how to split the data pins into two groups of four bits. Demo writes to 4 bits, reads the other 4 bits. FTDI makes USB compatible devices which can make the creation of USB-based electronic instruments much easier. The FTD2XX_NET.dll (downloadable ftdichip.com) is a .Net wrapper for the FTDI D2XX USB device driver programming library. This library eliminates the need for device developers to write custom USB drivers when developing custom instrumentation which interfaces to a PC via the USB ports.
Test_FTD2XX_NET_BitBang.m demonstrates opening the dll, opening a FTDI FT245-based USB device, and setting the device up for BitBang mode. In BitBang mode, the FT245 device functions as an 8-bit parallel I/O port. Modern PCs and laptops do not typically contain such parallel interfaces anymore. Hanging a simple module containing the FTDI FT245 chip, such as the DLP-USB245M, on a PC USB bus can add parallel port I/O capability to your PC which can be useful when controlling or communicating with external hardware.
USB245 is set up with 10k pullups on d3-d0 outputs(write pins) and the pins are jumpered to d7-d4 inputs(read pins). Via the FTD2XX_NET.dll, Test_FTD2XX_NET_BitBang_Write_GetPinStates.m 'bangs' four ouput bits of the DLP-USB245M, writing hex values from 0 to 15 interleaved with zero values. After every write, there is a GetPinState "read" which reads back the input pins. Debug statements show read values.
No .mex files, header files, or other fussing around is necessary as (at least the most recent versions) Matlab user code can directly call into .NET assemblies such as the FTD2XX_NET.dll.
Related: Hardware, External, communicating, Controlling, Usb, pullups, inputsread, jumpered, outputswrite
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
Learn to read and write XML with .NET's XML classes is an ASP.NET tutorial in which programmers can learn about the procedure for reading and writing the XML documents by using XmlReader and XmlWriter classes respectively. The author elaborates the simple methods to execute the above said process. The author gives source code for performing this process.
Write Your Own Provider For the ASP.NET DataGrid is an interesting article which discusess about how to create custom data provider to populate datagrid control. In this article the author describes the Enumerable interface of the ADO.NET and its...
How To Write Binary Files to the Browser Using ASP.NET and Visual C# .NET is a web based tutorial through which programmers can gather information about the steps that they have to adapt to retrieve binary data from file and also to download data...
HOW TO: Read and Write BLOB Data by Using ADO.NET Through ASP.NET is an ASP.NET article in which the author concentrates on the procedure for reading and writing binary large object data to a SQL server with the help of Filestream object and byte...
This is an useful .NET article through which you can know about how to read from and write to a text file in Visual Basic.NET. You can do this by using the ReadLine and WriteLine methods of the StreamReader and StreamWriter classes. You must pass...
ImageProperties .NET control reads and writes a comprehensive range of meta data from image files.
This includes many EXIF types and image properties like Resolution and Color depth, Author, Title, Comments, photo properties like Creation...
ASP.NET Programming Languages Primer is a tutorial which explains you how to create web applications in ASP.NET using three languages such as C#, Visual Basic, and JScript. In this tutorial the author clearly shows how to write statements and...
The new security components in .NET 2.0 can help you greatly reduce the amount of code you need to write in order to make your applications secure. Security is difficult to get right, and it is a good strategy to leverage the code provided by...
It is a visual tool for developing COM Add-ins, Smart Tags and RTD on .NET. Add-in Express implements everything required by the supported technologies such as IDTExtensibility2, ISmartTag and ISmartTagTopic, you write functional code only. It...
Btrieve Classes for .NET is a set of .NET database access support classes that enable fast , easy to program access from .NET programs to Pervasive.SQL databases via the Btrieve API. As such they greatly help developers looking to write .NET...
|User Review for FTD2XX_NET_Write_GetPinStates