Experience a complete re-visioning of electron microscopy's leading software with new, simplified user interface, and experiment oriented workflows. Gatan's products, which are fully compatible with all brands of electron microscopes, cover the entire range of the analytical process from specimen preparation and manipulation to imaging and analysis. All of Gatan's software products form part of the. Gatan Microscopy Suite (GMS).
TCP Socket Plug-in for Gatan Microscopy Suite 3.xThis small plug-in for the Gatan Microscopy Suite 3.x creates aTCP/IP socket, which can then be used to communicate with the outside world. InstallationThe plug-in.dll must be placed in C:ProgramDataGatanPlugins.
API ReferenceThe plug-in exposes a few functions to Digital Micrograph scripts:. void TCPSocketConnect( string address, number port ): Connect the socket to a remote point, e.g. TCPSocketConnect( '127.0.0.1', 5555 ). void TCPSocketBind( string address, number port ): Bind the socket to a local endpoint, e.g. TCPSocketBind( '127.0.0.1', 5555 ). void TCPSocketDisconnect( void ): Disconnect the socket from current connection. In case there were no connections, this function has no effect.
string TCPSocketRecv( void ): Returns the available input data. If nothing is available, returns an empty string. This function always returnsimmediately; use in conjunction with TCPSocketWaitIncoming:.
void TCPSocketWaitIncoming( void ): Blocks until data is available for reading. Use at your own risks. number TCPSocketSend( string message ): Send data over the socket. Returns the number of bytes written. If 0 is returned, an error has occured. void TCPSocketToggleDebug( bool toggle ): Enable/disable messages written to the DigitalMicrograph results window.