Connect your instruments

Machine interfacing (bridge agent)

Connect a lab analyzer so results flow automatically into Labgen.


Machine interfacing connects your analyzer directly to Labgen, so results land in the right patient's report the moment the instrument finishes a run — no retyping, no transcription errors. A small program called the bridge agent runs on the PC next to your analyzer and forwards results securely to the cloud.

It won't disrupt your current setup

Installing and pairing the bridge agent does not affect any existing software on the lab PC. Your current setup keeps running unchanged. The only step that switches the connection is when you deliberately point the analyzer's output to the bridge agent — and that's entirely in your hands.

Supported analyzers

Labgen ships with built-in support for the most common hematology and chemistry analyzers. When you add a device you can pick your model from a list, which fills in the right settings automatically.

VendorModelsProtocol
SysmexXN-series (XN-350, XN-550, XN-1000), XS-series, XQ-320, KX-21ASTM E1394
MindrayBC-3000, BC-5000, BC-6800ASTM E1394
MindrayBC-700, BC-720, BC-760, BC-780HL7 v2.x
Beckman CoulterDxH, AU-seriesHL7 v2.x
Rochecobas c111 / c311 / e411HL7 v2.x
EuroLabEuroLab-200 (chemistry) — add it as Other / manualHL7 v2.x
CPC / EverlifeAS-280 (biochemistry) — add it as Other / manual; give every test its own Code On LISHL7 v2.x
OtherMost instruments speaking ASTM or HL7Manual entry

Don't see your model?

Choose Other / manual when adding the device and enter the vendor, model, and protocol yourself. Most analyzers speak either ASTM E1394 or HL7 v2.x, both of which Labgen understands.

Setup in three steps

Want the full walkthrough?

This page is the overview. For a detailed, command-by-command install guide — including the exact terminal commands, analyzer settings, and troubleshooting — follow the Analyzer setup, step by step guide. If an analyzer is connected but nothing reaches Labgen, the Connection tester shows you what it is actually sending.

Open Machine Interfacing from the dashboard and choose Add Device. Pick your analyzer (or enter it manually) and give it a name. You'll then see a four-step setup panel.

Step 1 — Download the bridge agent

On the PC connected to your analyzer, download the Windows installer and run it. It installs the bridge agent as a background Windows service, so it starts automatically with the PC and keeps running quietly.

Step 2 — Pair this device

Back in Labgen, click Generate pairing code. You'll get a 6-digit code. On the lab PC, open LabGen Bridge from the Start Menu and type the six digits in — the agent links itself to this device with its own secure token. No address to enter, no secrets to copy by hand, nothing to restart.

The code decides which lab gets the results

A PC sends its results to the Labgen account the pairing code was generated in. LabGen Bridge on the PC shows it in large type: Sending results to your lab's name. If it shows a demo account, or another lab, press Disconnect and pair again with a code from the right account.

Step 3 — Network settings

Two addresses are involved: the lab PC's IP (the Windows PC running LabGen Bridge) and the analyzer's own IP. The panel has a switch for the three ways an analyzer connects — Analyzer sends results, Analyzer waits to be connected, Serial cable — and for each one shows which address you need, how to find it, and where to type it.

Connect the analyzer and the PC

Most analyzers send results on their own: on the analyzer, set the LIS / host address to this PC's IP on port 5556 for ASTM instruments or 5555 for HL7 instruments. A few analyzers wait for the PC to connect to them instead; for those, choose This PC connects to it for that analyzer under Analyzers on this PC in LabGen Bridge and enter its IP and port. Older RS-232 machines use a serial cable. This is the step that switches results over to Labgen, so do it when you're ready. See *Which side connects* below.

Step 4 — Test the connection

With the agent running, click Start test in Labgen and send sample data from the analyzer: run a QC control or a spare sample, or re-send a result already on the analyzer from its results list (Transmit / Send to LIS). The moment a result arrives, Labgen confirms it on screen with the test name and parameter count — proof the whole chain works end to end.

Which side connects

A network link needs one side to connect and the other to wait. Analyzers come set up either way, and the agent handles both. The only question is which one your machine is. Its LIS or communication settings screen tells you.

The analyzer's LIS screen asks for…It is…What you do
A server / host / LIS IP and a portA client: it connects to the PC and sends results itself. Most analyzers work this way.Enter the lab PC's IP and port 5555 (HL7) or 5556 (ASTM) on the analyzer. Nothing to set on the PC.
Only a local port, or a mode called *server* or *listen*A server: it opens a port and waits for the PC to connect.On the lab PC, open LabGen Bridge, find the analyzer under Analyzers on this PC, choose This PC connects to it, enter the analyzer's IP and its port, and click Save. Needs bridge agent 2.10.0 or later for this layout (2.8.0 had one such analyzer per PC).
A 9-pin serial port, no networkSerial (RS-232)Connect the cable, then in LabGen Bridge choose Cable (COM port) for that analyzer and pick the port.

Signs that both sides are waiting

The agent listens and the analyzer listens, so nobody connects. You'll see the analyzer show *check network connection* when you send a result, and netstat -ano | findstr :5555 on the PC show only LISTENING, with no ESTABLISHED line from the analyzer's IP. The fix is to choose *This PC connects to it* for that analyzer in LabGen Bridge. Typing the analyzer's port into a tester's port box doesn't help, because that makes the PC listen on that port too.

How results reach a patient

Each result carries the sample ID (barcode) the analyzer was given. Labgen matches that to the patient's ordered test, so values drop into the correct report automatically. The barcode can be one Labgen printed or a pre-printed sticker you scanned in — see Specimen barcodes & scanners.

How each value finds its field

Analyzers name things their own way. A Sysmex sends HGB, a EuroLab sends GLUCOSE, while your report calls those fields HB and FBS. Labgen translates every name into the field on the test you ordered, so the value lands in the right row without anyone retyping it.

  • Blood counts. Sysmex and Mindray results go straight into your CBC fields, however your CBC spells them. HGB fills Hemoglobin (HGB), Haemoglobin or HB; WBC fills Total WBC Count or WBC; HCT fills Hematocrit (HCT) or PCV; and so on.
  • Counts and percentages stay apart. Every differential arrives twice, as a percentage and as an absolute count. Percentages fill the differential fields (Neutrophils, Lymphocytes, …); counts fill the absolute-count fields (Absolute Neutrophils, …). Labgen reads the analyzer's # or %, or its unit, to tell them apart, so a count can never be printed as a percentage.
  • Chemistry follows the order. One analyte can have different field names in different tests. Total bilirubin is one field in a Bilirubin test and another in an LFT, and glucose is FBS, PPBS or RBS depending on what was ordered. Labgen reads the name against the test on that sample, so GLUCOSE from a fasting-sugar order lands in FBS.
  • Blood values never go into urine fields. A serum glucose is never filed under urine sugar, even on a test that lists both.
  • The unit has to agree. When a value reaches a field through a different name, its unit must measure the same kind of thing as the field's. A glucose in mmol/L still fills FBS printed in mg/dL, because both are concentrations.
  • Look-alike names are checked. PCT is plateletcrit in a CBC and procalcitonin in a PCT test. Labgen reads which one the analyzer sent from its unit (% is plateletcrit, ng/mL is procalcitonin) and which one your field holds from its name, then its unit, then its test: a PCT field beside a platelet count is plateletcrit, and one anywhere else is procalcitonin. So a CBC's plateletcrit never fills a procalcitonin field, even one with no unit. A unit sign also counts as part of a code's name: a BC-700's InR‰ (infected red cells per thousand) never fills a PT's INR. To print it, add a field for it and map the code under Lab Config → Analyzer Mapping.
  • One run fills every format of the panel. When several tests share a tube, each value fills every test that has a field for it, provided the run fills at least half of that test's fields. Order CBC, CBC (AB) and CBC 18 PARA together and the one EDTA run fills all three, each in its own fields; an HB on its own beside a CBC is filled too. A test the run only touches with one or two names is left alone: a CBC's RBC never fills the RBC field of a stool routine on the same tube. A plateletcrit sent as PCT never fills a procalcitonin test either, because the units don't agree. Tests that measure different things still share a run: an LFT and an RFT on one serum tube both fill. Pull from Machine follows the same rule, and one Pull on any of the tests fills every test on that tube in the Result Entry Station. The message says which other tests were filled.
  • The right tube at registration. If a test in your catalogue has no sample type, Labgen picks one from its name at registration instead of using serum: a CBC, HB, ESR or HbA1c goes on the EDTA tube, a stool test on the stool container and a urine test on the urine container. To choose it yourself, set the test's sample type in your catalogue.

When Labgen isn't sure, it leaves the field blank

A value in the wrong field is far worse than an empty one, so Labgen never guesses. If a test has more than one field the value could belong to — a combined sugar profile with FBS, PPBS and RBS, for example — that value is left out and the field stays empty for you to fill in. To decide it once for good, a lab administrator opens Lab Config → Analyzer Mapping and picks the code the analyzer sends and the field it belongs to. From then on, every run follows your choice.

How values print

  • Counts print in your unit. Many analyzers report cell counts in ×10⁹/L: a Mindray BC-700 sends WBC as 7.21, while your CBC prints 7210 /cumm. Labgen moves the decimal point to match your report (7.21 becomes 7210, a platelet count of 251 becomes 251000), with nothing rounded. Result Entry and the authorization screen show from 7.21 10*9/L beside the field, so you can check it against the analyzer's screen. If you change the value yourself, the note goes away.
  • Only cell counts are converted. Any other unit difference, such as mg/L against mg/dL, is never changed. Pull from Machine marks that field with a unit warning for you to check before saving. A Sysmex PDW, for example, is a width in fL. If your CBC prints PDW in %, the Sysmex value prints as sent, in fL, with no reference range.
  • Ranges and flags as if typed. Each value gets the reference range for the patient's age and gender and a High or Low flag, exactly as if someone had typed it in. Where your test has no range for a field, the analyzer's own abnormal flag is kept.
  • Only your test's fields are printed. Analyzers send more than a report shows: a BC-700 also sends P-LCR, PLT-I, image flags, run mode and more. These are kept with the raw result but no longer printed under *Other parameters*. To print one, add a field for it to your test and pick the code under Lab Config → Analyzer Mapping.

A matched result moves that test — and only that test — to Pending on the Report Status queue, where it waits for a pathologist's signature. Nobody has to move it there by hand, and it never overtakes a test that is still on the bench. A result whose barcode matches nothing waits in the Unmatched list instead (open it from Data Logger). You can also match it from the test itself: at Result Entry, or in Create Report on New Patient Registration, click Match result next to Pull on the test. The list shows the analyzer results that matched no sample, by sample ID, machine and time, with those that fit the test first. Beside the sample ID it shows the patient name the analyzer itself sent, when it sent one: many analyzers send only a run number as the sample ID (Sample 2 · pradeep), so the name is how you tell which tube it was. Pick one and its values are pulled into the form, the same as Pull; nothing is saved until you save. Or assign it from the Unmatched list in two clicks: click the assign box to see the lab's 10 latest registrations, one line per tube with the patient's name, lab number and tests, or type a patient name, lab number, UHID or barcode to search. Pick the line for the right tube and its barcode goes in the box; then press Link or Enter. You can also type the tube's full barcode as printed, sample type included (for example LAB-0002-WHOLEBLOOD(EDTA)). Only patients registered in the lab you are signed into are found. An assigned result prints exactly like one that matched on its own. If the test already has values, they are updated rather than repeated, and each value replaced is recorded in the Data Logger. Once a test is authorized, printed, dispatched or released, analyzer values no longer change it, whether the analyzer sends them again or someone assigns them from Unmatched. A run that finds only such tests waits in Unmatched instead. To change an authorized report, amend it in Result Entry, with a reason.

A grey result is the wrong fit for this test

A grey row in Match result is blocked: none of that analyzer run's values fills a field of the test whose card you opened. This prevents a CBC run being filed into ESR, blood sugar or another wrong test. Open Match result on the test the machine actually ran. If you are already on that test and every expected run is grey, check Lab Config → Analyzer Mapping for an unmapped analyzer code.

Check the mapping before the first patient

When you connect an analyzer, run a QC or control sample first. Then open Machine Interfacing → Diagnostics and scroll down to Mapping check. A QC run has no Labgen barcode, so it waits in Unmatched and never prints. That makes it a safe way to see what a patient's report would get.

  • Filled and never filled. Every field of the test is listed, with how many runs filled it and which analyzer code filled it. A field that never fills is either something the analyzer doesn't measure, or a code Labgen doesn't recognise yet.
  • Counts and percentages. An absolute count that landed in a % field, or a percentage in a count field, is marked in red.
  • Units. A count converted into your unit shows both values, for example 6.15 10*3/uL → 6150 /cumm. A unit that disagrees with yours is marked too, such as a PDW in fL on a CBC that prints %. That value prints as sent, with no reference range.
  • Codes that fill no field. These are kept with the run but never printed. Many are extras you don't need, such as IG% or run flags. If one belongs on your report, a lab admin clicks Map and picks the field. If another test in your catalogue would take the code, the list names it, so you don't map creatinine onto an LFT. It only does that when the analyzer's unit matches that field's, because names can collide: a BC-700's InR‰ (infected red cells) is not a PT's INR. A second code for a line that is already filled, such as a BC-700's extra Neu%, is marked as a duplicate.

Runs on a patient's tube are checked against the tests on that tube. QC and unmatched runs are checked against one test: the test this analyzer's patient runs go to, or on a new analyzer the test its runs fill the most fields of. To check another one, for example the RFT on a chemistry analyzer, pick it under Check QC & unmatched runs against. The check only reads, and nothing on your reports changes. Run it again whenever you change a test's fields.

Two-way: the analyzer asks for orders

With two-way on, staff only scan the tube. The analyzer asks Labgen what to run on it and gets back the patient's UHID, name, age and sex, the tests ordered for that machine, and STAT when the visit was billed as urgent. Nothing is typed on the analyzer, a chemistry analyzer runs only the tests that were ordered, and the result comes back under the tube's own barcode. Labgen answers HL7 analyzers (bridge agent 2.12.0 or later) and ASTM analyzers.

  • Turn it on in Labgen. Lab Config → Analyzer Mapping → Two-way is on for every lab unless switched off. When it is off, an analyzer that asks is told there is no order and runs its default panel.
  • Tell Labgen each test's analyzer codes. Under Order codes, pick a test, the machine (or All machines), and the codes that machine runs for it, for example Lipid Profile → TC, TG, HDL. The codes your machine has already sent in results are offered to click. A test is sent to a machine only under codes listed here, so a tube's CBC never goes to the chemistry analyzer.
  • Turn on host query in the analyzer. In the analyzer's LIS or host settings, turn on *host query*, *LIS query* or *bidirectional*. Until then the analyzer never asks, and nothing changes.
  • See what was asked. Last questions from your analyzers lists each tube an analyzer asked about and what it was told: the codes sent, no order, an unknown tube, or two-way off.

Disconnecting a PC

Disconnecting stops a PC sending results to Labgen, without uninstalling anything. Its analyzer settings are kept, so connecting it again is just a new pairing code.

  • On the PC: open LabGen Bridge and press Disconnect on the analyzer under Analyzers on this PC. Any other analyzers on that PC keep sending.
  • From Labgen, for a PC nobody can get to: open the device in Machine Interfacing and press Disconnect. The PC stops within seconds, the next time it checks in.
  • Once disconnected, the agent stops listening to the analyzer as well, as if it were not installed. Results it had not sent yet are not sent, and never go to a lab the PC is connected to later.
  • In Machine Interfacing the device then shows Disconnected, with the date and time, and Labgen accepts nothing from that PC. A PC on an agent older than 2.9.0 keeps trying to send after a Disconnect from Labgen, but every result it sends is refused.
  • To connect it again, generate a new code in the right lab's account and type it into LabGen Bridge.

Staying online & updates

  • If the internet briefly drops, the agent queues results locally and sends them once the connection returns — nothing is lost. The same goes for a moment when Labgen can't accept a result: the agent keeps it and tries again.
  • The agent updates itself automatically when a new version is published, so you don't have to reinstall.
  • The device's online/offline status is shown in Labgen, with the time it was last seen. The agent checks in every ten seconds, so a PC that is switched off or loses its connection shows Offline within about a minute and a half.

Several analyzers on one PC

One bridge agent can serve every analyzer near a PC, and each one is still its own device in Labgen, with its own status, Mapping check and Disconnect. Needs bridge agent 2.10.0 or later, which installs itself automatically.

  1. 1In Machine Interfacing, add each analyzer as its own device and generate a pairing code on it.
  2. 2On the PC, open LabGen Bridge. The first code goes in Connect this PC to Labgen; each further code goes in Add another analyzer.
  3. 3Under Analyzers on this PC, say how each one connects. For an analyzer that sends to the PC, enter its IP address. That is how the agent tells one analyzer's results from another's when they share the PC's ports.
  • Analyzers that send to the PC all use the same ports: 5555 for HL7, 5556 for ASTM. No extra firewall rules are needed.
  • Several analyzers that wait to be connected, or several serial machines, can share one PC too. Each gets its own address or COM port.
  • All analyzers on one PC must belong to one lab. A code generated in a different Labgen account is refused.
  • If an analyzer sends to the PC from an IP that isn't set for any of them, its results are still filed by barcode, so patients are never mixed up. They are shown under the first analyzer, though, and Machine Interfacing → Diagnostics says so for that device, naming the IP to set.