Page 1 of 1

OpenSense APDM Reader Issues

Posted: Thu Nov 19, 2020 12:34 pm
by pklarich
I have been trying to use both MatLab and the OpenSim command-line to be able to read in APDM IMU sensor data. The issue I am having is that MatLab will crash anytime I run the script provided from https://simtk-confluence.stanford.edu/d ... dapdmfiles).

I have tried it with both my own data and set-up file, as well as the example files provided at the link above. Both result in MatLab crashing. The message that appears before it closes states: "MatLab has encountered an internal problem and needs to close". This error only occurs when running this script.

I have also tried using the command-line in OpenSim, this results in an error as well:

Jython Interactive Console
>>> opensense -ReadAPDM exampleAPDM_Data.csv exampleAPDM_Settings.xml
File "<input>", line 1
opensense -ReadAPDM exampleAPDM_Data.csv exampleAPDM_Settings.xml
^
SyntaxError: mismatched input 'exampleAPDM_Data' expecting NEWLINE
>>>

I have double checked my paths and all the files are located properly. I have also run through the MatLab set-up and successfully accessed the OpenSim library without any issues before. The OpenSim bin folder is my primary path in my environment settings as well.

I am still new to a majority of OpenSim and it is likely that there is a small detail I am missing causing this issue. Any help would be appreciated,

Thanks!

Re: OpenSense APDM Reader Issues

Posted: Thu Nov 19, 2020 1:09 pm
by aymanh
Hi Paul,

The opensense command line tool is not expected to be available from the jython scripting shell of the application. However you can write a jython script to read the APDM files utilizing the API (as shown on the same confluence page you pointed to) and invoke that form the scripting shell.
That may help pinpoint the issue.

Please let us know what you find out as we work to improve the robustness of the parsers and give better diagnostics of failures.

Best regards,
-Ayman

Re: OpenSense APDM Reader Issues

Posted: Mon Nov 23, 2020 11:17 am
by pklarich
Thanks Ayman! I was able to get the example files to work through command prompt so it must be an issue with my personal files I am trying to use. Appreciate the help