UniteLabs
Reference

BioNex HiG Centrifuge

Connect a BioNex HiG3 or HiG4 centrifuge through GroundControl, home the rotor, and run a first spin from Python.

This page covers connector installation, configuration, and a first test for the BioNex HiG3 and HiG4 centrifuges. The BioNex manuals cover instrument installation, load limits, maintenance, and safety.

The HiG Centrifuge connector communicates with the centrifuge through the BioNex HiG Integration DLL.

This page applies to unitelabs-hig-centrifuge 0.2.2 or later.

What you need

ItemDetail
InstrumentHiG3 or HiG4, connected to the PC
Vendor softwareBioNex HiG Integration software, installed and configured. For a new unit, also run First Time Setup in the manufacturer's software
Device IDThe device_id of your HiG's USB-CAN adapter (see configuration)
E-stopThe E-stop cable that ships with the HiG (P/N 11-00929), or your cell's interlock, plugged in. Without it the HiG won't initialize
ConnectorHiG Centrifuge from the UniteLabs registry
MachineA Windows PC running GroundControl
AccessA tenant and the SDK installed in a Python environment

Models

The connector supports the HiG3 and the HiG4 centrifuges with the same interface. The HiG3 isn't cooled and the HiG4 has Peltier cooling to ambient temperature.

Install and configure the connector

  1. In GroundControl, add a connector and pick HiG Centrifuge (how to add a connector). To run it without GroundControl, use the executable instead.
  2. Configuration:
    FieldValue
    device_idThe DEVNr. column in BioNex's USB-CANmodul Control Application. Defaults to 0.
    simulationfalse for real hardware, true for BioNex's built-in simulation
  3. Start the connector. The connector initializes the centrifuge on startup. The default service name is HiGCentrifuge. GroundControl then shows the modules DeviceController, DoorController, CentrifugeController, TemperatureProvider, and SimulationController.

First successful test

Connect, check the centrifuge is ready, and home the rotor. Run it in a notebook or an async script with the SDK authenticated (Connect to Platform).

home() moves the rotor and the shield door. Keep robot arms and hands clear of the instrument before you run it.
from unitelabs.sdk import AsyncApiClient

client = AsyncApiClient()
# "HiGCentrifuge" is the service name shown in GroundControl
hig = await client.get_service_by_name(name="HiGCentrifuge")

# Make sure the centrifuge is connected and the emergency stop is released.
connected = await hig.device_controller.get_is_connected()
assert connected, "HiG is not connected"

estop = await hig.centrifuge_controller.get_is_estop()
assert not estop, "Emergency stop is engaged"

# Home the rotor. This moves the rotor and the shield door.
await hig.centrifuge_controller.home()

Expected: none of the assertions fire, and home() returns after about a minute with the rotor homed.

Home the rotor after every connector start. Restarting the connector doesn't reset the centrifuge's homed state, so subscribe_is_homed() can still report True from an earlier home, even if the rotor has been moved by hand since.

Known quirks and errors

You seeIt meansDo this
The connector can't connect to the deviceA BioNex or HiG process holds the USB-CAN portClose every BioNex and HiG process in Task Manager, then start the connector
The connector stops on start with Failed to open multi-threaded connection...device_id doesn't match the DEVNr. of your HiG's USB-CAN adapterSet device_id to the DEVNr. shown in USB-CANmodul Control, then restart the connector
The connector fails to start with Cannot find '...HiGIntegration.dll'The connector loads HiGIntegration.dll from C:\Program Files (x86)\BioNex\HiG\Install the BioNex HiG Integration software to its default location
home() fails with a shield timeout after the HiG Integration Test App was openThe Test App initialized the centrifuge again while the connector was runningClose the Test App, then restart the connector
A new HiG doesn't home or moveThe shield has never been homed and the shipping configuration is still activeRun First Time Setup in the BioNex software, then start the connector
home() or another command shows no progress at firstSome commands take a few seconds before they report progressAwait the command, or watch subscribe_is_homing() and subscribe_is_homed()
Motion commands raise an emergency-stop errorget_is_estop() or get_is_estop_cached() returns trueClear the E-stop as described in the BioNex manual, then check that get_is_estop() returns false

If the connector still can't connect after you close those processes, run it as administrator or restart the PC.

Use home() in workflows. The home_shield() command is deprecated in BioNex HiG Integration software 2.0 or later and always reports success without doing anything.

More snippets

The snippets reuse hig from the first test.

Balance the buckets and stay within the load limits in the BioNex manual before every spin. The connector has no check for bucket contents or balance.

Load, spin, and unload: load a plate into each bucket, close the shield, spin for 30 s at 1,500 × g, and unload both buckets.

await hig.door_controller.open(bucket_index=1)
# Load the plate into bucket 1 here.
await hig.door_controller.open(bucket_index=2)
# Load the plate into bucket 2 here.

await hig.door_controller.close()

await hig.centrifuge_controller.start(
    speed=1500.0,  # × g
    acceleration_percentage=50.0,
    deceleration_percentage=50.0,
    duration=30.0,  # seconds
)

await hig.door_controller.open(bucket_index=1)
# Remove the plate from bucket 1 here.
await hig.door_controller.open(bucket_index=2)
# Remove the plate from bucket 2 here.

Awaiting start returns after the whole cycle: acceleration, the hold at target g-force, and deceleration. If the shield is open, the centrifuge closes it before the spin starts. The shield opens when the spin ends.

Spin arguments: pass every value as a float, for example 1500.0. An int raises a TypeError.

ArgumentRangeMeaning
speed250–4,000Target force in × g, measured at the center of the plate
acceleration_percentage1–100Share of the maximum acceleration to use
deceleration_percentage1–100Share of the maximum deceleration to use
durationin secondsTime to hold at the target force, not counting spin-up and spin-down

Estimate the cycle time: get_estimated_cycle_time takes the same four arguments as start and returns the cycle time in seconds without spinning.

Abort a spin: call await hig.centrifuge_controller.stop() from another task or notebook cell. The rotor keeps turning while it decelerates. Wait until subscribe_is_spinning() reports False before you open the shield.

Read temperatures: temperature_provider reports the controller, shield, and chiller temperatures, for example with subscribe_controller_temperature(). On a HiG3, the shield and chiller temperatures read 0.0 because it has no chiller or chamber sensors. Only the controller temperature is real.

Connector reference

Browse the connected instrument's modules and actions in GroundControl, or list them in Python with print(hig.modules.keys()).

Vendor documentation

Installation of the HiG Integration software, rotor loading, and E-stop wiring are in BioNex's HiG manuals. Maximum force, payload, balance tolerance, and cooling are in the BioNex HiG specification sheet.

Last updated