The latest SDK for the 5000 series scopes does not include any example for VB.Net, C# or Excel. Can you provide a small code snippet the shows the correct setup for using RunBlock and IsReady?
Thanks for the sample code. I got both the C# and VB.Net examples working.
I did have to assign the "index" variable in the VB.Net example that is used
for the streamwriter output.
Neither of these examples use the ps5000aWrap.dll.
The Excel example does use ps5000aWrap.dll and I have not been able to make it work.
It always fails when it first tries to use the ps5000aWrap.dll file.
Run-time error "48":
File not found: ps5000aWrap.dll
I copied PicoIpp.dll, ps5000a.dll to both the System32 and SysWOW64 directories.
I copied ps5000aWrap.dll 32 bit version (10k size) to the System32 directory and
ps5000aWrap.dll 64 bit version (11k size) to the SysWOW64 directory and it makes no
difference.
I am running Win 7 Pro 64 bit with SP1 and Microsoft Office for Home and Business 2010.
As a note, I have been through all of this for the 4000 series scopes and I can make
the Excel example for it work here as well as my custom code utilizing the ps4000wrap.dll.
I realize it is a completely separate example but it did need the same kind of manipulation.
I will explore using the delegate method with my code since it seems to be a more
integrated method but I thought you might want the feedback.
If you have any insight into why the ps5000aWrap.dll file can not be found please let me know.
I am running a 32 bit version of Excel and have both redistributable versions installed. I also have the
full VS2010 install including C++. There could be a conflict somewhere but the fact that the ps4000.xls
version works correctly leads me to doubt this.
I am starting to use the delegate method and it seems to be working.