如何记录我的PPG信号并将数据保存在CSV文件中?

发布于 2025-02-11 01:02:59 字数 137 浏览 2 评论 0 原文

我是颤抖软件的初学者,并且正在使用飞镖语言。我似乎找不到任何有助于我使用计时器记录PPG信号的提示,然后将数据保存在我的Vivo手机中。我需要保存在CSV文件中,以便可以将其转换为MATLAB以分析它。谁知道解决方案,请回答我...我今天需要完成我的项目...

I am a beginner to flutter software and I am using dart language. I can't seem to find any tips that helps me to record ppg signal with a timer and then saving the data in csv file in my vivo phone. I need to save in the csv file so that i can convert it in matlab to analyse it. Whoever knows solution for this, please do answer me... I need to complete my project by today...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随波逐流 2025-02-18 01:02:59

您可以首先使用本教程来了解其工作原理。

然后您可以使用 csv ,然后将行转换为CSV格式。然后将其保存在文件中

String csv = const ListToCsvConverter().convert(rows);
String dir = await ExtStorage.getExternalStoragePublicDirectory(
    ExtStorage.DIRECTORY_DOWNLOADS);

String file = "$dir";

File ppgSignals = File(file + "/fileName.csv");

ppgSignals.writeAsString(csv)

You can start by using this tutorial to learn how it works.

https://betterprogramming.pub/measuring-your-heart-rate-using-your-phones-camera-and-flutter-f444d3c4272a

Then you can use a package like csv and convert rows to csv format. Then save it in a file

String csv = const ListToCsvConverter().convert(rows);
String dir = await ExtStorage.getExternalStoragePublicDirectory(
    ExtStorage.DIRECTORY_DOWNLOADS);

String file = "$dir";

File ppgSignals = File(file + "/fileName.csv");

ppgSignals.writeAsString(csv)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文