![]() ![]() Ctapi.ctopen (Address_, Username_, Password_, 2) defClose (self):"Close connection to running Citect process"CT= Windll. #!/usr/bin/python#File:pyctapi.py#Author:mitchell Gayner#date:#Desc:#Wrapper for Citect ctapi dll#Compatible with Citect V6.1 DLLs#You must has the following DLLs:#-CiDebugHelp.dll#-Ct_ipc.dll#-CtApi.dll#-CtEng32.dll#-CtRes32.DLL#-CtUtil32.dll#ImportPlatform fromcTYPESImport*ImportSYSifPlatform.system ()! ="Windows": RaiseOSErrorclassPyctapi:def _init_(Self, dllpath_ ="c:/citect/bin/"): #Load Required DLLsCdll (Dllpath_ +'/cidebughelp') Cdll (dllpath_+'/ctutil32') Cdll (dllpath_+'/CT_IPC') self._LIBC= Cdll (Dllpath_ +'/ctapi') self._CN= None#Create Connection Object defOpen (self, address_, username_, password_, Mode_ =0):"Open connection to running Citect process" ifSelf._CN!=None:Print "already connected" returnSelf. Here is an example of Python that has not been tested: Through the API provided by the software, you can program and configure the software internal data point communication through the advanced language. ![]() (Variable flux Stacker control system based on Citect remote control Wang Yuzan, Gu Yingni, Wang Wei Jinan University, School of Mechanical Engineering, CITECT,CTAPI)Ĭitect configuration software has been acquired by Schneider.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |