NI Labs Toolkits

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Bluetooth Low Energy (BLE) Instrument Drivers for Windows & cRIO

 

Description

 

The NI LabVIEW Bluetooth Low Energy (also called BLE, or Bluetooth Smart) API and Instrument Drivers enable BLE sensors and development kits to connect to LabVIEW on Windows 10 and cRIO.  This enables existing BLE devices which typically work only with a bundled smartphone app, to also work with LabVIEW on Windows 10 or on Linux based NI cRIO embedded controllers.

 

Several example Instrument Drivers are included in the VI package.

 

Software Requirements

 

  • Windows 10 or Real-Time OS
  • LabVIEW 2016

 

Installation Instructions

 

Perform these steps to install the software:

  1. Download and unzip the attached .zip file
  2. Execute the VI package to the Windows 10 desktop or laptop by double clicking, or by opening it from the VI Package Manager, included with LabVIEW 2016 and later.

 

Perform these steps to connect to a BLE sensor from LabVIEW, after installing the software:

  1. Connect the BLE sensor to Windows by discovering it in Bluetooth Settings, selecting the sensor and clicking "Pair".
  2. Run the NI BLE Server, which is installed with the VIs, typically at C:\Program Files (x86)\National Instruments\LabVIEW 2016\user.lib\National Instruments\BLE Instrument Drivers\NI BLE Server\NI Bluetooth LE Driver.exe . You will need to click OK as this executable runs with administrator permissions.  This server exposes the Windows Bluetooth APIs to LabVIEW.
  3. Get the address of your sensor using Discover BLE.vi, and enter that address into any example or instrument driver so that it connects to the correct sensor.

Support

 

For inquiries regarding this tool, troubleshooting, and feature requests please refer to this LabVIEW Bluetooth Low Energy Support Discussion NI Community forum for BLE.

 

At present, this toolkit is experimental, unsupported, and not recommended for production applications, and has no warranty. Please see the licensing notice below.

 

NI Labs Licensing Notice

 

Because the software technology available on NI Labs is experimental and has not yet been released for large-scale commercial use or fully tested by NI, the terms of the NI Labs license agreements vary from the standard NI software license terms. Further, the license terms for specific NI Labs technology may vary.  Please carefully read the terms of the license agreement included with each NI Labs download before accepting those terms.

Comments
Tim_Ousley
NI Employee (retired)
on

1) We're live at NI Week 2016 with this code in the demo under the sign "Device Connectivity".  Connected devices include TI and ADI reference designs, and industrial sensors from Motionics and TE Connectivity.

2) The files are available in person, or direct message/email me (Tim Ousley) with the title "LabVIEW BLE".  They will eventually be posted here.

whitecr
Member
Member
on

Hi,

I am not able to find this driver in the VI package manager

 

national_instruments_lib_ble_instrument_drivers-1.0.0.4.vip ‏3006 KB

 

Can you please help me in this

 

Thanks!

Ray.Abram
Member
Member
on

I am trying to use this to talk to the  Nordic BLE UART service

 

Which has these Characteristics

RX Characteristic (UUID: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E)
The peer can send data to the device by writing to the RX Characteristic of the service. ATT Write Request or ATT Write Command can be used. The received data is sent on the UART interface.

TX Characteristic (UUID: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E)
If the peer has enabled notifications for the TX Characteristic, the application can send data to the peer as notifications. The application will transmit all data received over UART as notifications.

 

When I try to write to Characteristic 6E400002-B5A3-F393-E0A9-E50E24DCCA9E nothing happens

 

 

When I try to write to Characteristic 2A00 with value 0         using  Write BLE Channel u8.vi     it works fine

When I try to write to Characteristic 6E400002-B5A3-F393-E0A9-E50E24DCCA9E with value 0         using  Write BLE Channel u8.vi     labview returns error 5126

 

Is there a limitation on the string size of the Characteristic ????     If so, is it possible to get an updated NI Bluetooth LE Driver.exe?? or maybe the source code for the NI Bluetooth LE Driver.exe

 

Here is the result for the BLE device when I use Microsoft's Bluetooth LE Explorer

 

RayAbram_1-1645413927982.png

 

 

 

 

 

marcraggi
Member
Member
on

 

Hi,

 

I'm trying to do the same thing, and I'm having exactly the same problem.

I have tried 3 BLE toolkits, none work properly.

 

The best toolkits I've tried is this one because sometimes depending on how I connect my device I get an answer.

https://forums.ni.com/t5/Community-Documents/LabVIEW-BLE-Bluetooth-Low-Energy-toolkit/ta-p/3538612

 

With this toolkit I can send a message but never get the response

https://github.com/prabubharathi85/LabVIEW-BLE-Driver

 

And the last one has no doc or example, and it's really hard to understand how it works but you can find some détails on this forum

https://forums.ni.com/t5/NI-Labs-Discussions/LabVIEW-Bluetooth-Low-Energy-Support-Discussion/td-p/34...

 

If someone has a standard code like "serial bluetooth app" on android