OpenNI getting emitter's state

Hey guys,

my question here is a follow up to this topic. I’m able to toggle the emitter now but it seems that it switches on after a random period of time. Sometimes after 1s, sometimes after 30s.
Is there a special behavior / rule or is this a bug?

Furthermore I’d like to know how I can read the actual state of the emitter (if it is switched on or off).

Thanks in advance.