ICC-4c C# SDK

Loading...
Searching...
No Matches
ICC-4c Advanced Examples

### Read EEPROM from the device (Lens/XPR/...).

ICC4cPwmSdkDeviceController controller = new ICC4cPwmSdkDeviceController(); controller.Connect([COM number])

var eepromSize = controller.DeviceEeprom.GetDeviceEepromSize(EChannel.Channel0); var eepromBytes = controller.DeviceEeprom.GetBytes(EChannel.Channel0, 0, 10);

### Output an impulse on one channel.

ICC4cPwmSdkDeviceController controller = new ICC4cPwmSdkDeviceController(); controller.Connect([COM number])

# pick a channel, amplitude, and impulse duration

var channel = EChannel.Channel0; var amplitude_A = 0.07; var duration_ms = 1.0;

controller.InputStage.ChangeActiveSystem(EChannel.Channel0, EInputSignalStageSystem.SignalGenerator); controller.InputStage.SignalGenerator.SetShape(EChannel.Channel0, ESignalGeneratorShape.Pulse); controller.InputStage.SignalGenerator.SetFrequency(EChannel.Channel0, 1 / (2 * duration_ms / 1000)); controller.InputStage.SignalGenerator.SetAmplitude(EChannel.Channel0, amplitude_A); controller.InputStage.SignalGenerator.SetDutyCycles(EChannel.Channel0, 0.5f); controller.InputStage.SignalGenerator.SetCycles(EChannel.Channel0, 1); controller.InputStage.SignalGenerator.SetUnitType(EChannel.Channel0, EICC4cPwmUnitType.Current); controller.InputStage.SignalGenerator.SwitchRunning(EChannel.Channel0, true);