{ "info": { "author": "Alfred Mechsner", "author_email": "alfred.mechsner@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Win32 (MS Windows)", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "############\r\nIntroduction\r\n############\r\n\r\n**cTDMS** is a Python package to read or write TDMS or TDM files.\r\n\r\nTDMS or TDM are file formats developed by National Instruments and are the main file formats\r\nfor data storage in LabView from National Instruments.\r\n\r\n**cTDMS** is using the NILIBDDC library from National Instruments, which is accessed by the help of the Python ``ctypes`` package.\r\n\r\nVersion 0.91 for 32bit and 64bit system\r\n\r\n\r\n=============================\r\n1. Reading TDMS or TDM files\r\n=============================\r\n\r\nTo read a TDMS or TDM file you simply have to call: ::\r\n\r\n\tfrom cTDMS.cTDMS import TDM_File\r\n\t\r\n\ttdm=TDM_File(\"Data4.tdm\")\r\n\ttdm.open()\r\n\r\nor: ::\r\n\r\n\tfrom __future__ import with_statement\r\n\tfrom cTDMS.cTDMS import TDM_File\r\n\t\r\n\twith TDM_File(\"Data4.tdm\") as tdm:\r\n\t\t...\r\n\t\t...\r\n======================================\r\nAccessing groups in a TDMS or TDM file\r\n======================================\r\n\r\nThe tdm file object is organized like a dictionary. The groups contained in the TDM file can be acces by: ::\r\n\r\n for groupname in tdm:\r\n print \"Group %s ------------\"%( groupname)\r\n group=tdm[groupname]\r\n \r\n==================== \r\nCreating a new group\r\n====================\r\n\r\nA new group in the TDM file can be created with following command: ::\r\n\r\n if \"newgroupname\" is not in tdm:\r\n new_group=tdm.add_Group(\"newgroupname\", \"Description of the group\")\r\n \r\nBefore creating a new group, it has to be checked, that this group is not already existing. \r\n\r\n=========================\r\nGetting data from a group\r\n=========================\r\n\r\nMeasuring data are store in channels of a group. the can be easily accessed by getting the channels from the group: ::\r\n\r\n for groupname in tdm:\r\n print \"Group %s ------------\"%( groupname)\r\n group=tdm[groupname] \r\n \r\n for channelname in group:\r\n print \"Channel %s ------------\"%(channelname)\r\n channel=group[channelname]\r\n print \"Channel Properties -----\"\r\n for property in channel.attrs:\r\n print property, channel.attrs[property] \r\n # get some data \r\n d=channel[5] \r\n d=channel[-5]\r\n d=channel[:]\r\n d=channel[0:]\r\n d=channel[10:-1]\r\n \r\n t=type(d)\r\n print \"data type: %s, length: %d\"%(str(type(d)), len(d))", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "TDM,TDMS", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "alfred.mechsner@googlemail.com", "name": "cTDMS", "package_url": "https://pypi.org/project/cTDMS/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cTDMS/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/cTDMS/0.91/", "requires_dist": null, "requires_python": null, "summary": "Reading and writing TDM and TDMS files", "version": "0.91" }, "last_serial": 1046035, "releases": { "0.9": [], "0.91": [ { "comment_text": "", "digests": { "md5": "f928c86cea9ca66a95247f9b23a25740", "sha256": "fa5ed241d4038ac3a0f43f22fb485837ed9aa1582d763a3bdeda575d5358e15b" }, "downloads": -1, "filename": "cTDMS-0.91.win32.exe", "has_sig": false, "md5_digest": "f928c86cea9ca66a95247f9b23a25740", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 303761, "upload_time": "2014-03-25T21:06:33", "url": "https://files.pythonhosted.org/packages/2b/56/ab29659c42ba771c22a3d6e8e577e7b8c20ab8297d0067f5a3f0ee29b444/cTDMS-0.91.win32.exe" }, { "comment_text": "", "digests": { "md5": "9b35d8a680a8ed1dc05c2087207b9375", "sha256": "ed0ed0aa582d096387f01e98cf7e642d8ab9b876510285cedf1114373545477f" }, "downloads": -1, "filename": "cTDMS-0.91.zip", "has_sig": false, "md5_digest": "9b35d8a680a8ed1dc05c2087207b9375", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107488, "upload_time": "2014-03-25T21:06:04", "url": "https://files.pythonhosted.org/packages/9a/c2/644c5d4c543569f139a5a7bfe7266019789c483fae869dbe34275c1923d1/cTDMS-0.91.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f928c86cea9ca66a95247f9b23a25740", "sha256": "fa5ed241d4038ac3a0f43f22fb485837ed9aa1582d763a3bdeda575d5358e15b" }, "downloads": -1, "filename": "cTDMS-0.91.win32.exe", "has_sig": false, "md5_digest": "f928c86cea9ca66a95247f9b23a25740", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 303761, "upload_time": "2014-03-25T21:06:33", "url": "https://files.pythonhosted.org/packages/2b/56/ab29659c42ba771c22a3d6e8e577e7b8c20ab8297d0067f5a3f0ee29b444/cTDMS-0.91.win32.exe" }, { "comment_text": "", "digests": { "md5": "9b35d8a680a8ed1dc05c2087207b9375", "sha256": "ed0ed0aa582d096387f01e98cf7e642d8ab9b876510285cedf1114373545477f" }, "downloads": -1, "filename": "cTDMS-0.91.zip", "has_sig": false, "md5_digest": "9b35d8a680a8ed1dc05c2087207b9375", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107488, "upload_time": "2014-03-25T21:06:04", "url": "https://files.pythonhosted.org/packages/9a/c2/644c5d4c543569f139a5a7bfe7266019789c483fae869dbe34275c1923d1/cTDMS-0.91.zip" } ] }