Yes this is possible.
You can to use the FGULINK.DLL to do this.
The FGULINK.DLL and the files accompanied you can download from this page:
velleman.eu/distributor/supp … 1000&type=
Download the package:
FGUlink pack. DLL for making your own software using our PCGU1000 generator (Rev4 25/5/2009) Driver v5.4.0.0 must be used for XP, Vista and Windows 7
The package contains documentation and demo programs written in Visual Basic 6, Visual Basic 2008 Express and in Delphi.
What you have to do is to add a timer and two buttons - one to start the up/down sweep and other to stop the sweep.
Put the timer interval same as the sweep time.
When start button is pressed the timer starts.
When up sweep is complete the timer function activates and turns the sweep down etc.
Here the example in Visual Basic 6:
[code]Dim SweepDirection As Integer
Private Sub Command7_Click()
SweepDirection = 0
Timer2.Enabled = True
End Sub
Private Sub Command8_Click()
StopGen
Timer2.Enabled = False
End Sub
Private Sub Timer2_Timer()
If SweepDirection = 0 Then
SweepDirection = 1
LogSweep (True)
SetSweep 50, 20000, 5, 0, 10, 1
Else
SweepDirection = 0
LogSweep (True)
SetSweep 20000, 50, 5, 0, 10, 1
End If
End Sub[/code]
The function generator is controlled via the FGULINK.DLL and FGU.EXE program.
Do not run the generator in PcLab2000SE at the same time.
The original FGU.EXE doesn’t allow down sweep. You can download a modified FGU.EXE from this link: box.net/shared/anpqenego6
Put this FGU.EXE to the example project folders.
In case of Visual Basic 2008 Express put it to folder: \FGULink_Demo_VB2008_express\FGULink_Demo\bin\Debug