MetaMorph Visual Basic Reference Guide

Copyrights, Notices, and Trademarks © 2004 – 2006 Molecular Devices Corporation. All rights reserved. Printed in the U.S.A. Information in this document is subject to change without …

Contents: Conventions Used in This Manual, The Run User Program Command, Visual Basic and User Programs, Creating a User Program,Data Types and Arrays,Chapter 2: Performing Serial and Digital I/O Communication. Performing Serial Data Transmission,Communicating with a Digital I/O Device. Executing Commands and Journals. Executing Commands and Journals. Reading and Manipulating Images and Image Windows. Loading, Creating, Copying, and Closing Images, Finding Loaded Images,Manipulating Image Windows,Reading and Using Image Properties.
Visual Basic and User Programs. About user programs. A user program is essentially an ActiveX object that communicates with MetaMorph using Microsoft’s object linking and embedding (OLE) interface. However, it is not necessary to be familiar with the details of this communication when using Microsoft Visual Basic, the language supported by MetaMorph to write user programs. Note: The following versions of Microsoft Visual Basic can be used to create programs to run in MetaMorph 7.0: ? Microsoft Visual Basic .NET 2003 Professional or Enterprise editions, ? Microsoft Visual Basic .NET 2002 Professional or Enterprise editions, ? Microsoft Visual Basic 6.0 Professional or Enterprise editions, ? Microsoft Visual Basic 5.0 Professional or Enterprise editions. Note that the Standard and Express editions of the above versions are NOT supported. Variables and functions required by MetaMorph. To be recognized by MetaMorph, a Visual Basic user program must contain three variables, MM , gParentWnd and gUserID , and three functions, Startup , DoCommand , and Shutdown . There are several other more technical requirements, but these will be covered in the discussion of the use of specific versions of Visual Basic (Section 1.5). The two variables, gParentWnd and gUserID , are type Long or Integer, depending on which version of Visual Studio you are using (see section 1.5). MM is a variant: MM is a variant that is used for all of your communication with MetaMorph. For example, to put the handle of the current image in MetaMorph into the variable sourceImage , you would use the following: Public sourceImage As Long MM . GetCurrentImage sourceImage…

Source: http://support.meta.moleculardevices.com/

Download MetaMorph Visual Basic Reference Guide

Leave a Reply