Need a hand
Who can tell me why this code does not work? I have spen't a day with it and am losing my wits over it!
SEND_COMMAND dvKP_MIO_DMS,'^LDD-1'
SEND_COMMAND dVKP_MIO_DMS,'^LDN-1,1,3,HVAC'
SEND_COMMAND dvKP_MIO_DMS,'^LDT-1,1,0,0,3'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,01,Heat+,"2,1"'
SEND_COMMAND dvKP_MIO_DMS,"'^LDA-1,0,02,',ITOA(sctZONE_DATA[3].snHSP),','"
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,03,Heat-,"2,2"'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,04,Cool+,"2,3"'
SEND_COMMAND dvKP_MIO_DMS,"'^LDA-1,0,05,',ITOA(sctZONE_DATA[4].snCSP),','"
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,06,Cool-,"2,4"'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,07,Home,"2,5"'
SEND_COMMAND dvKP_MIO_DMS,'^LVC-1,2'
SEND_COMMAND dvKP_MIO_DMS,'^LVU-1'
I can tell the code is working in that the channel codes work, but no matter what I do, I can only get the channel codes to show up on the LCD.
SEND_COMMAND dvKP_MIO_DMS,'^LDD-1'
SEND_COMMAND dVKP_MIO_DMS,'^LDN-1,1,3,HVAC'
SEND_COMMAND dvKP_MIO_DMS,'^LDT-1,1,0,0,3'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,01,Heat+,"2,1"'
SEND_COMMAND dvKP_MIO_DMS,"'^LDA-1,0,02,',ITOA(sctZONE_DATA[3].snHSP),','"
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,03,Heat-,"2,2"'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,04,Cool+,"2,3"'
SEND_COMMAND dvKP_MIO_DMS,"'^LDA-1,0,05,',ITOA(sctZONE_DATA[4].snCSP),','"
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,06,Cool-,"2,4"'
SEND_COMMAND dvKP_MIO_DMS,'^LDA-1,0,07,Home,"2,5"'
SEND_COMMAND dvKP_MIO_DMS,'^LVC-1,2'
SEND_COMMAND dvKP_MIO_DMS,'^LVU-1'
I can tell the code is working in that the channel codes work, but no matter what I do, I can only get the channel codes to show up on the LCD.
Comments
check your single and double quotes around the port/channel. This example is from the R4 remote manual (available at AMX) and may have better examples than the MIO DMS manual. I know when I worked for a brief time w/ the MIO DMS it was aggrevating to say the least.
At the time I had no job for this so I was just testing for an in house DMS pad and after a short period of time moved on to other things and have not looked back. I will be re-visiting this sometime soon for a job that's about to start installing.
All I can remember is I wasn't very happy with it and the way I was doing this may have been completely a$$ backwards but I got text to update and was able to make selections, so.....
for(nSBLoop = 1; nSBLoop <= SBMaxListDisplayed; nSBLoop ++) { if (SoundBSent[1].SBCurQueueDisplay[nSBLoop] != SoundB[1].SBCurQueueDisplay[nSBLoop]) { if (nSBLoop == 1) { SEND_COMMAND dvDMSSoundBArray,"'^LDD-2'" ; //Deletes any existing data list at address 2 SEND_COMMAND dvDMSSoundBArray,"'^LDN-19,2,3,Roku_Queue'" ;//Creates new 3-column data list at port 19, address 2 named "Roku_Queue" SEND_COMMAND dvDMSSoundBArray,"'^LDT-2,1,0,0,3'" ; //Specifies column types for the data list at address 2 starting at column 1 SEND_COMMAND dvDMSArray,"'^LDD-1'" ; //Deletes any existing data list at address 1 SEND_COMMAND dvDMSArray,"'^LDN-1,1,3,Roku_Queue2'" ; //Creates new 3-column data list at port 1, address 1 named "Roku_Queue2" SEND_COMMAND dvDMSArray,"'^LDT-1,1,0,0,3'" ; //Specifies column types for the data list at address 2 starting at column 1 } SEND_COMMAND dvTPSoundBArray,"'!T',59 + nSBLoop,SoundB[1].SBCurQueueDisplay[nSBLoop]" ; SEND_COMMAND dvDMSSoundBArray,"'^LDA-2,0,Roku_Queue',itoa(nSBLoop),',',SoundB[1].SBCurQueueDisplay[nSBLoop],',"',itoa(19),',',itoa(59 + nSBLoop),'"'" ; SEND_COMMAND dvDMSArray,"'^LDA-1,0,Roku_Queue2',itoa(nSBLoop),',',SoundB[1].SBCurQueueDisplay[nSBLoop],',"',itoa(19),',',itoa(59 + nSBLoop),'"'" ; SoundBSent[1].SBCurQueueDisplay[nSBLoop] = SoundB[1].SBCurQueueDisplay[nSBLoop]; if (nSBLoop == SBMaxListDisplayed) { SEND_COMMAND dvDMSArray,"'^LVC-1,3'" ; //Sets the column number (3) to display in the view with address 1 SEND_COMMAND dvDMSArray,"'^LVU-1'" ; //Updates the view at address 1 SEND_COMMAND dvDMSSoundBArray,"'^LVC-2,2'" ; //Sets the column number (2) to display in the view with address 2 SEND_COMMAND dvDMSSoundBArray,"'^LVU-2'" ; //Updates the view at address 2 } } }Thanks Vining,
The code sample you posted is the same example from the DMS manual. Unfortunately - I have used this code, and it has the same issues I have with mine, it will display some data - but only one field. It will not update with the button presses they show in the example either.
Having a full day where I got nowhere with this, I had a lot of opportunity to try different things. Needless to say I am very frustrated with this product!
I saw your other post, with that code sample of yours, and I tried it as well, but had the same problem. I don't know if I am missing something from the DMS setup or what - but I am goign nuts trying to get this working.
If anything else comes to mind, please let me know!
Thanks again
Ok, so just being a bonehead after all. I switched from the file I was going to use on the project to a test file, and forget to set the address code for the list.
Can someone tell me why we need an address code and a table code? This seems a bit redundant to me.