Example Code

Read of Shift Register using NI-845x Scripted SPI API

Code and Documents

Attachment

Introduction

This simple VI uses an NI USB-8451 to read SPI bytes from a shift register with an active high chip select.
The clock idles high, when not transferring bits.
For connection information see the 8451 manual.

An array is returned containing the data in bytes.

Steps to Complete

See the comments in the VI.

Snap1.pngSnap2.png

Best regards,

Mark M.
Applications Engineer
National Instruments UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors