Main Site Documentation

Digital pulse?


#1

I create a pulse, with a digital signal, smaller than 1 mSec.?
If yes, how do I do it?

example:

GT.Socket socket1 = GT.Socket.GetSocket(1, false, null, null);
Ser = new GT.Interfaces.DigitalOutput(socket1, GT.Socket.Pin.Three, false, null);
Ser.Write(true);
Thread.Sleep(1);
Ser.Write(false);   

Thanks


#2

If you are using premium board I would use SignalGenerator for that purpose.


#3

Also, remember that code like this will be interrupted by other parts of the framework, most notably garbage collection. Consider using RLP/RLPLite if you need more deterministic control, or you may be able to even use PWM.