Example Code

Silicon Labs USB MCU Library

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

Overview

    This is a LabVIEW 2012 library for the USBExpress driver for Silicon Labs USB MCU's.

 

Description

    It wraps all the functions contained in the USBXpress dll in order to create LabVIEW VI equivalents. The Context Help and VI terminals are populated from the SiLabs Programmer's Guide, so the library is fairly well documented.

 

Requirements

    Software

    LabVIEW 2012(or compatible)

 

Hardware

    NI-DMM Device

 

Steps to Implement or Execute Code

    To install, unzip into the LabVIEW 2012\user.lib\ directory. The VI's will appear under User Libraries in the Functions palette.

 

silabs.jpg

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

** 12-08-2019, Rolf Kalbermatter, A new VI library has been attached "Silicon Labs USB MCU's LV2012 Corrected.zip" that changes the Read and Write functions to work. The previous were purely Import Library Wizard generated wrappers not handling the buffer parameters in a way that could even work. I don't have any hardware to test it but the previous functions could never have worked at all. I also took the liberty to clean up the other functions and correct the error status handling to something useful. **

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer

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