Sending RDM commands via e:script

This script shows how to reset a device via RDM to factory settings. All you have to know is the RDM address of the device, you don’t have to know the port or controller to which the device is connected, as the the reset command is sent via all ports that support RDM. And you don’t have to activate RDM. This is an easy and simple way to reset a device without a former RDM discovery. Even devices not answering to discovery requests can be reset. This is the procedure:

After declaring and initialising the necessary variables, an iteration run is executes over all controllers and corresponding ports. This includes ports that have no activated RDM. The key function here is SendRdmRequestByController.

// RDM reset script by Till Wiebke
// Traxon Technologies Europe, Paderborn
int controller = 0;
int port = 0;
int success = 0;

// Unique RDM ID of the target device.
string target = "4845:000002C6";
// The binary object block is needed for the custom RDM request.
int bobHandle = BobAllocate(0);

for (controller = 0; controller < GetRdmControllerCount(); 
   for (port = 0; 
        port < GetRdmControllerPortCountByController(controller);
      // Enable the controller if necessary.
      success = RdmPortIsEnabledByController(controller, port);
      if (0 == success)
         success = RdmPortEnableByController(controller, port);
      if (1 == success)
         // Sending a "factory reset" (0x0090) 
         // set-request (0x30) to the root-device (0).
         printf("FACTORY_DEFAULTS to %s, controller %d,port %d.\n",
                                         target, controller, port);
         SendRdmRequestByController(controller, port, target, 
                                    0, 0x30, 0x0090, 0, bobHandle);

Video tutorials for LAS 6.x

LAS video tutorials

LAS video tutorials

We have created some new videos about the Lighting Application Suite. At the moment, there are six videos available. Select Downloads and then Tutorials. Be aware that the videos are in 720p resolution, so your wires into the Internet should not be too thin. The AVI versions are smaller, the FLV versions much bigger, but with a better resolution.

Stay tuned, more to come soon …

Ramp Intensity Start / Stop actions

Today I realized that the Ramp Intensity Start and Ramp Intensity Stop actions are not intuitively understandable. The idea was to mimic the “Intesity Up” and “Intensity Down” actions from the Butler XT Stand Alone Mode triggers. That is, while holding a button, the corresponding fader will move up (or down) until the button is released.

To do so, create an Action Pad button with Toggle State = Push
As Action#1 use Ramp Intensity Start for the desired fader and a delta of 1.
As Action#2 use Ramp Intensity Stop for the same fader.

Here is an example Action Pad page:
Action Pad page - Ramp Intensity example (934)

A delta of 1 means that the fader changes by 1% per frame, so it takes 3 seconds to go from 0% to 100% (or vice versa).