Exemplo n.º 1
0
 private static extern int device_set_ExternalSwitchState(IntPtr devicePtr, ExternalSwitchInput extSwitch);
Exemplo n.º 2
0
        private void _electrodesControl_ExternalSwitchComboSelectedChanged(object sender, ExternalSwitchInput selectedInput)
        {
            if (_device.ReadParam <DeviceState>(Parameter.State) == DeviceState.Disconnected)
            {
                return;
            }

            _device.SetParam(Parameter.ExternalSwitchState, selectedInput);

            var updatedParam = _device.ReadParam <ExternalSwitchInput>(Parameter.ExternalSwitchState);

            if (updatedParam != selectedInput)
            {
                _electrodesControl.SwitchStateComboValue = updatedParam;
            }
        }
Exemplo n.º 3
0
 private static extern int device_read_ExternalSwitchState(IntPtr devicePtr, out ExternalSwitchInput outExtSwitch);