I was using the DLL from : “fgulink_rev3.zip”
and from : “pcsu1000_dll_package.zip” (updated 4-5-2007)
I deduced from your message that the best place where i can found the most recent updates is always the most recent PcLab2000SE…
Now i download the PcLab2000SE 3.05 and I try if the delay are not necessary.
Normally i prefer the “not installed” versions and “isolated” applications so now i will install PCLAB2000, copy the important files end then disinstall it.
Regard to my delays they are as follows :
Gen_Start
'
Scope_TrgOn
Scope_TrgSource 2
Scope_TrgEdge 1
Scope_TrgLevel 90
'
Scope_Voltage1 0
Scope_Coupling1 2
Scope_YPosition1 0
'
Scope_Coupling2 1
Scope_YPosition2 0
And my wrapping functions are as follows:
Public Sub Gen_Start()
StartGen
Sleep 5000
End Sub
Public Sub Scope_TrgOn()
TrgOn 1
Sleep 30
End Sub
Public Sub Scope_TrgSource(n As Long)
TrgSource n
Sleep 30
End Sub
Public Sub Scope_TrgEdge(n As Long)
TrgEdge n
Sleep 30
End Sub
Public Sub Gen_Set(ByVal func As Long, ByVal freq As Single, ByVal ampl As Single, ByVal offset As Single)
SetGen 1, 1, 1, 0
Sleep 100
SetGen func, freq, ampl, offset
Sleep 100
End Sub
If I remove delays (a use a sleep-window api) then many commands are not executed.
The main delay is after “StartGen” and sometimes, when the system is busy also with this great delay (5 seconds) some following command is not executed.
The “SetGen” command must be preceded with a “dummy” command
with some parameter set to a different numerical value.
If I do not send this preliminary command and two “SetGen” or “SetSweep” commands with the same parameters are issued then only the first is executed.
This is wrong because if the frequency is changed (for example by a
human command ) then a new SetGen must be executed always.
bye and thanks for your patience to read my english…
Livio