variable use in DMS txt string
Germt
Posts: 10
hello, this is my first time i programming a AMX controller
i am trying to put a variable text into a DMS keypad,
SEND_COMMAND dvpanel,"'^TXT-33,1&2',settime"
settime is a number 1 to 10000
also i try to get the "time" (hh.mm) into a txt string, with a update every minute
thanks
i am trying to put a variable text into a DMS keypad,
SEND_COMMAND dvpanel,"'^TXT-33,1&2',settime"
settime is a number 1 to 10000
also i try to get the "time" (hh.mm) into a txt string, with a update every minute
thanks
0
Comments
no i try to set a text(variable) into a DMS keypad.
I have a value from 1 to 10000, and i want to count the value on the keypad with +/- buttons
the counting is not the problem but i want to see the value of this variable also on the screen.
i have.
settime = 100
SEND_COMMAND dvpanel,"'^TXT-33,1&2',1,settime"
but this put not the number but a letter into de txt button 33
can you also tell me what the ,1, is in the sting ,1,settime"
i am also trying to set the real time on the keypad, but it is static when it is in the display
thanks, it's all new to me and i?m glad some is helping me.
it is a mio DMS 8button keypad
Try:
This will send the ascii string '100' into the variable text address 33. If you don't use the ITOA on the settime variable who will get the decimal ascii equivelent that is if it equals a printing character. Decimal 100 = ascii "d' w/o the double quotes.
The 1 in your string must be a typo and shouldn't be there.
thanks, it is working now.
Is this the case? I have been unable to see how this would be done, but would be nice to not have to do it through code.
Each "button" can have an Address Port and Code, as well as a Channel Port and Code. However, entering a 0 for the Address Port produces an error "Port value must be in the range of 0-100". I was thinking I could just enter the appropriate address for the setup port to get the time to display, but no luck.
Also thin on spell checking:
With the constant harrying pressure from lower level players below AMX there is going to be a need to provide a lower level solution for residential. The new TPs shown at ISE are probably how to do it. The DMS series are certainly not how to do it. Sorry, this is probably an OT post but I think any effort expended on DMS is wasted effort.
Keypad Builder is very poor indeed.