MXA-MPL code
champ
Posts: 261
in AMX Hardware
I have had 2 projects requiring code for these and both jobs just wanted a single preview.
If you look at the demo you get the joy of trolling through 700+ lines of code until you finally figure out that it only takes about 10 lines consisting of a few commands that are only documented in the online version of AMX PI so I thought I'd share them.
If you look at the demo you get the joy of trolling through 700+ lines of code until you finally figure out that it only takes about 10 lines consisting of a few commands that are only documented in the online version of AMX PI so I thought I'd share them.
(*** Minimum code required to display a preview on address 100 **) // put the next line in panel online event SEND_COMMAND dvPNL,"'^RAF-BobSnapIt1,%P0%Hmxamp%Asnapit%Fslot1.jpg,%V1'" // Assigns the resource ’BobSnapIt1’ to type TCP, host 'mxamp', path 'snapit', file 'slot1.jpg' and cache image after loading. // when you want to preview an image (it automatically updates so no need to call repeatedly) SEND_COMMAND dvPNL,"'^SLT-1,videoinput=on'" // enable video on the MXA-MP wait 5 'ThePause' { SEND_COMMAND dvPNL,"'^RMF-BobSnapIt1',%V0'" // Modify the resource ’BobSnapIt1’ each time it comes into view. SEND_COMMAND dvPNL,"'^BBR-100,0,BobSnapIt1'" // Assign the resource 'BobSnapIt1' to button address 100 on and off states SEND_COMMAND dvPNL,"'^RMF-BobSnapIt1,%V1'" // Modify the resource ’BobSnapIt1’ and cache image after loading. } // For live video you first get a static preview using the code above, then start the stream using the next line SEND_COMMAND dvPNL,"'SLT-1,start=video'"; // when you want to stop the stream… SEND_COMMAND dvPNL,"'SLT-1,stop=1'";
0
Comments
Had to call Tech Support on this unit this morning. Was pointed to TechNote 1007, which details the commands to the panel to set the input type (HDMI/DVI) and the current resolution.
http://www.amx.com/techsupport/techNote.asp?id=1007
The MPL manual says to look in the Modero X series programming manual, but that doesn't show the commands for ^SLT-...
Also make note that even though the documentation says you can power the 2000xl panel from the power port on the MPL, the power output is only 3.0 amps, while the panel needs 4.4 amps. Hooked it up according to the MPL wiring diagram and the panel would flicker. Not enough juice from the MPL.
If you are interested in using an MPL to preview a single source on the X-Series surfaces it's an extremely similar process to using the old BoB's and a Modero panel. Just create a button, select 'MXA-MPL' from the 'Video Fill' option and your done.
When the button is visible on screen you'll see the 'Video Out' LED on the MPL light up and it will do its streaming thing.
One thing that is important to note is that regardless of how you are using an MPL you need to ensure that you set the resolution and input type (using the ^SLT command set) to match what you are feeding it with every time it is powered up. These settings are not persistant. The X-Series Programming Guide was updated on Friday and has full details of the syntax for these commands (as well as other useful MPL info).