Robin wrote:When you call ps4000RunBlock, you can pass NULL instead of a function pointer.
Robin wrote:Hi Olaf
With the attached driver, it is no longer necessary to use a wrapper for block-mode operation.
Instead, call ps4000RunBlock and pass NULL instead of a function pointer. You can then poll the driver using:
PICO_STATUS ps5000IsReady (short handle, short * ready);
Regarding the PICO_INVALID_HANDLE status, it sounds like your application and the wrapper are loading different versions of ps4000.dll.
Also, the source code for the wrapper is available in the SDK.
Hope this helps
myrunblock.obj .text: undefined reference to '_ps6000RunBlock@36'
C:\MATLAB701\BIN\WIN32\MEX.PL: Error: Link of 'myRunBlock.dll' failed.
I had similar problem and contacted support. I think the solution using mex file will be more difficult as it need deeper knowledge on linking in Matlab. Perhaps if you ask Matlab support they will help you. It have something to do with dynamic and static linking.
I suggest you use wrap library which is part of SDK, there header file also up to my knowledge. If you open two libraries in the beginning they share handles to your units automatically. So the only thing you change
is mentioning wrap library when calling RunBlock command - Status =
For inspiration I attach file of my program for three units with all required library files. This program worked well. There troubles in memory management when more than one unit is used. It is somewhere between Matlab, java and ps4000 library, which I was not able to solve.
So I finish with Matlab-Picoscope coupling and solve it by writing in C one-task program.
Users browsing this forum: No registered users and 0 guests