Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test openaps using Matlab simulink #1396

Open
dehengcai opened this issue Apr 23, 2021 · 3 comments
Open

Test openaps using Matlab simulink #1396

dehengcai opened this issue Apr 23, 2021 · 3 comments

Comments

@dehengcai
Copy link

Hello all, I want to test the glucose control performance of the openaps using Matlab simulink. But I am confused about how to connect the openaps to Matlab. Is there any way to achieve this?

@scottleibrand
Copy link
Contributor

I’ve never used Matlab, so you’ll have to be more specific about what it needs.

@dehengcai
Copy link
Author

Thank you for your timely reply. More specifically, I want to use Matlab simulink as a virtual patient, which can produce the virtual CGM data to the openaps, and execute the basal rate recommended by the openaps. I have read the source codes of the openaps, but am still confused about the codes. Is the basal rate recommendation algorithm only programmed in the determine-basal.js? If yes, is that say if I can feed the correct inputs into the determine-basal.js, I can get the recommended basal rate from the openaps? Moreover, how do I program the basic information (e.g, ISF, carb ratio and basal rate) of the virtual patient into the openaps.

@scottleibrand
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants