Connect your instruments

Analyzer setup — step by step

Install the bridge agent, pair it, and get your first result flowing — command by command.


This is the hands-on guide to connecting an analyzer. Follow it in order on the lab PC and you'll go from nothing installed to a live result on screen in about 15 minutes. No technical background needed — every command you have to type is written out exactly.

What you need before starting

  • A Windows PC near the analyzer, switched on all day (the same PC your current software runs on is fine — nothing about your existing setup is touched).
  • The analyzer connected to the same network as that PC, or by serial cable for older RS-232 machines.
  • A Labgen login with access to the Machine Interfacing screen.
  • Access to the analyzer's host / LIS output settings — usually in its service or settings menu. If your service engineer normally handles this, have them on call for step 5.

Step 1 — Add the device in Labgen

  1. 1In Labgen, open Machine Interfacing from the dashboard.
  2. 2Click Add Device.
  3. 3Pick your analyzer's vendor and model from the list (or choose Other / manual and type it in), give it a name like "Main lab XN-350", and save.

The device now appears with a four-step setup panel: download, pair, network settings and test. The rest of this guide walks through them in detail; step 3 of the panel (Network settings) covers steps 4 and 5 below.

Step 2 — Install the bridge agent on the lab PC

  1. 1On the lab PC (not your own laptop), log in to Labgen, open your device's setup panel, and click Download for Windows.
  2. 2Run the downloaded labsoft-bridge-agent-setup.exe and click through the installer.
  3. 3If Windows asks for permission or shows a firewall prompt, choose Allow — the agent needs to receive data from the analyzer over the local network.
  4. 4On the installer's last screen, leave "Pair this analyzer with Labgen now" ticked — it opens the pairing window for the next step.

The installer puts the agent in C:\Program Files\LabSoft Bridge Agent and registers it as a Windows service called "LabSoft Bridge Agent". A service starts by itself whenever the PC boots and keeps running in the background — nobody has to remember to open a program in the morning.

Step 3 — Pair the agent with your lab

Pairing links the agent on the lab PC to this exact device in your Labgen account, using a one-time code — no passwords or keys to copy around.

  1. 1In Labgen, on the device's setup panel, click Generate pairing code. A 6-digit code appears.
  2. 2On the lab PC, open LabGen Bridge — the installer leaves it in the Start Menu, and it opens by itself when the install finishes.
  3. 3Type the six digits into the box and press Connect.

The same steps, on the PC

LabGen Bridge has a How to set up panel at the top (bridge agent 2.11.0 or later). It opens by itself until the PC is paired and walks through pairing, which IP goes where for each kind of analyzer, and sending sample data to test, so whoever is at the lab PC doesn't need this page open.

That's the whole step. The page turns green and says Sending results to your lab's name. Check that it is the right lab: results go to the account the code was generated in. If it says a demo account or another lab, press Disconnect and pair again with a code from the right account. There is no address to enter — there is one for every lab, and the agent already knows it. There is nothing to restart either: the agent picks the pairing up straight away.

Code expired?

A pairing code lasts 15 minutes. If yours has expired the page says so — click Regenerate in Labgen and type the new one. Nothing is lost, and you can try as many times as you need.

Step 4 — Find the lab PC's address

The analyzer needs to know where to send results: the lab PC's IP address. From bridge agent 2.11.0, LabGen Bridge shows it for you: open How to set up at the top of the window and it is the large number under This PC's address, with the ports beside it. Each analyzer's card under Analyzers on this PC repeats it too. On an older agent, open Command Prompt on the lab PC and run:

bat
ipconfig

Look for IPv4 Address — something like 192.168.1.50. Write it down for the next step.

Keep the address stable

Ask whoever manages your network router to reserve this PC's IP address (a "static" or "DHCP reserved" address). Otherwise the address can change after a power cut and the analyzer would be sending results to nowhere.

Step 5 — Point the analyzer at the PC

This is the only step that touches the analyzer, and the only one that changes where results go — everything before it was preparation. Open the analyzer's host / LIS communication settings (usually under Setup, and often only with the administrator or service login) and look at what it asks for:

  • It asks for a server / host / LIS IP: the analyzer connects to the PC. Fill in the table below.
  • **It only asks for a local port, or offers a *server* / *listen* mode:** the analyzer waits for the PC. Skip the table and follow *Analyzers that wait to be connected* further down.

For an analyzer that connects to the PC, set:

Setting on the analyzerValue
Host / LIS IP addressThe lab PC's IPv4 address from step 4
Port — ASTM instruments (most Sysmex, Mindray BC-3000 / BC-5000 / BC-6800, Horiba)5556
Port — HL7 instruments (Mindray BC-700 series, Beckman DxH, Roche cobas, and similar)5555
Older serial (RS-232) machinesConnect the serial cable to the PC instead — see below
Protocol / modeASTM E1394 or HL7 v2.x, matching the port

Not sure which protocol your machine speaks? The model list when you added the device already told Labgen — the setup panel shows the right port for your analyzer. When in doubt, your analyzer's service engineer will know it immediately.

Serial (RS-232) machines

The oldest analyzers connect with a serial cable instead of the network. Plug the cable into the PC — using a USB-to-serial adapter if the PC has no 9-pin socket — then open LabGen Bridge from the Start Menu.

  1. 1Under Analyzers on this PC, choose Cable (COM port) for the analyzer. The list shows every port on the PC, with the same names Windows shows in Device Manager — usually something like "USB Serial Port (COM3)". Two analyzers can't share one port.
  2. 2Pick the baud rate the analyzer's own settings menu shows. 9600 is the usual one, and it has to match: the wrong rate produces bytes that look like nonsense rather than no data at all.
  3. 3Click Save.

It takes effect immediately and is remembered, so a restart or an upgrade doesn't undo it. If the port can't be opened — something else is using it, or the adapter was unplugged — the page says so instead of failing quietly.

Not sure which port?

Pick one and run a sample. If nothing appears, come back and try the next. The list only shows ports this PC actually has, so there are rarely more than two or three to try.

Analyzers that wait to be connected

Most analyzers send results to the PC on their own. A few — some Mindray BC and BS models among them — are set to server or listen mode instead: they open a port and wait for the computer to connect. Pointing them at port 5555 or 5556 does nothing, because they never dial out.

  1. 1Find the analyzer's own IP address and the port it listens on, in its communication or LIS settings.
  2. 2On the lab PC, open LabGen Bridge and find the analyzer under Analyzers on this PC.
  3. 3Choose This PC connects to it, enter the analyzer's IP and port, then click Save.

The agent connects to the analyzer straight away, reconnects by itself if the analyzer is switched off overnight, and remembers the setting across restarts and upgrades. Needs bridge agent 2.8.0 or later, which installs itself automatically.

Don't type the analyzer's port into the tester

The port box at the top of LabGen Bridge, and the one on the Diagnostics page in Labgen, make the PC listen on that port. For an analyzer that is also listening, both sides wait and nothing arrives — choose This PC connects to it for the analyzer instead.

Step 6 — Test the connection

  1. 1In Labgen, on the device's setup panel, click Start test.
  2. 2On the analyzer, send one set of sample data: run a QC control or a spare sample, or open the analyzer's results list, select a result it already has and press Transmit / Send to LIS / Host output (the name varies by model). Re-sending needs no new tube.
  3. 3Watch Labgen: the moment the result arrives, the panel turns green and shows the test name and how many parameters came through.

Testing doesn't touch patient reports

A QC, or a sample whose barcode isn't registered in Labgen, still turns the test green. It files into no one's report and waits in the Unmatched list (open it from Data Logger). To watch a result land in a report, register a test patient first and use the barcode Labgen prints.

That green confirmation proves the whole chain — analyzer → agent → cloud → your screen — is working. The device now shows as Online in Machine Interfacing, with a "last seen" time that updates as results flow.

You're done

From now on, every sample the analyzer runs lands in the matching patient's report automatically, keyed by the tube's barcode. Print barcodes from Labgen — or scan your own pre-printed stickers into the entry (see Specimen barcodes & scanners) — stick them on the tubes, and results file themselves.

When nothing arrives: the connection tester

A test that never turns green leaves three very different problems looking identical: another program is holding the port, the analyzer is pointed somewhere else, or the data is arriving but in a format we can't read. The connection tester tells them apart by showing the raw data exactly as the machine sends it — including data nothing can parse, which is the case you most need to see. Full detail is in the Connection tester guide; the short version follows.

  1. 1Open Machine Interfacing → Diagnostics in Labgen.
  2. 2Pick the analyzer, check the port, and click Start listening.
  3. 3Run one sample. The raw data appears on the left and the values it understood on the right.

Nothing to install or configure — the tester ships with the agent — and nobody has to be at the lab PC. Nothing it shows is stored anywhere: it is a live view, not a record.

What the tester showsWhat it means
"Port is already in use"Another program owns that port and is receiving your analyzer's data instead of Labgen. Close it — a vendor tool or an older tester is the usual culprit — and start again.
Nothing at all after running a sampleThe analyzer isn't reaching this PC. Wrong IP or port on the machine, a firewall in between, or the analyzer is waiting to be connected (see *Analyzers that wait to be connected*).
Raw data appears, values on the right tooEverything works. If Labgen still shows nothing, the problem is downstream — check the Unmatched list.
Raw data appears but "No parser recognised this message"The cable and port are right and the machine is talking — we just can't read its format yet. Send that raw text to support; it's exactly what's needed to add the machine.

Day-to-day: how to know it's healthy

  • Online / offline badge — Machine Interfacing shows each device's status and when it last sent data. The agent checks in every ten seconds whether or not samples are running, so a device reads Online because the link is alive, not because it happened to send a result recently. An agent that stops is shown offline within about a minute and a half. A PC that was disconnected shows Disconnected instead.
  • Internet drops are safe — the agent stores results on the lab PC and forwards them automatically when the connection returns. Nothing is lost.
  • Updates are automatic — the agent upgrades itself when a new version is published, and the service restarts on its own. Nothing to reinstall. (One exception: agents installed before version 2.5.0 need that one installed by hand from the Download for Windows button — a bug in the older updater stopped it running the installer unattended. Every update after that is automatic again.)
  • Unmatched results — if a result arrives whose barcode doesn't match any patient (a hand-labelled tube, for example), it waits in the Unmatched list (open it from Data Logger), where a technician can assign it to the right patient in two clicks.

Troubleshooting

ProblemWhat to check
Pairing fails with "Could not reach"The PC can't reach Labgen over the internet. Open labgen.online in the PC's browser. If it doesn't load there, fix the internet first, or ask whoever runs your network to allow labgen.online.
Pairing fails with an error about the codeThe code expired (15 minutes) or was mistyped. Click Regenerate in Labgen and try again.
The header reads <analyzer> · Not receiving in red, or its card on Machine Interfacing says Online · Not receivingThe lab PC is checking in but says results cannot arrive. The card gives the reason: usually another program holding port 5555 / 5556 (most often a LabGen Bridge connection test left running), the agent not listening, or, for an analyzer the PC connects to, the analyzer being out of reach. End the test or close the other program; agent 2.11.1 takes the port back by itself, older agents need the LabSoft Bridge Agent service restarted.
Labgen shows the instrument online but no results arrive, and the PC's LabGen Bridge window shows results arrivingA connection test is running in LabGen Bridge. While it runs, results are only shown in that window and are not sent to Labgen. Press End test (older versions: Stop) and close the window, then re-send the missed results from the analyzer. From bridge agent 2.11.1 a test asks first, shows a red *TEST MODE* banner, and ends by itself after 5 minutes.
Device stays offline after setupOpen LabGen Bridge on the lab PC. If it says this PC isn't connected, pair it again with a fresh code. If it says nothing at all, the service isn't running: open services.msc, find LabSoft Bridge Agent, and right-click → Start.
It was working, now it says offlineUsually the device was paired again somewhere else, which retires the old link. Open LabGen Bridge and pair this PC with a new code — no restart needed.
The device shows DisconnectedSomeone pressed Disconnect, on the PC or in Labgen, and Labgen now refuses that PC's results. To connect it again, generate a new pairing code in the right lab's account and type it into LabGen Bridge.
Test result never arrivesWrong IP or port on the analyzer (re-check step 5), or Windows Firewall blocked the agent. To open the port, run Command Prompt as Administrator and enter netsh advfirewall firewall add rule name="LabGen Bridge HL7" dir=in action=allow protocol=TCP localport=5555 (use 5556 for ASTM).
Analyzer says *check network connection* when sending, and the PC shows no connection from itThe analyzer is waiting to be connected. On the PC, netstat -ano | findstr :5555 shows only LISTENING. Find the port it listens on in its LIS settings, then in LabGen Bridge choose This PC connects to it for that analyzer and enter its IP and that port. If you can't find the settings screen, run the port check below.
Pressing Run connection test (older versions: Start) in LabGen Bridge says *Windows did not allow LabGen Bridge to pause the agent service* (older versions: *OpenService FAILED 5: Access is denied*)The on-PC tester has to pause the agent's service to borrow its port. The current installer lets every user on the PC do that. A PC set up before that change only lets an administrator, until its next agent update. Install the latest version with Download for Windows on the Machine Interfacing screen. Until then, reopen LabGen Bridge with right-click → Run as administrator, or use Machine Interfacing → Diagnostics in Labgen, which needs neither.
Results arrive but land in UnmatchedThe barcode on the tube isn't registered to that patient. Use Labgen-printed barcodes — or scan the pre-printed sticker into the entry first (Specimen Barcodes → Scan) — and assign the waiting result to the right patient from the Unmatched list, which opens from Data Logger.
A result arrived but one field is still emptyLabgen couldn't be certain which field that value belongs to, so it left it blank rather than risk the wrong row — usually a test with several look-alike fields, like a sugar profile with FBS, PPBS and RBS. Type the value in, and have an administrator set the code once under Lab Config → Analyzer Mapping so later runs fill it automatically. The same screen lists every code your analyzer has sent that Labgen couldn't place.
Serial machine sends nothingWrong COM port or baud rate. Open LabGen Bridge, pick another port for that analyzer under Cable (COM port), and check the baud rate against the analyzer's own settings menu — a mismatch gives you nonsense bytes rather than silence.

Finding the port an analyzer listens on

If the analyzer's settings are locked and you suspect it is waiting to be connected, check from the lab PC which common LIS ports it has open. Replace the IP with your analyzer's:

bat
powershell -Command "foreach ($p in 2575,4000,5000,5100,5555,5600,6000,9100,10001) { $c = New-Object Net.Sockets.TcpClient; if ($c.ConnectAsync('192.168.1.120',$p).Wait(800)) { 'OPEN: ' + $p }; $c.Close() }"

A line like OPEN: 5100 means the analyzer is listening there, so choose This PC connects to it for that analyzer in LabGen Bridge and enter that IP and port. No output means it doesn't listen on any of those ports, and it should be set to connect to the PC instead.

Two-way mode (order download)

Modern setups can go beyond receiving results. If your analyzer supports host query, it asks Labgen what to run whenever it scans a tube — and Labgen answers with the patient's UHID, name, age and sex, the tests ordered for that machine, and STAT for urgent visits. The analyzer then runs exactly what was ordered instead of a default panel. This works for HL7 analyzers (bridge agent 2.12.0 or later) and ASTM analyzers.

  • 1. Check the switch. Lab Config → Analyzer Mapping → Two-way must be on. It is on for every lab unless someone turned it off.
  • 2. Add order codes. On the same screen, under Order codes, pick each test the machine runs, the machine, and that machine's own codes for it (for example Lipid Profile → TC, TG, HDL). Click the codes your machine has already sent to add them. A test with no codes for a machine is never sent to it.
  • 3. Turn on host query on the analyzer. In its LIS or host settings, switch on *host query*, *LIS query* or *bidirectional*. This is model-specific, so your service engineer may need to do it.
  • 4. Scan a registered tube. Check Last questions from your analyzers on the same screen: it shows the tube and what the analyzer was told.

Safe to leave on

If your analyzer doesn't use host query, nothing changes — it never asks, and results-only operation continues untouched. If it asks about a tube Labgen has no order for, or two-way is off, Labgen answers "no order" and the analyzer runs its default panel.

Advanced: running from source

Teams comfortable with a terminal can run the agent without the installer — useful on non-Windows PCs or for testing. Copy the bridge-agent/ folder to the machine, then:

bash
npm install
node tester.js  # LabGen Bridge: type the 6-digit pairing code
npm start

The agent prints a startup banner showing its ports, pairing status, and queue — handy for watching results arrive live while you set the analyzer up.


Still stuck? The Machine interfacing overview explains how the pieces fit together, and your account team is happy to join a call while your service engineer configures the analyzer.