Test and Measurement Forum

ps6000GetValuesBulk makes (throws) an access violation

Post general discussions on using our drivers to write your own software here

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Fri Jul 20, 2012 10:24 am

Can you try with the attached dll
Attachments
PS6000.zip
New driver file
(746.4 KiB) Downloaded 181 times
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby hmaarrfk » Mon Jul 23, 2012 5:13 pm

Hi Martyn,

I tried the new DLL but it also does not work. (just crashes matlab without warning).

Could I see the code you are testing the DLL with by any chance? Maybe I am doing something wrong.

Mark



Dave,

I attached a zip of my matlab code, you should be able to reverse engineer my steps. I think I did them correctly, It has been a while since I looked at it though.

http://dl.dropbox.com/u/147864/picoscope_test.zip
(The file size is too big, maybe because I included a pdf in there)
the _old.dll is the original dll that comes with the sdk, I was trying Martyn's fix just now.

Start with my_pico_test.m

I modified the .h file to change function pointers to void *. Shouldn't make any difference except for the fact that the matlab compiler won't complain.

Sorry for the lat reply, I was expecting an email notification when some1 replied.

Hope it helps,

Mark
hmaarrfk
Newbie
 
Posts: 0
Joined: Sun Jun 24, 2012 11:41 pm

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Wed Jul 25, 2012 2:37 pm

The driver has now been fixed and will be released in SDK 10.4.2.2 shortly. The previous driver I posted was produced 1 hour before the bug was fixed so when looking at dates it seemed correct.

Please find attached the correct version.
Attachments
PS6000.zip
Version 1.0.0.290
(746.37 KiB) Downloaded 170 times
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Tue Aug 07, 2012 4:07 am

Any word on the SDK 10.4.2.2 release? I've just started using it and am running into a crash in my C program so I thought I'd try it.

Thanks,
Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Tue Aug 07, 2012 10:34 am

Take the current sdk and just drop in the dll from my previous post. If you are still getting errors after this let us know what they are.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Tue Aug 07, 2012 11:16 pm

Martyn wrote:Take the current sdk and just drop in the dll from my previous post. If you are still getting errors after this let us know what they are.

Okay. I'm pretty rusty with C (more of a Java guy these days), so here's what I did.... I right-clicked on the project name in Visual Studio and did Add Existing Item, adding the (new) .dll and (old) .lib file. It compiles and runs, but I still get a crash. Is that correct?

I have a 6407 here. I'm trying to do a triggered block collection, nothing fancy. I suspect I'm doing something wrong with the timebase/# samples settings.... I started from the sample program and removed things not needed. I've attached the code.

Thanks for any info!

Reid
Attachments
picoTriggerGetBlock.c
(21.13 KiB) Downloaded 174 times
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Wed Aug 08, 2012 3:55 am

By the way, I get a crash with your C demo program, the only changes being 62M samples and trigger on AUX instead of A. I can attach that file, if you like, but the one I attached before should be shorter and demonstrate the problem pretty well (I think). Thanks again.

Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Wed Aug 08, 2012 7:56 am

Can you try putting the new dll in the Debug or Release directory where your exe is created
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Wed Aug 08, 2012 2:38 pm

Sure, I copied the new .dll into my Debug directory and ran the debug version from Visual Studio, but I'm still getting a crash in ps6000GetValues. I'm not seeing anything obviously wrong with my code....

Thanks,
Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Thu Aug 09, 2012 12:01 pm

Can you post a copy of the unit info that is printed when your code runs, including the driver version.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Thu Aug 09, 2012 2:22 pm

Sure, here it is:

Driver Version: 1.0.0.290
USB Version: 2.0
Hardware Version: 1 1
Variant Info: 6407
Serial: AQ548/002

Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Sat Aug 11, 2012 2:22 pm

Hi. I'm wondering if you've had a chance to investigate my crash? We were hoping to use your hardware to take some measurements next week, but this has slowed down my efforts.

Thanks,
Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby Martyn » Mon Aug 13, 2012 2:05 pm

I have seen the crash with your code as supplied, although if you select V and set one channel on and the rest off the crash disappears for me. I will add an update when I have more information.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Mon Aug 20, 2012 2:48 pm

Martyn wrote:I have seen the crash with your code as supplied, although if you select V and set one channel on and the rest off the crash disappears for me. I will add an update when I have more information.

Hi Martyn. Any news on this? We do need four channels, by the way.

Thanks,
Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: ps6000GetValuesBulk makes (throws) an access violation

Postby reid » Thu Aug 30, 2012 2:54 pm

Hi Martyn. I understand you've been out. Just checking to see if there's any news on my crashing issue. Thanks.

Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

PreviousNext

Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 2 guests