Search found 13 matches

by Hamsteh
Thu Sep 16, 2010 10:38 pm
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris, Thanks for that. I have used both MinGW compiler (Through Code::Blocks) and the Visual C++ compiler from Visual Studio 2008. One thing I have noticed is that if I hit 'B' to run 'Immediate Block' as soon as the application is accepting input I get what appears to be nonsense data in the da...
by Hamsteh
Thu Sep 16, 2010 12:29 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris,

Do you have a compiled version of ps6000con from the SDK that you can send me?

I find that there are a 'lot' of corrections necessary to even get it to compile - perhaps you have an older version that is correct or one that has been pre-modified?

Regards,
Alex
by Hamsteh
Wed Sep 15, 2010 12:02 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris, Your understanding of my problem is correct 'except' that it does occasionally happen on first run. For instance I have just run your 10xLoop executable a number of times and got the following results. Firstly it failed the first 5-10 times i ran it then my results were: 1,0,1,1,1,0,1,1,0,...
by Hamsteh
Mon Sep 13, 2010 10:40 pm
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris, I compiled your latest edit and ran it three times successfully. (i am referring to restarting the whole compiled application each time). ie. Hitting 'Run' or 'Compile and Run' in the ide application (in my case CodeBlocks) On the fourth 'Run' it hung here (i gave it a good minute before m...
by Hamsteh
Mon Sep 13, 2010 12:03 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris thankyou very much for your time. I have just compiled and run the modified code you sent and the first time it looped through perfectly. I then closed the console application and restarted it, and it is currently hanging at the first ps6000RunBlock call. Did you try re-running the applicat...
by Hamsteh
Thu Sep 09, 2010 12:56 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Hi Chris, Thankyou for your reply. I have since written a very basic C console application from scratch to read a block of data from the picoscope and I am STILL encountering the same intermittent errors of the runBlock function not finishing when expected. (Input is a 100Hz, 1V Sinusoid from a sign...
by Hamsteh
Wed Sep 08, 2010 5:58 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

I was unable to reproduce my hangs when using your example code once compiled, and as a result have been steeping through the CollectBlockImmediate() and BlockDataHAndler() functions comparing with mine. Had a couple of questions: First what is the purpose of using ps6000SetDataBuffers with the buff...
by Hamsteh
Wed Sep 08, 2010 12:55 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Re: Intermittent Hang on PS6403 during ps6000RunBlock

Thankyou for your reply. I see you have a new SDK out since last I checked but I have so far found a few issues that stop the example code from compiling under CodeBlocks. enThresholdDirection (lines 53-58 of PS6000con.m) need to be changed to the PS6000 specific, enPS6000ThresholdDirection likewise...
by Hamsteh
Mon Sep 06, 2010 4:48 am
Forum: C and C++
Topic: Intermittent Hang on PS6403 during ps6000RunBlock
Replies: 18
Views: 35732

Intermittent Hang on PS6403 during ps6000RunBlock

Hi there. I have written a small console application that simply stores a given amount of samples at a given sample frequency. What i am finding at the moment is that it will occasionally hang when ps6000RunBlock is called. My wait loop with timeout and ps6000GetValues will return a status of PICO_N...
by Hamsteh
Thu Aug 12, 2010 3:00 am
Forum: MATLAB
Topic: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW
Replies: 18
Views: 17734

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

Unfortunately the newer driver had the exact same effect as stated earlier. When passed a NULL pointer in the PS6000RunBlock function, Matlab crashes immediately. Since this I have written a Mex file which acts as a wrapper for the PS6000RunBlock function, also containing the callback and wait -for-...
by Hamsteh
Wed Aug 11, 2010 10:14 pm
Forum: MATLAB
Topic: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW
Replies: 18
Views: 17734

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

Thankyou Robin for your quick reply, I will attempt using the new drivers now.


Regards,
Alex.
by Hamsteh
Wed Aug 11, 2010 2:06 am
Forum: MATLAB
Topic: PS4000 Series - Callback Function Pointer for MATLAB&LABVIEW
Replies: 18
Views: 17734

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

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_HA...
by Hamsteh
Wed Aug 11, 2010 2:01 am
Forum: MATLAB
Topic: ps4000 Matlab
Replies: 11
Views: 10261

Re: ps4000 Matlab

I too am finding the same issue. I am finding it difficult to emulate the callback function in ps6000_RunBlock using Matlab. ps3000_run_block used to work perfectly with Matlab, a similar function would be most appreciated, or if anybody has a workaround it would save me a lot of headaches. Regards,...