hi list i like to control one of those parallax servo controllers. therefore i thought to send the data via the comport object to the controller. the controller syntax is: "!SC", Channel, Ramp, pw.LOWBYTE, pw.HIGHBYTE, $0D. as "!SC" is the header, $0D the terminator and the other integers, the desired 'message' should look like this ["!SC",1,2,250,750,CR] but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around? thanks in advance olsen
"Houston, we've had a problem here." Jack Swingert April 11, 1970
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around?
did you think about using pyext and pyserial?
tim
-- tim@klingt.org ICQ: 96771783 http://www.mokabar.tk
The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww! Jack Kerouac
On 8/4/06, Tim Blechmann TimBlechmann@gmx.net wrote:
but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around?
Well, in sqlsingle, the strings are put in a buffer until we get the symbol "sqlend". Commas are added between messages.This might not help you at all, but we never know. :-)
olsen wrote:
hi list i like to control one of those parallax servo controllers. therefore i thought to send the data via the comport object to the controller. the controller syntax isoue: "!SC", Channel, Ramp, pw.LOWBYTE, pw.HIGHBYTE, $0D. as "!SC" is the header, $0D the terminator and the other integers, the desired 'message' should look like this ["!SC",1,2,250,750,CR] but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around?
you can generate a symbol with virtually any _ASCII_ character with [makefilename %c] (you have to know the ASCII-code of the character)
with a series of [set ...( messages to [makefilename] you could create your "weird" symbol. (a simpler way might be the use of zexy's [list2symbol] with a delimiter ",")
mfga.sdr IOhannes
IOhannes m zmölnig wrote:
olsen wrote:
hi list i like to control one of those parallax servo controllers. therefore i thought to send the data via the comport object to the controller. the controller syntax isoue: "!SC", Channel, Ramp, pw.LOWBYTE, pw.HIGHBYTE, $0D. as "!SC" is the header, $0D the terminator and the other integers, the desired 'message' should look like this ["!SC",1,2,250,750,CR] but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around?
you can generate a symbol with virtually any _ASCII_ character with [makefilename %c] (you have to know the ASCII-code of the character)
with a series of [set ...( messages to [makefilename] you could create your "weird" symbol. (a simpler way might be the use of zexy's [list2symbol] with a delimiter ",")
i tried that already but when i [symbol ,] to the cold inlet of [l2s] the "," is ignored. with the delimiter you mean this seperator for list elements? thanks&greets olsen
mfga.sdr IOhannes
"Houston, we've had a problem here." Jack Swingert April 11, 1970
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Hallo, olsen hat gesagt: // olsen wrote:
i tried that already but when i [symbol ,] to the cold inlet of [l2s] the "," is ignored.
You need to create the "symbol ," (actually "symbol ,") with [makefilename %c] first.
Attached is a full example.
Frank Barknecht _ ______footils.org_ __goto10.org__
On Fri, 4 Aug 2006, olsen wrote:
"!SC", Channel, Ramp, pw.LOWBYTE, pw.HIGHBYTE, $0D. as "!SC" is the header, $0D the terminator and the other integers, the desired 'message' should look like this ["!SC",1,2,250,750,CR] but how could i get pd to send this string to the comport? ev'rything i tried separates messages on the comma... any idea around?
I just made a new external called [join_with_comma]. Here's the source code:
GridFlow::FObject.subclass("join_with_comma",1,1) do def _0_list(*list) send_out 0,:symbol,list.join(",").intern end end
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada