Matlab Access Violation Error (CurrentPowerSource)

Having problems ? let us know the details here
Post Reply
nicola.jones
Newbie
Posts: 1
Joined: Wed May 31, 2017 7:52 am

Matlab Access Violation Error (CurrentPowerSource)

Post by nicola.jones »

Hello all,

I have integrated the PS5000A_IC_Generic_Driver_Streaming.m Matlab code into a GUI such that I generate a signal and capture it within the same code. However, when

Code: Select all

[handles.runStreaming, handles.sampleInterval, handles.sampleIntervalTimeUnitsStr] = ...
    invoke(handles.ps5000aDeviceObj, 'ps5000aRunStreaming', handles.downSampleRatio, ...
    downSampleRatioMode, overviewBufferSize);
is called, Matlab crashes and I get the following error message:
MATLAB crash file:C:\Users\IGT-HIFU\AppData\Local\Temp\matlab_crash_dump.4568-1:


------------------------------------------------------------------------
Access violation detected at Wed May 31 10:03:33 2017
------------------------------------------------------------------------

Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Intel Intel(R) HD Graphics 620 Version 4.4.0 - Build 21.20.16.4534
Default Encoding : windows-1252
Deployed : false
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 620 Version 21.20.16.4534
Host Name : LAPTOP-48SBBCAF
MATLAB Architecture : win64
MATLAB Entitlement ID: 3900950
MATLAB Root : C:\Program Files\MATLAB\R2017a
MATLAB Version : 9.2.0.556344 (R2017a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Famille
Processor ID : x86 Family 6 Model 142 Stepping 9, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)

Fault Count: 1


Abnormal termination:
Access violation

Register State (from fault):
RAX = ffc10011ffbbffdf RBX = 0000000000000010
RCX = 00000000c927e008 RDX = ffffffff439e0c90
RSP = 000000046042fd78 RBP = 0000000000000000
RSI = 000000000cc5ec90 RDI = 0000000000000010

R8 = 0000000000000010 R9 = 0000000000000001
R10 = 000000000cc89590 R11 = 00000000c927e000
R12 = 0000000000000008 R13 = 0000000000000138
R14 = 0000000000000001 R15 = 0000000000003138

RIP = 00007ffd669f482b EFL = 00010202

CS = 0033 FS = 0053 GS = 002b

Stack Trace (from fault):
[ 0] 0x00007ffd669f482b C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00608299 ps5000aCurrentPowerSource+00008363
[ 1] 0x00007ffd669f4160 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00606560 ps5000aCurrentPowerSource+00006624
[ 2] 0x00007ffd669c2c4a C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00404554
[ 3] 0x00007ffd669c82b5 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00426677
[ 4] 0x00007ffd669d6129 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00483625
[ 5] 0x00007ffd669a9305 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00299781
[ 6] 0x00007ffd669f5253 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00610899 ps5000aCurrentPowerSource+00010963
[ 7] 0x00007ffd669f52e7 C:\Program Files\Pico Technology\SDK\lib\ps5000a.dll+00611047 ps5000aCurrentPowerSource+00011111
[ 8] 0x00007ffdb33b8364 C:\WINDOWS\System32\KERNEL32.DLL+00033636 BaseThreadInitThunk+00000020
[ 9] 0x00007ffdb39d70d1 C:\WINDOWS\SYSTEM32\ntdll.dll+00422097 RtlUserThreadStart+00000033


If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/

A technical support engineer might contact you with further information.

Thank you for your help.
If any of you have seen this below and know what is going wrong, please let me know!

Cheers,
Nicola

Hitesh

Re: Matlab Access Violation Error (CurrentPowerSource)

Post by Hitesh »

Hi Nicola,

Please make sure that you have the latest Instrument Driver files installed:

https://uk.mathworks.com/matlabcentral/ ... ent-driver

I would advise using the MATLAB Add-Ons Explorer in order to do this.

Also, please refer to this MATLAB Answers post for advice on ensuring variables are available in the correct workspace.

If you could please e-mail support@picotech.com and I can provide more recent 64-bit drivers.

Regards,

Post Reply