New to AMX programming - Couple of Questions
Tom Knepper
Posts: 6
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
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
0
Comments
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.
If you send to 5001, nothing will switch/change.
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.
Define the device
dvTP_IPad = 10001:1:0
and then use TPCloud for loading the UI