Pico 4000 series using ps4000RunBlock

Having problems ? let us know the details here
Post Reply
Emmy
Newbie
Posts: 0
Joined: Wed May 22, 2013 9:06 am

Pico 4000 series using ps4000RunBlock

Post by Emmy »

i m new user of picoscoscop 4424.

I am a student and I work with picoscop 4424.
I use borland c + + 2006.
I want to use picospop in this modes: BlockMode, rabid block mode and streaming mode.
However, when running the code, an error: Loading module Msctf.dll. No debugging information. Base Address: $ 74,690,000. Pico_1chanel.exe process (3780),
Loading module msctfime.ime. No debugging information. Base Address: $ 75140000. Pico_1chanel.exe process (3780),
Exception raised to $ 7C812A6B. Exception class EAccessViolation with message 'Access Violation'. Pico_1chanel.exe process (3780),appear and blocks all.
in any operating mode that is triggered on methods ps400RunBlock. when I test with GetLastError, i found 127 's error code .
i verfy if that fonction exist in PS4000. dll and it ok!

I ask for your help !

a piece of my code

Code: Select all

//-----------------------------------------definition------------------------------------------------------------
 typedef PICO_STATUS  (*_ps4000RunBlockType) (short, long, long, unsigned long, short, long*,  short,ps4000BlockReadyType, void* );
	 _ps4000RunBlockType _ps4000RunBlock;

//----------------------------------------------------------------------------------------------------------

DLLHandle = LoadLibrary("ps4000.dll");
 if (DLLHandle != NULL) {

cout<< " dll charger"<

Hitesh

Re: Pico 4000 series using ps4000RunBlock

Post by Hitesh »

Hi Emmy,

Are you redefining the ps4000RunBlock function due to the callback? If so, you can use the RunBlock function in the ps4000wrap.dll to call this function and then poll the driver by calling IsReady(). Please see the ps4000wrap.c code in the SDK for details of the code.

I have noticed that in your function, the segment index parameter has been defined as a short rather than an unsigned short so you should change it to:

Code: Select all

typedef PICO_STATUS  (*_ps4000RunBlockType) (short, long, long, unsigned long, short, long*,  unsigned short,ps4000BlockReadyType, void* );
    _ps4000RunBlockType _ps4000RunBlock;
Can you get a status code from your _ps4000RunBlock?

Regards,

Post Reply