You are here

File Handling in PRoC | Cypress Semiconductor

File Handling in PRoC

Summary: 6 Replies, Latest post by sunil.bellure_1697601 on 28 Nov 2016 09:10 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
sunil.bellure_1697601's picture
User
11 posts

Hello,

Am using PRoC module to receive the ultrasonic sensor's data and displaying on the terminal using UART Communication. What's my question is, can the data received on the terminal be stored in File(.txt, .docx format)??

Is file handling system supports in proc? 

 

If yes, how can i set a path to create a file and write the data in it. I have given a try but the file is not being created!

user_1377889's picture
User
9617 posts

PSoCs and PRoCs do not have got an OS, so there is no access to a file possible.

On the windows side you will be able to save data red from a com interface into a file. Will of course need some program written in C++, C# or whatever you prefer. Cold probably be done using a script / batch file.

 

Bob

sunil.bellure_1697601's picture
User
11 posts

Hello,

On windows end itself i wanted to create a file. In PSoC Creator have created a project and have written a C code(File Handling) to write a data on to the file. But the file is not being created!

user_1377889's picture
User
9617 posts

"But the file is not being created!" Of course not. The PSoC is not part of your PC, it is only connected to it. It is a similar problem to store the mouse movements into a file. Any "C code(File Handling)" on the PSoC side has no OS to communicate with. Use a simple C-code on the windows side which opens the correct com-port and writes data into a file. Think about how to end that process, when the file is not closed, the data may be discarted.

 

Bob

sunil.bellure_1697601's picture
User
11 posts

Yea bob even i got the same idea to work on some scripting language and acquire the data!!
Thanks for your time !

hli
user_78878863's picture
User
2585 posts

If you are using a terminal program on the PCV (e.g. realtem, tera-term) - most of thzem have a "log to file" capability which you can use.

sunil.bellure_1697601's picture
User
11 posts

Will give a try HLI.. Thank you

Log in to post new comments.