| Home | Member Area | Links | Events | Publications | Promotions |
LabVIEW drivers - CAT - Liquid Handling CaRo XYZ Autosampler
[LabVIEW vi collection]
[LabVIEW links]
[LabVIEW store]
[programming topics] [drivers] [utilities] [projects] [events] [related topics]
CAT - Liquid Handling CaRo XYZ AutosamplerThe information provided by CAT (8 pages) is a good starting point for creating a vi to control the CaRo XYZ Autosampler. The following text describes the requirements for controlling a single autosampler.
Making the connectionOn the rear of the autosampler there are 5 (or 6) connectors for your RS232 cable to choose from. You should use the DB9 female connector. Furthermore you should use a regular serial cable.All connectors:
Establishing the right protocolRS232 setting CAT CaRo XYZ
Commands and responses are allways followed by a carriage return (ASCII code #OD, \r in LabVIEW). A command consists of the address, the actual command code and a comma separated parameter list. After sending the command the autosampler will give the following responses:
The right addressThe autosampler can be given a base address from 101 upto 255; the default address is 101.The base address can be used to control all axes at the same time. For individual control each axis has a slave address; for the X-axis use the base address - 100 (default is 1), for controlling the Y-axis use the X-axis address + 1 (default is 2) and for controlling the Z-axis use the X-axis address + 2 (default is 3).
The control commandsFrom all 36 commands the following 8 seem to be of interest for day-to-day practice:
The return codeThe return code "OK" indicates the command was received and executed; the respone includes the appropriate list of parameters.The return code "NA" indicates the command cannot be executed for example because move is still in progress; the respone includes the 'actual operation mode' and the 'servo condition'. The other return codes (or error codes) are not followed by parameters:
Testing the systemLabVIEW is not the easiest option for preliminary testing. It's much easier to use a simple DOS-based program (MASTER.EXE) to test the basic control commands. After establishing which commands should be used in what order one can start to create the (sub-)vi's. It will be proven that LabVIEW is in effect very easy to use to this end!The following test-result were established by using MASTER.EXE: Although the RAC command parameter is a dummy, it should allways be 1. According to the RTY command the firmware version of the used device is V1.22 and the devicename is XYZ. The XYZ coordinates depend on the SRF move. This table shows the default settings for both the '1' and the '-1' reference point.
Downloadssupport files caro.iniSupport file (initialisation).
The following 4 sub-vi's can be used to bring the 'arms' to a known position.
main programs
See alsoTestrun..
Bart Boshuizen, 2004/12/22
|
|