Dms Difficulties
paradigmpaul
Posts: 24
hi guys, im having a problem..had to reprogram a house(NXI) that kept falling offline(too many acrobatics in code)
there is a sony 300 disc changer and it has to be controlled via DMS...
the specific application is pressing a "hundreds" button to increment/cycle the hundreds digit from 0 to 3, and so on for tens and ones.. after each increment it will(should but its not) update the dms display with the new digits.
im pulling my hair out cause i cant seem to make it work..
any suggestions, pointers? please
thanx in advance
Paul
there is a sony 300 disc changer and it has to be controlled via DMS...
the specific application is pressing a "hundreds" button to increment/cycle the hundreds digit from 0 to 3, and so on for tens and ones.. after each increment it will(should but its not) update the dms display with the new digits.
im pulling my hair out cause i cant seem to make it work..
DEFINE_VARIABLE char DMS8SelectedDisc[] = {0,0,0} //hundred,tens,ones sinteger nDMS8hundreds = 0 sinteger nDMS8tens = 0 sinteger nDMS8ones = 0 ////////////////////////////////////////////////// define_event button_event [vdvDMS8,DMS8_CDJUKE_HUNDREDS] { Push: { if (nDMS8hundreds == 3) { nDMS8hundreds = -1 } nDMS8hundreds = nDMS8hundreds+1 DMS8SelectedDisc[1]= itoa(nDMS8hundreds) //SEND_COMMAND vdvDMS8, "'@TXT',itoa(DMS8_CDJUKE_DISC_NUM_SELECT_DISPLAY),'Play #',',',DMS8SelectedDisc[0],DMS8SelectedDisc[1],DMS8SelectedDisc[2]" SEND_COMMAND vdvDMS8, "'TEXT',itoa(DMS8_CDJUKE_DISC_NUM_SELECT_DISPLAY),'-Play #',DMS8SelectedDisc[1],DMS8SelectedDisc[2],DMS8SelectedDisc[3]" //"'TEXT<vt channel>-<text>'" send_string 0,itoa(nDMS8hundreds) send_string 0,ITOA(DMS8SelectedDisc[]) WAIT 3 SEND_COMMAND vdvDMS8, 'PAGE-(CURRENT)' } } //do not put any code after this line (*cat5coaxrgb*)
any suggestions, pointers? please
thanx in advance
Paul
0
Comments
as it turns out i did not have my array declared properly...
char DMS8SelectedDisc[3][1] = {'0','0','0'} //hundred,tens,ones is how it should have been..
cheers
This is a follow up on my dms difficulties post from the other day...
for my cd juke interface i have the text updating on the DMS...
by using the klugy dms interface the user can press hundreds, tens or ones to increment the display with "play#_ _ _" then when they press that button if selected disc was 123 , I need to send ir pulses as follows,
"Disc-Del"//puts CDJUKE into #entry mode
"1"//hundreds digit
"2"//tens digit
"3"//ones digit
"Enter"//plays the selected
while watching my diagnostics and notifications i see the strings i am send to the master for "DMS8SelectedDisc[3][1]" and the "digit" currently being evaluated.
but for some reason(probably inexperience/sloppy code) it never fires
"Disc-Del"//puts CDJUKE into #entry mode
"1"//hundreds digit
"2"//tens digit
"3"//ones digit
"Enter"//plays the selected
any advice would be most appreciated..
cheers
Paul
I changed the type of array from char to integer...and fixed my single quotes..
end result, it works...