writing txt file while acquiring data

Mar 9, 2011 at 5:54pm

writing txt file while acquiring data

Hello everyone,

I am using Max to get back data from sensors, and I would like to record these datas “in live” on a txt file, while using the sensors (the aim would be to use these datas with matlab after the record). But I found nothing to do that, just something to read the txt (coll I think), but not to write it.

Is there a solution?

Thanks!

#55421
Mar 9, 2011 at 7:53pm

maybe the [text] object is useful.

Jan

#199459
Mar 10, 2011 at 8:58am

That is perfect!…Except that I can only open it in Max, how can I read it with, let us say, wordpad or something like that?

#199460
Mar 10, 2011 at 10:16am

Max creates a normal textfile. So you just can open it in any texteditor. If you don’t use the .txt ending (i assume you work on a windows machine, as you mentioned wordpad) you have to choose “Open with…” and then select the programm form the context menu (right-click on file)
-j.

#199461
Mar 10, 2011 at 10:26am

Ok thanks, I just forgot to specify the extention when creating the file.

Thank you very much!

Tib

#199462

You must be logged in to reply to this topic.