Search found 9 matches
- Fri Mar 09, 2012 7:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: invisible livecode ap has me stumped. (solved)
- Replies: 4
- Views: 2896
Re: invisible livecode ap has me stumped.
Are you saying your applications folder is hidden? or.. Is is possible that your LiveCode application has been renamed to ".LiveCode" ? that is with a period in front of the name. You would need to use a terminal command to show hidden files or a utility like Onyx. Thats the only thing I can think o...
- Wed Feb 22, 2012 4:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Saving Text Field content to file
- Replies: 4
- Views: 3323
Re: Saving Text Field content to file
There is also 'put URL "binfie:/path/to/file/rawdata"' (or file:/path/to/file/rawdata, I believe 'file:' uses os specific line endings, binfile: does the write unchanged) For what you're doing ( open, write, close rather than open write write write write write, close) all at once, the URL method wo...
- Wed Feb 22, 2012 3:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Saving Text Field content to file
- Replies: 4
- Views: 3323
Re: Saving Text Field content to file
Thanks Richard, changing the first line to did the trick. Your reply regarding using the "open file" form implies there is another way ( isn't there always ) to achieve the same...I'm curious..
Colin
Code: Select all
open file rawdata for binary write
Colin
- Wed Feb 22, 2012 3:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Saving Text Field content to file
- Replies: 4
- Views: 3323
Saving Text Field content to file
I have a stack which puts serial data into a text field and then formats the data for import into a Filemaker database, the stack works well except if I save the raw data from the text field the resulting text file has a extra linefeed added between each line. The linefeed does not show up in the fi...
- Fri Feb 17, 2012 2:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Options on storing data
- Replies: 3
- Views: 2441
Re: Options on storing data
Hi Colin, you could just write to a file on disk!? But this depends on the file format of the RRD file. Klaus Hi Klaus I'm already doing that with the Perl/RRD solution, which is fine, but I want to translate what the Perl Script does into a Livecode application and I guess I want to know the best ...
- Fri Feb 17, 2012 1:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Options on storing data
- Replies: 3
- Views: 2441
Options on storing data
I am trying to build a stack which uses serial data from a Current Cost Meter which gives you Power consumption and temperature data. The device spits out data every 6 secs. I have succeeded in parsing out the the relevant data to display in my stack. My next challenge is to be able to store this da...
- Thu Feb 02, 2012 11:38 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Capturing data from a serial port
- Replies: 3
- Views: 3234
Re: Capturing data from a serial port
Thanks for your help Sturgis, with the help of your code I found out what the problem was, part of my original code read read from driver thePort until recEOL else read from file thePort until recEOL end if if it is not empty then put it after fld "Serial Data" send readPort to me in 10 ticks recEOL...
- Wed Feb 01, 2012 4:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Capturing data from a serial port
- Replies: 3
- Views: 3234
Re: Capturing data from a serial port
Answering my own questions with another one. I have now got to the stage where I am capturing the correct data but... I cannot close the serial port with a button because the user interface is not responding unless I pull the serial device from the port ( actually its a keyspan serial USB adaptor). ...
- Tue Jan 31, 2012 9:37 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Capturing data from a serial port
- Replies: 3
- Views: 3234
Capturing data from a serial port
I have "discovered" livecode from a need to update an old but essential Hypercard application. The hypercard script was written to parse some data captured from a (PAT tester). At the moment the capture is being done separately with Zterm, the resultant textfile then processed by the hypercard stack...