I have added some lines to the MaestrEsayExampleVb application to get and set Settings. When I make the call to GetSettings I get an error (MaestroError.jpg attached).
Here is my modification to the TrySetTarget function:
Sub TrySetTarget(ByVal channel As Byte, ByVal target As UInt16) Dim UscS As UscSettings Try Using device As Usc = connectToDevice() ' Find a device and temporarily connect. UscS = device.getUscSettings()<font color="#FF0000"> 'THIS CALL CAUSES THE EXCEPTION</font> UscS.channelSettings(channel).mode = ChannelMode.Output device.setUscSettings(UscS, False) device.setTarget(channel, target) ' device.Dispose() is called automatically when the "Using" block ends, ' allowing other functions and processes to use the device. End Using Catch exception As Exception ' Handle exceptions by displaying them to the user. displayException(exception) End Try End Sub