{"id":18424275,"url":"https://github.com/jimhokanson/adinstruments_sdk_matlab","last_synced_at":"2025-04-07T15:33:15.859Z","repository":{"id":15579020,"uuid":"18314567","full_name":"JimHokanson/adinstruments_sdk_matlab","owner":"JimHokanson","description":"Implementation of AD Instruments SDK in Matlab - i.e. reads LabChart files","archived":false,"fork":false,"pushed_at":"2024-07-27T18:46:34.000Z","size":3227,"stargazers_count":27,"open_issues_count":6,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-22T20:45:21.296Z","etag":null,"topics":["labchart","matlab"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dancormier/react-native-swipeout","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimHokanson.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-01T01:58:16.000Z","updated_at":"2024-11-05T23:34:36.000Z","dependencies_parsed_at":"2024-07-27T19:08:44.647Z","dependency_job_id":null,"html_url":"https://github.com/JimHokanson/adinstruments_sdk_matlab","commit_stats":{"total_commits":121,"total_committers":3,"mean_commits":"40.333333333333336","dds":"0.016528925619834656","last_synced_commit":"88e59b8126d0d0c40e1eb2fb533fd3a414087a50"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimHokanson%2Fadinstruments_sdk_matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimHokanson%2Fadinstruments_sdk_matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimHokanson%2Fadinstruments_sdk_matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimHokanson%2Fadinstruments_sdk_matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimHokanson","download_url":"https://codeload.github.com/JimHokanson/adinstruments_sdk_matlab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247680036,"owners_count":20978178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["labchart","matlab"],"created_at":"2024-11-06T04:42:03.631Z","updated_at":"2025-04-07T15:33:10.847Z","avatar_url":"https://github.com/JimHokanson.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nThis code base exposes the C SDK by `ADInstruments  \u003chttps://www.adinstruments.com/\u003e`_\nto MATLAB. \n\nIt allows you to read LabChart files into MATLAB and to create your own LabChart files.\n\n**Only works with Windows. This is an ADInstruments issue. I can't fix it**\n\nMy less-polished Python version:\nhttps://github.com/JimHokanson/adinstruments_sdk_python\n\nIf you want to control/interact with LabChart:\nhttps://github.com/JimHokanson/labchart_server_matlab\n\n# Motivation\n\nLabChart provides functionality for exporting data to a '.mat' file, although I have yet to get it to work. I also prefer not having files that are simply copies of an original file but in a different format. This code allows reading data directly from LabChart data files.\n\n# Top Level Functions\n- adi.readFile : Reads a file\n- adi.convert : Converts the a given file to another format (e.g. from .adicht to .mat)\n\n#  File Reading Notes\n\nLike most of my more recent readers, the raw channel data are not returned unless specifically requested. Instead a lightweight (low memory) handle is returned with relevant meta data and the raw channel data can be requested via subsequent method calls.\n\n```\n\tf = adi.readFile;\n\tpres_chan = f.getChannelByName('pressure');\n\traw_pres_data = pres_chan.getData(1); %Get data from the first record\n```\n\t\nAt some point a function could be written that reads everything and reads it into a structure but this is really really low priority for me.\n\nTo read these files on a Mac first requires converting the 'adicht' format into a 'mat' format. Unfortunately, the way in which these files needs to be created leaves the mat file looking a bit ugly. Once however it is in the 'mat' format, it can be read via the code in the same way that the original 'adicht' file could.\n\n```\n\tf = adi.readFile('/Users/Jim/Work/example_file.mat');\n```\n\nIf you want to extract all comments into table, do this:\n\n```\n    t = adi.getFileComments\n    %or\n    t = adi.getFileComments('/Users/Jim/Work/example_file.mat')\n```\n\t\n# File Writing Notes\n\nSee [here for writing LabChart files](documentation/writing.md)\n\t\n# Requirements \u0026 Installation\n\nRequires 64bit MATLAB on Windows. 32bit Matlab could be supported but some of the mex code would need to be rewritten.\n\nTo install the package ('+adi') needs to be on the Matlab path (add parent folder of +adi folder). **Sub-folders of the package should not be added to the path.**\n\n\n# Tech Notes #\n\nGeneral parts include:\n\n- sdk class/package (see adi.sdk) - this is the Matlab code that directly interfaces with the mex code\n- sdk_mex (see +adi/private directory) - this is the actual mex code which calls the ADInstruments dll\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimhokanson%2Fadinstruments_sdk_matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimhokanson%2Fadinstruments_sdk_matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimhokanson%2Fadinstruments_sdk_matlab/lists"}