OpenSense APDM Reader Issues

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Paul Klarich
Posts: 13
Joined: Sun Apr 23, 2017 8:16 am

OpenSense APDM Reader Issues

Post by Paul Klarich » Thu Nov 19, 2020 12:34 pm

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!

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: OpenSense APDM Reader Issues

Post by Ayman Habib » Thu Nov 19, 2020 1:09 pm

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

User avatar
Paul Klarich
Posts: 13
Joined: Sun Apr 23, 2017 8:16 am

Re: OpenSense APDM Reader Issues

Post by Paul Klarich » Mon Nov 23, 2020 11:17 am

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

POST REPLY