フィルターのクリア

real time csv file reading

11 ビュー (過去 30 日間)
saratt Ratana-Ubol
saratt Ratana-Ubol 2022 年 5 月 13 日
回答済み: Siraj 2023 年 9 月 22 日
Hi everyone, I'm doing realtime EMG signal classification project. I write code on MATLAB R2022a and I got a problem on read realtime csv file.
First, I receive signal from EMG sensor then preprocess and feature extraction in every 1600 data and save in realtime csv file. when I read it, I got a permission denied message. how can I acess to csv file ???
Error using test
Unable to open file 'C:\Users\payusan\Documents\MATLAB\Examples\R2022a\matlab\ReadStreamingDataFromArduinoExample\Realtime3.csv' for writing:
Permission denied

回答 (1 件)

Siraj
Siraj 2023 年 9 月 22 日
Hi!
It appears that you are encountering a "Permission denied" error when trying to access a CSV file in real-time for your EMG signal classification project in MATLAB R2022a.
One possible cause of the "Permission denied" error is when the file path contains non-ASCII characters. To mitigate this issue, you can consider using the "fullfile" function in MATLAB to generate the file path. For more information on how to use the "fullfile" function, you can refer to the following link:
Perform a few checks to troubleshoot the "Permission denied" error. Ensure that the file exists in the designated folder and is not corrupted. Additionally, verify that the file is not being used by another application or opened in any other program. Confirm that MATLAB has the necessary permissions to access the file. Furthermore, check if the disk has sufficient memory to read the file multiple times, as this could potentially cause issues.
If all the previous checks have been done and there are no issues found, try moving the file to a different location outside of the 'C' drive.
Hope this helps.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by