Controlling or measuring devices