JimHokanson / adinstruments_sdk_matlab

Implementation of AD Instruments SDK in Matlab - i.e. reads LabChart files
MIT License
26 stars 8 forks source link

adi.convert() option to use raw data #17

Closed jay-sf closed 1 year ago

jay-sf commented 1 year ago

adi.convert() was very helpful to successfully converted hundreds of .adicht files into .mat and thus make them readable in R. However the way the signals look, they seem to have been written with LabChart's filter settings. As far as I know, the signals are stored in raw form, and filtering is always post-processing. Is there an option/argument in the adi.convert() function that would allow us to export the raw data? Thanks.

JimHokanson commented 1 year ago

Greetings. Good to know people actually use that functionality.

Unfortunately if you are not getting the signal you want I don't think it is possible to make any changes to get that signal.

If you open a file in Labchart, select a channel, and can change the processing to "no calculation", whatever you see at that point is what this code provides access to. If it still looks filtered with no calculation in place then there is no way of retrieving data prior to the filtering. Sorry :/

Here's one of my filtered signals: image

Here's what I'm seeing in MATLAB with my code: image

Here's the signal again in Labchart this time with with no calculation: image

jay-sf commented 1 year ago

Thanks, good to know, that the code accesses the data before applying software filters. As I had to learn, in our case, hardware filters were used and raw data is lost. It is unfortunate that the manufacturer does not prevent a loss of raw data.