A driver for controlling the Formulatrix Mantis liquid dispenser through Agilent VWorks automation software.
This project is a .NET-based driver that implements the IWorksDriver COM interface, allowing Agilent VWorks to communicate with and control a Formulatrix Mantis instrument. It works by sending commands to the Mantis WCF service, which is part of the standard Mantis software installation.
The driver exposes the following commands to VWorks:
- Dispense: Executes a dispense operation based on a provided dispense list file (
.dl.txt). - Wash All: Performs a wash cycle on all installed chips.
- Prime All: Performs a prime operation on all installed chips.
- Diagnostic Window: A user interface for manual control, status checking, and debugging.
- Agilent VWorks Automation Control software.
- Formulatrix Mantis software, with the integration service running.
- Microsoft .NET Framework 4.7.2.
- Visual Studio 2017 or later (for building from source).
The driver must be compiled as a 32-bit (x86) assembly to be compatible with VWorks.
- Run Visual Studio as an Administrator. This is required for COM registration.
- Open the
Mantis VWorks Driver.slnsolution file in Visual Studio. - In the Solution Explorer, right-click the Mantis VWorks Driver project and select Properties.
- Go to the Build tab.
- Set the Platform to x86.
- Check the Register for COM interop checkbox. This is crucial for VWorks to recognize the driver and it will generate the necessary Type Library (
.tlb) file. - Build the solution. If you've just changed the COM interop setting, you may need to Clean and then Rebuild the solution.
- The compiled files (
Mantis VWorks Driver.dll,Mantis VWorks Driver.tlb, andMantis VWorks Driver.pdb) will be located inMantis VWorks Driver\bin\x86\Debug\orMantis VWorks Driver\bin\x86\Release\.
- Navigate to your VWorks plugins directory, typically
C:\Program Files (x86)\Agilent Technologies\VWorks\Plugins\. - Copy the following files from the build output directory into the plugins folder:
Mantis VWorks Driver.dllMantis VWorks Driver.tlb
- (Optional) For debugging purposes, also copy
Mantis VWorks Driver.pdb. - Start or restart VWorks. The Mantis device should now be available to add to your device files.
There are two primary ways to test the driver outside of a full VWorks protocol.
VWorks includes a utility for testing drivers.
- Ensure the driver DLL and TLB files are in the VWorks
Pluginsdirectory as described under Installation. - Run
IWorksTest.exefrom the VWorks installation folder (C:\Program Files (x86)\Agilent Technologies\VWorks\). - The "Mantis VWorks Driver" should appear in the list of available plugins. You can use this tool to call methods like
Initialize,GetMetaData, andShowDiagsDialog.
The solution includes a TestRig WPF application project. Running this project will launch the driver's diagnostic window directly. This is very useful for development and for debugging communication with the Mantis service without needing VWorks or IWorksTest.exe.