Search found 2 matches

by MMartin
Tue Jul 06, 2010 6:32 am
Forum: MATLAB
Topic: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW
Replies: 18
Views: 17695

Re: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW

Hi Robin, it works using the wrapper library provided with the SDK: err=calllib('ps5000wrap','RunBlock',adata.unithandle.value,0,adata.numsamp,adtimebase,1,0); while calllib('ps5000wrap','IsReady',adata.unithandle.value)==0 Using RunBlock and IsReady from ps5000wrap.dll works as expected. Using ps50...
by MMartin
Fri Jul 02, 2010 8:58 am
Forum: MATLAB
Topic: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW
Replies: 18
Views: 17695

Re: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW

When you call ps4000RunBlock, you can pass NULL instead of a function pointer. Robin Hi Robin, just tried: calllib('PS5000','ps5000RunBlock',adata.unithandle.value,0,adata.numsamp,adtimebase,1,null,0,0,null); instantly crashes Matlab. Maybe the driver still writes to a null pointer? Note I am using...