Each type of external AD converter will use a slightly different communication interface, so one example will most likely not work with most ADCs available on the market. Just as a reference I have included the example from NIWeek which takes one measurement from the external ADC using an SPI like protocol. The example includes a host VI and the required LabVIEW FPGA VIs.
Secondly I'm attaching a more generic SPI example which shows the implementation of a general SPI communication interface. SPI is a common and simple serial communication protocol used with a wide variety of chips and components found on circuit boards and in different devices and sensors. This example shows the implementation of a SPI writer and clock master and SPI reader
and clock slave. The example will work without any external wiring, but normally only half of the code (input or output) will be used in an application.
Christian L
NI Consulting Services / LabVIEW Real-Time and FPGA
authored byChristian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX

