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”?
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.
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].
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.
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.
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