Why SEND_STRING not work
ablesimov
Posts: 6
i not understand
If i send
send_string dvZpre1,"'W 1 1 1',13"
it work
but if i send
send_string dvZpre1,"'$57,$20,$31,$20,$31,$20,$31',13"
it not work
This string write in Parasound ZPre manual
If i send
send_string dvZpre1,"'W 1 1 1',13"
it work
but if i send
send_string dvZpre1,"'$57,$20,$31,$20,$31,$20,$31',13"
it not work
This string write in Parasound ZPre manual
0
Comments
send_string dvZpre1,"'W 1 1 1',13" :
'W 1 1 1' thats an ASCII String
,13 thats an CR in DEC
send_string dvZpre1,"'$57,$20,$31,$20,$31,$20,$31',13" :
'$57,$20,$31,$20,$31,$20,$31' thats a HEX Command as an ASCII String...
try without ' ' (Highcomma)
i think thats should be work !
send_string dvZpre1,"$57,$20,$31,$20,$31,$20,$31,13"
it work
DEFINE_CALL 'SWT_KRAMER' (INPUT,OUTPUT)
{
IF ((INPUT >= 0) AND (INPUT <= 8) AND (OUTPUT >= 0) AND (OUTPUT <= 8))
{
SEND_STRING dvKramer,"$01,'$',ITOA(INPUT + 80),'$',ITOA(OUTPUT + 80),$81,$0D"
}
}
What i do wrong ?
You need $80 not 80
SEND_STRING dvKramer,"$01,ITOA(INPUT + $80),ITOA(OUTPUT + $80),$81,$0D"
Results Line
13 :: String To [5001:1:1]-[$01129129$81$0D] - 01:46:21
String To [5001:1:1]-[$01$81$81$81$0D]
Oh and you're converting your additions to ASCII with ITOA(). You don't want ACSII characters. You want numbers. Try this: SEND_STRING dvKramer,"$01,(INPUT + $80),(OUTPUT + $80),$81,$0D"
Thanks
C10573: String used as a CHAR value in a math operation
send_string dvvidswitch,"$01,(80+itohex(input)),(80+itohex(output)),$81"
it's useful for protocols which demand ascii characters representing hex strings. But if you're just trying to send hex stay away from this function.
send_string dvvidswitch,"$01,($80+input),($80+output),$81" // I think this is what you're trying to do?