Help to Write Program: Scan Tube Barcode and Transfer to Eppendorf (Hamilton Star)

Program Description for Hamilton Star:

  1. The Hamilton Auto Load will scan the barcode of a 15 mL tube.
  2. The Hamilton Auto Load will then scan 1.5 mL Eppendorf tubes, where each barcode is duplicated (two Eppendorf tubes have the same barcode).
  3. The barcode on the Eppendorf tubes should match the barcode on the 15 mL tube.
  4. The program will identify the matching barcodes and automatically transfer liquid from the 15 mL tube to the two corresponding Eppendorf tubes.

Have you tried writing this yourself? What have you got so far?

Yes, I tried,
but I have no idea how to scan a barcode and match it between the tube and the Eppendorf, then proceed with the transfer.
I understand how to perform a simple transfer by entering the sample number through the UI and transferring from the tube to the Eppendof tube during sequencing.

here’s how i would do it:
-store scanned 10 mL tubes into an array
-store scanned 1.5 mL tubes into an array
-create 2 new sequence (_asp and _disp)
loop through 1.5 mL and compare with 10mL tube array. If it matches, add those sequences

Can send example how do it?