Generator sets wrong frequency

Hello,

I am back again with new problem linked to my earlier request to build in a sweep function for library files in the FGU link software see Download link: box.net/shared/a5ub2zlbjq

With this version of FGU.exe and FGUlink.dll the generator does not produce the right frequency.

I connect the generator with startgen command.
Send the command setgen(1, 350000, 10, 0) and startgen
Result: the generator generates a sine waveform of 340KHz and that is wrong! It is 10Khz to low!

After that send the command setgen(1,450000,10,0) and startgen
Result the generator generates a sine waveform of 460Khz and that is also wrong! Is is 10Khz to high!

After sending the same command again the frequency is OK at last!

Please test and correct software fault in FGU.exe or FGUlink.dll distributed via the faulty link box.net/shared/a5ub2zlbjq

Best Regards,
Christian

Now the problem is fixed.
Here is the link to download the updated files:
box.net/shared/a5ub2zlbjq

Thanks for super quick response.

Now this problem with the faulty frequencies is solved but an other problem appeared now:

I load a library wave with the setlibwave command
and then the startgen command. So far looks fine.

After that I start the sweep of this wave with command:
setsweep(start frequency, end frequency, amplitude, offset, sweep time, 3)

Now the initial waveform load from the library is inverted! This is not OK!

Please correct this too.

Regards Christian

The problem is now fixed.
Here is the link to download updated files: box.net/shared/a5ub2zlbjq

Everything OK now!

Thanks again for quick response and fix!

Best Regards,
Christian