Home AMX User Forum AMX General Discussion

New to AMX programming - Couple of Questions

Hello Everyone.

I am new to AMX programming and the AMX product line. I have been taking some of the online classes and am planning on registering for more as time allows. I am learning quite a bit with the videos but unfortunately I am a hands-on learner. To that end I have started writing some very basic code for the DVX-3150HD. I have run into a snag along the line and I am hoping someone might be able to help.

As I understand it, the DEFINE_DEVICE command is used to tell the program what is attached and where by using the D:P:S specification. My problem is with the P (Port) number used with the 3150. Let me try to explain.

I have microphones attached to MIC INPUT 1 and 2 respectively. In addition I have two projectors attached to HDMI OUTPUTS 1 and 2. My understanding it that these 4 devices would be defined as follows:

DEFINE_DEVICE

devMIC1 = 5001:1:1 //MIC1_INPUT
devMIC2 = 5001:2:1 //MIC2_INPUT
devPRO1 = 5001:1:1 //PROJ_1_OUTPUT
devPRO2 = 5001:2:1 //PROJ_2_OUTPUT

My confusion is how will the 3150 know which port 1 the program is referring to. It probably is a stupid question but I had to ask.

My other question is probably just as stupid. How do I define an IPad as a device? They system I am working with has no AMX touchpads, it was designed to be operated with an IPad running TPControl.

Any help I can get would be greatly appreciated. Thank you in advance.

Tom

Comments

  • ericmedleyericmedley Posts: 4,177
    This is actually explained prettw well in the documentation which you can get at http://www.amx.com/products/DVX-3150HD.asp

    But basically in this case the port number correspoinds to the outup zone. So for example, if you wanted to raise the output volume of output 3 you'd pulse channel 25 on device:03:01 That will ramp that zone's volume up.

    There's a whole rubrik on how it all breaks down in the device manual.

    Good luck.
  • NZRobNZRob Posts: 70
    Just a tip bud - the switcher part of the 31 and 21 series is device 5002, not 5001 which is the processor.
    If you send to 5001, nothing will switch/change.
  • Thanks Eric for the help. I somehow missed that in the manual. It makes a lot more sense now. Actually now that I have seen it in the manual and if I am understanding it correctly, sending a pulse to output 3 on channel 25 would actually LOWER the volume not RAISE. :-)

    Also thank you Rob for pointing out my typo. In my actual program I have the device defined as 5002. I just retyped it all instead of taking the easy way of copy/paste.

    Now I have to get an answer to the IPad question. I cannot test the program until I have a device to control the DVX.
  • CedricCedric Posts: 32
    For the IPad device, you just need to do the same as for a touchscreen (I had try using tpcontrol)
    Define the device
    dvTP_IPad = 10001:1:0
    and then use TPCloud for loading the UI
Sign In or Register to comment.