I run the SDK code in VS6 and here are the results:
When I run the sdk example VisualStudio stops working at call "sdSetTriggerAndSampleRate".
This is the code: InitializeVariables
'Open Device
Result = sdSearchDevice(DeviceIndex) 'Device found, Result=1
If Result = 0 Then
MsgBox ("DSO not found!")
End
End If
MainForm.Visible = True
'initialize hardware
Result = sdGetLevel(DeviceIndex, level(0)) 'Device index is 0
Result = sdSetTriggerAndSampleRate(DeviceIndex, TriggerSlope, ETS, Controlstate, PulseTrigger, PulseTriggerMode, PulseWidth) 'Stops responding !
Result = sdSetFilt(DeviceIndex, FiltAndTrigger)
Result = sdSetVoltageAndCoupling(DeviceIndex, Ch1Voltage, Ch2Voltage, Ch1_ACDC, Ch2_ACDC, Controlstate)
Result = sdSetOffset(DeviceIndex, levers, Ch1Voltage, Ch2Voltage, TriggerSource, level(0))
Result = sdCaptureStart(DeviceIndex)
Result = sdTriggerEnabled(deivceindex)
Initialization = False
MainForm.GetDataLoop.Enabled = True
So first two calls trough SDK5200A.dll go fine (sdSearchDevice, sdGetLevel) and return "1" as result.
But call to "sdSetTriggerAndSampleRate" gets no response and app stops responding until I unplug usb.
I'm not really sure where to go from here...