Sharing tabs and devices
Lab members share the user tabs, devices and scripts they build for their rigs through the Luminos exchange. Each package carries a preview and a description, the rig and hardware it was designed for, and everything it needs to run: the Luminos version, MATLAB products, Luminos devices on the rig, and frontend and Python packages.
The exchange is currently limited to members of the lab. Sign in through your institution with CILogon. If you are not on the member list yet, the exchange shows the details to send to its administrator.
Open the exchange (opens in a new tab)
What a package holds
A package is a ZIP archive with a luminos-package.json manifest and the files of a user tab (src/User_Interface/frontend/src/userTabs/<Tab>.tsx and its folder), a user device (src/Devices/User_Devices/<Device>/), both as a pair, or a user script. Paths are relative to the Luminos checkout, and the manifest lists each file with its SHA-256.
Publish a package
-
Package it in MATLAB from your Luminos checkout. The command finds the device's paired tab and records the Luminos version, the MATLAB products the code calls and the rigs your user configuration uses it on.
Package_User_Extension(device="Live_ALI", version="1.0.0")Use
tab=orscript=for a tab or script on its own. -
On the exchange, choose Publish and upload the archive.
-
Describe what it does, list the hardware it was tested with, add a screenshot and submit it. An administrator reviews the exact archive before other members can download it.
To publish a new version, package it again with a higher version number.
Install a package
-
Download the package from the exchange.
-
Install it in MATLAB from your Luminos checkout.
Install_User_Package("live-ali-1.0.0.zip")The command checks every file, the Luminos version and the MATLAB products before writing anything. It leaves identical files alone and stops at files you changed, unless you pass
overwrite=true. -
Follow the steps it prints: add the device to a rig in your user configuration, add the tab to that rig's tabs, and rebuild the interface so the tab appears.
Some packages also rely on code outside these folders, such as relay modules. Their requirements say so.