Hi all
I've searched around looking for a solution to this... to tell the truth I havent a clue what the problem is. I've coppied code that others claim to be functioning and it still returns a "1". According to the SDK a value of "0" means its working.
Declare Function ps2000_set_sig_gen_built_in Lib "ps2000.dll" (ByVal handle As Integer, ByVal offsetVoltage As Long, ByVal pkToPk As Long, ByVal waveType As Integer, ByVal startFrequency As Single, ByVal stopFrequency As Single, ByVal incriment As Single, ByVal dwellTime As Single, ByVal sweepType As Integer, ByVal sweeps As Long) As Integer
A status code of 1 indicates a successful execution of the function - the status codes returned by this driver are different to most of the other PicoScope drivers which use the status codes defined in the picoStatus.h header file.
How are you verifying the output of the signal generator.
You may wish to declare the waveType and sweepType as 'Long' data types.
I have it connected to an oscilloscope. The SDK states that it returns "0: if successful" and an "Error code: if failed". I made the recommend changes in the Declaration. Still not functioning. I've tested the sig gen using pico6 and it works there.