Sweeping a Library wave form in PCGU1000

Hello,

I am developing a VB-application to control the PCGU1000.
When I use the original software (PCLAB2000) to control the generator PCGU1000 it is possible to sweep a library wave form; I put a tick in checkbox “sweep selected waveform” and then start the sweep.
In the FGULink.dll control set there are no commands describing how to control a library waveform. Only Square and Sine are described.

Could you explain how to sweep a library waveform via VB-commands? Which parameter is controlled under the checkbox “sweep selected waveform”?

Please reply,
Chris

I’m sorry, the sweep library waveform is not supported by the DLL.

We are developing a product using the PCGU1000 based on the a demo in 2010 which demonstrated the possibility of sweeping a library waveform. Now you are telling me it is not possible in the DLL. I have seen it and used it. The PCLab2000 software has this possibility in it and also interfaces with the PCGU1000 generator. So you cannot tell me it is not possible!

I ask you to share the DLL used by the PCLab2000 software in which sweeping a library is really possible. Our company already spend a lot of time and money developing the application which uses the PCGU1000. So a NO is not acceptable for us. My advise: share the used DLL used by PCLAB2000 or develop a command which makes sweeping a library waveform possible.

Please reply.

Regards,
Chris

Now the problem is fixed. Now it is possible to sweep the library waveform too.
Set the parameter “form” to 3 in the function SetSweep.

Here is the link to download updated FGU.EXE and updated demo program to test this new feature: box.net/shared/a5ub2zlbjq

SetSweep
Syntax

procedure SetSweep(freq1, freq2, ampl, offset, time: Single; form:Longint);Parameters
freq1: Sweep start frequency in Hz.
freq2: Sweep stop frequency in Hz.
ampl: Peak-to-peak amplitude in volts.
offset: DC offset in volts.
time: Sweep time in seconds.
form: Sweep waveform type: 1=sine, 2=square, [color=#800000]3=previously selected waveform[/color].

Sorry, the new FGU.exe included in the download set is faulty. The setlibwave command does not work anymore now!!

Please correct and test please.
Regards,
Chris

Strange problem. - In my system it worked perfect loading and sweeping the library waveform.
When running the demo, the library waveform files must be in “lib” subfolder of the FGU.EXE program’s folder.
Now the subfolder \Lib is added to the download package.
Download link: box.net/shared/a5ub2zlbjq

It still doesn’t work. We work with with our software for more than a year now, the generator always worked without any error with prior FGUlink and FGU.exe
Now we only replaced the FGUlink.dll and FGU.exe with the new version; Setgen command and then startgen command works fine. Setlibwave command and then startgen command still does not work. No wave output. Even when we put our lib file in the lib directory.

Please send source code of demo included, then we can help to analyze the cause.

Please reply,
regards,
Chris

Sorry, it works FINE now. Our compiler was the cause.

Sorry, for inconvenience and thanks for prompt reactions!

Best Regards,
Chris

It is good that you found the cause and the problem is solved now!
Thank you for the reply.

Hello,

I encounter the following problem with this release: box.net/shared/a5ub2zlbjq

I installed the software on a new PC but the generator won’t switch to ready state 1, after sending the opengen command it replies -1
Problem also appears when using the included demo, it does not activate the generator.

After testing and exchanging the problem only occurs when using the included fgu.exe file in above link. There is a software bug in this file.

Other and older versions of FGU.exe works fine.

Please check and correct FGU.exe file in above library.

Thanks already,
Christian

I have now tested the latest (released September 17) FGU.EXE with Windows 2000 and Windows 7 64-bit.
Everything seems to be OK.

What operating system are you using?

Windows 7, 32 bit.

Strange problem indeed. Should work on Windows 7, 32 bit too.
Do you have the PCGU1000 driver version 5.4.0.0 installed?

It seems that on September 17 you downloaded this same FGU.EXE and got it working:
viewtopic.php?f=11&t=6630&p=25039#p25039
Did you use other operating system?

On 17th it worked indeed on a laptop that we use for development. I use the correct driver 5.4.0.0. also copied all project data including fgu.exe fgulink.dll to new pc and there the generator won’t start. Only replacement of FGU.exe for older version makes it work. Any suggestions?

The main difference between the old versions of the FGU.EXE and the Sept 17 version is that the new version doesn’t need to be run “As Administrator”. The new version has different method to check the virtual COM port address of the PCGU1000.

Now here you can download a modified version. This version is using the old method to check the virtual COM port address. This version has to be run “As Administrator”.
Here is the download link: box.net/shared/1q8m2nqnav41acd5urhj

Thanks, that works fine now!

Thanks again!

Regards,
Christian