Skip to content

Adding LINX Target Plugins

sharpk edited this page Jul 7, 2022 · 3 revisions

Introduction

The LabVIEW support for programmable targets is implemented using a plug-in architecture. Most boards running Linux on an ARM (v7 or greater) processor should be capable of running LabVIEW. This document details how to enable this plug-in support for a new target.

Overview

Two plugin files need to be installed on the host computer. They are an ini file and a png file.

The target board needs to have the LabVIEW runtime installed, generally in a chroot environment to ensure soft-float parameter passing. The board’s Avahi service needs to respond to _ni._tcp service query with the LINX DevClass and a unique ProdName that matches the value in the ini file.

Details for host computer

[TODO picture] As shown above, board support can be added by putting a folder in the newly created LINXPlugins folder. The suggestion is to use a name the same or similar to the mDNS or Avahi name.

The only file currently expected in that folder location is LINXTarget.ini. The folder can contain other documentation or library files if desired. File contents for the BeagleBone Black (BBB) are shown below with example content.

Sample Contents of BBB\LINXTarget.ini

[LINX] # name shown in wizards and menus NiceName= "BeagleBone BlackNICE"

# name stored in project and used by VI Server UniqueDeviceName= ""BeagleBone BlackUNIQUE"

# icon name .. name to icon stored in icons dir IconName= "BBB.png"

# mdns class name mDNSClassName= "BBB"

# description of the device used by context help Description= "Custom BeagleBone Black description for context help."

# conditional compile directives for this target LINX_DEVICE_FAMILY= "6" LINX_DEVICE_ID= "1"

The plugin should also provide a 16x16 png that is used by the project and creation wizard. These are currently stored in a common location used by all providers.

…\resource\Framework\Providers\Icons

For future versions of LabVIEW, this can be extended to look next to the ini file first, but LV 2020 requires the above location for all png files. If a larger png file is provided, it will be scaled to 16x16. BBB.png shown below. [TODO icon here]

Avahi Details

[TODO Contents from /etc/avahi/services/lvrt.service]

Clone this wiki locally