Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

metex

 [1/3] from: news::rowery::olsztyn::pl at: 11-Apr-2002 21:38


not long ago I've bought a metex multimeter with serial port... in docs I saw small basic prog/listing like open "com2 : 1200, N, 7, 2, RS, CS, DS, CD" AS #2 a$ = "D" print #2, a$ in$=input$(14, #2) print in$ close #2 end so I've created small rebol script... REBOL [] mm: open/direct serial://port2/1200/7/none/2 mm/timeout: 5 update mm insert mm #"D" print copy/part mm 14 close mm ...but it doesn't work; why? Piotr Gapiński; mailto:[news--rowery--olsztyn--pl] Olsztyńska Strona Rowerowa; http://www.rowery.olsztyn.pl

 [2/3] from: al:bri:xtra at: 12-Apr-2002 16:07


Piotr wrote:
> insert mm #"D"
I'd experiment a little, and try adding the CR and LF characters that are added by the BASIC statement: print #2, a$ Try something like: insert mm "D^M^/" I hope that helps! Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [3/3] from: brett:codeconscious at: 12-Apr-2002 22:40


Hi, Here is one idea: In basic believe PRINT #2, a$ will emit a line ending (CRLF?). So your insert should perhaps be insert mm #"D^/" or maybe insert mm join #"D" CRLF Sorry - thats all I can suggest right now. Brett. ----- Original Message ----- From: "Piotr Gapiński" <[news--rowery--olsztyn--pl]> To: "rebol" <[rebol-list--rebol--com]> Sent: Friday, April 12, 2002 5:38 AM Subject: [REBOL] metex not long ago I've bought a metex multimeter with serial port... in docs I saw small basic prog/listing like open "com2 : 1200, N, 7, 2, RS, CS, DS, CD" AS #2 a$ = "D" print #2, a$ in$=input$(14, #2) print in$ close #2 end so I've created small rebol script... REBOL [] mm: open/direct serial://port2/1200/7/none/2 mm/timeout: 5 update mm insert mm #"D" print copy/part mm 14 close mm ...but it doesn't work; why? Piotr Gapiński; mailto:[news--rowery--olsztyn--pl] Olsztyńska Strona Rowerowa; http://www.rowery.olsztyn.pl