Home AMX User Forum NetLinx Studio

Communication between IPad and ni-3100

I have a problem to communicate between the iPad and the ni-3100. When I contact to the tpcontrol in the iPad and I press on the button it doesn't do anything (it even doesn't change color from red=press to yellow=release). In the netlinx I see that the iPad is online. I don’t know what the problem is.

Comments

  • can you post a screenshot of the programming properties tab for that button?
  • mpullinmpullin Posts: 949
    This is your first time using TPDesign4, yes? You'll want to select the button and click the programming tab. The feedback type is, by default "channel" which means it is tied to a channel on the touchpanel device in the program running on the master it's connected to. By default the channel code is 'none' which means the on state of the button will never be reached.

    You can change the feedback type to 'momentary' if you want the button to change state whenever it's touched, but that does not test connectivity to the master (the state changing is all done in the panel, or in this case the ipad)

    So you want to give it a channel code, say, 30. Now in your program, in the DEFINE_EVENT section you want something like this:
    BUTTON_EVENT[dvTP,30]{
         PUSH:{
              ON[BUTTON.INPUT.DEVICE,BUTTON.INPUT.CHANNEL];
         }
         RELEASE:{
              OFF[BUTTON.INPUT.DEVICE,BUTTON.INPUT.CHANNEL];
         }
    }
    
    This code will make the button change states when it is pressed, if there is a connection to the master.
  • Joe HebertJoe Hebert Posts: 2,159
    mpullin wrote: »
    BUTTON_EVENT[dvTP,30]{
         PUSH:{
              ON[BUTTON.INPUT.DEVICE,BUTTON.INPUT.CHANNEL];
         }
         RELEASE:{
              OFF[BUTTON.INPUT.DEVICE,BUTTON.INPUT.CHANNEL];
         }
    }
    
    This code will make the button change states when it is pressed, if there is a connection to the master.
    Or this which will do the same thing:
    BUTTON_EVENT[dvTP,30]{
         PUSH:{
              TO[BUTTON.INPUT]
         }
    }
    
  • udiudi Posts: 107
    another question

    Thanks I did it and it works.
    I have another question. I communicate between the iLight and the amx and in the TPDesign I draw a multi-state bargraph, I want that when I raise or lower it's level it would change the light. I defined a level code in the software but I don't know how to do the push event of the bargraph.
Sign In or Register to comment.