Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public LogicPWMConnector()
 {
     deviceConnector = new MSaleaeDevices();
     deviceConnector.OnLogicConnect += new MSaleaeDevices.OnLogicConnectDelegate(devices_OnConnect);
     deviceConnector.OnDisconnect   += new MSaleaeDevices.OnDisconnectDelegate(devices_OnDisconnect);
     pwmGenerator            = new LogicPwmDataGenerator();
     pwmGenerator.sampleRate = sampleRate;
     deviceConnector.BeginConnect();
 }
Esempio n. 2
0
 public ConsoleDemo()
 {
     MSaleaeDevices devices = new MSaleaeDevices();
     devices.OnLogicConnect += new MSaleaeDevices.OnLogicConnectDelegate(devices_LogicOnConnect);
     devices.OnLogic16Connect += new MSaleaeDevices.OnLogic16ConnectDelegate(devices_Logic16OnConnect);
     devices.OnDisconnect += new MSaleaeDevices.OnDisconnectDelegate(devices_OnDisconnect);
     devices.BeginConnect();
     Console.WriteLine("Logic is currently set up to read and write at {0} Hz.  You can change this in the code.", mSampleRateHz);
 }
Esempio n. 3
0
        public ConsoleDemo()
        {
            MSaleaeDevices devices = new MSaleaeDevices();

            devices.OnLogicConnect   += new MSaleaeDevices.OnLogicConnectDelegate(devices_LogicOnConnect);
            devices.OnLogic16Connect += new MSaleaeDevices.OnLogic16ConnectDelegate(devices_Logic16OnConnect);
            devices.OnDisconnect     += new MSaleaeDevices.OnDisconnectDelegate(devices_OnDisconnect);
            devices.BeginConnect();
            Console.WriteLine("Logic is currently set up to read and write at {0} Hz.  You can change this in the code.", mSampleRateHz);
        }