i have a problem with the Excel Example for Picoscope 2206a.
I have download the PS2000asdk_r10_5_0_32 from your website and the Picoscop6 software.
the excel say my: i dosn't found the ps2000aWrap.dll.
Try specifying the path to the ps2000aWrap.dll file in the relevant Declare Function lines or alternatively copy the file to the
C:\Windows\System32 folder.
If you are collecting streaming data please let us know as there are new functions to help with this in the wrapper dll.
i have the problem found.
the ps2000aWrap was in the C:\Windows\System32 folder, but Excel cann't read this file.
I muss Enable all macros.
Thanks for your help.
By the Streaming Data it maket only one messuring. and than he stop it.
The Excel Example also runs on a Windows 64 bit System. it is only needs to change the following:
Declare Function ps2000aOpenUnit Lib "ps2000a.dll"
to
Declare PtrSafe Function ps2000aOpenUnit Lib "ps2000a.dll"
and this by all funktions and Sub.
i have show the ps2000aWrap.c file.
But he doesn't found the ps2000aWrap.dll in the debug.
When i put the dll in this file, he delet this by the debuging and comes to error from Visual Studio2012 express
LINK1120 and LINK2019.
Error 6 error LNK1120: 5 unresolved external C: \ Program Files (x86) \ Pico Technology \ PicoScope6 \ Wrapper \ Debug \ ps2000aWrap.dll 1 1 ps2000aWrap
Error 5 error LNK2019: unresolved external symbol "_ps2000aGetStreamingLatestValues @ 12" in function "_GetStreamingLatestValues @ 4". C: \ Program Files (x86) \ Pico Technology \ PicoScope6 \ wrapper \ ps2000aWrap.obj ps2000aWrap
and the other of german it is the same:
Fehler 4 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ps2000aRunBlock@36" in Funktion "_RunBlock@20". C:\Program Files (x86)\Pico Technology\PicoScope6\Wrapper\ps2000aWrap.obj ps2000aWrap
Fehler 3 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ps2000aSetPulseWidthQualifier@28" in Funktion "_SetPulseWidthQualifier@28". C:\Program Files (x86)\Pico Technology\PicoScope6\Wrapper\ps2000aWrap.obj ps2000aWrap
Fehler 2 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ps2000aSetTriggerChannelConditions@12" in Funktion "_SetTriggerConditions@12". C:\Program Files (x86)\Pico Technology\PicoScope6\Wrapper\ps2000aWrap.obj ps2000aWrap
Fehler 1 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ps2000aSetTriggerChannelProperties@20" in Funktion "_SetTriggerProperties@16". C:\Program Files (x86)\Pico Technology\PicoScope6\Wrapper\ps2000aWrap.obj ps2000aWrap
I have a questens can i save the streaming data in a excel file? but we need the throughout.
There is a 32-bit dll already provided in the Wrapper/Release directory which you can use, unless you wish to modify the functions provided.
The ps2000a.lib file from the SDK may not have been loaded into the project.
If you are looking to collect streaming data by running a VBA program from MS Excel, then please note that there is a limit of 1048576 rows in the spreadsheet.
How long are you looking to collect data for, what is the sampling interval and are you using both channels?
It works also everything, but the program wants to access the ps2000aWrap.dll and that does not work then get the error I posted above before. Therein lies the whole trouble.
I have to use the ps2000aWrap.c. The yes then invites all files.
so now I know where my mistake was.
have the C Console now then get used but allocation error for example that of the int type void is not compatible with what's going on there now.
The microsoft Visual Studio 2013 say: IntelliSense: a value of type "" void * "to" any entity can be assigned the type "" int16_t * "".
And the same say the program in line 1223 :
an other question.
Where can I find the ps2000a.lib (32-bit) in the SDK folder it is not.
Thanks
Edit: I found it. but Microsoft Visual Studio can not open this file.
The error is due to the variable 'i' being a signed 32-bit integer while the enumeration 'PS2000A_CHANNEL_A' is an unsigned 32-bit integer. You simply need to put brackets around the sum as shown below: