Thorlabs / Motion_Control_Examples

Software examples for Thorlabs motion control products (e.g. T-Cube, K-Cube, and benchtop brushless, DC, stepper, and Piezo motor controllers)
MIT License
75 stars 31 forks source link

Write triggering examples for devices that support triggering #21

Closed ThorlabsMCalle closed 1 year ago

BogdanL2022 commented 2 years ago

With the simulator(BBD302 Motor Controller) there is an error in: IOPortConfigParameters IOConfig = device.GetIOPortConfigParams(0x01);

An unhandled exception of type 'System.NullReferenceException' occurred in Thorlabs.MotionControl.DeviceManagerCLI.dll Additional information: Object reference not set to an instance of an object. IsMotherboardSettingsKnown = 'device.IsMotherboardSettingsKnown' threw an exception of type 'System.NullReferenceException'

This is After I connected and enabled the channel(which was missing), otherwise first error comes in MotorConfiguration motorSettings = channel.LoadMotorConfiguration