Go Down

Topic: writing to a text file (Read 6288 times) previous topic - next topic

PaulS


Only if it is possible to do so.

I could do it, so it IS possible. Whether you could, or not, remains to be seen.
The art of getting good answers lies in asking good questions.

sphume

Please give me an idea on where to start.

Grumpy_Mike

Have you been reading the rest of this thread that you have hijacked?

In the Arduino
You gather the data you want to send. Send it by using a serial print.

In some application you write in some language on your PC
Read data from the serial port, write it to a file.

sphume


Have you been reading the rest of this thread that you have hijacked?


Yes I've read and attempted to do as it says in this thread, my problem is that once I send the data to the PC I cannot access the serial port from my GUI.

PaulS

Quote
my problem is that once I send the data to the PC I cannot access the serial port from my GUI.

What is your GUI doing? If it is communicating with the Arduino, then IT should be what the Arduino is sending data to that needs to be saved to the file.
The art of getting good answers lies in asking good questions.

Grumpy_Mike

Quote
my problem is that once I send the data to the PC I cannot access the serial port from my GUI.

You can not access the serial port by anything else if you have the Arduino's serial monitor open.

sphume


Grumpy_Mike

That is hardly an arduino problem is it?

Can you see the data coming from the Arduino with the Arduino's serial monitor?

sphume

This is how my work look like.

GUI(MFC)->Arduino->dc motor and a rotary encoder

Grumpy_Mike


This is how my work look like.

GUI(MFC)->Arduino->dc motor and a rotary encoder

So what on earth has that any connection with
Quote
I actually want to stream encoder positions to a text file.


This is all getting a bit abstract and I don't think you can cope with abstract.
So please state exactly what you want to do and what you are using so far on the arduino plus posting the code. And say exactly what you have on the PC, and how you are programming it.

keithfarrier

all the information is helpful for me thanks for your post.

Go Up