Dispose() public method

public Dispose ( ) : void
return void
Ejemplo n.º 1
0
        public void Dispose()
        {
            this.Disconnect();
            Thread.Sleep(100);                  // Allow the PWM generator to fully stop
            pwmGenerator.Dispose();

            pwmGenerator    = null;
            logicDevice     = null;
            deviceConnector = null;
            running         = false;

            GC.Collect();
        }