Search found 7 matches

by ChristyS
Thu Sep 10, 2015 6:45 pm
Forum: MATLAB
Topic: 3206A 'Attempt to reference field of non-structure array'
Replies: 4
Views: 7696

Re: 3206A 'Attempt to reference field of non-structure array

Hi Hitesh, that's sorted it, thank you.
by ChristyS
Wed Sep 09, 2015 2:35 pm
Forum: MATLAB
Topic: 3206A 'Attempt to reference field of non-structure array'
Replies: 4
Views: 7696

Re: 3206A 'Attempt to reference field of non-structure array

Hi Hitesh, The files are definitely on the correct path. My script is a GUI. I've not changed the initialisation or opening function etc. The script doesn't do anything else until I press a button called connectscope, these are the first few lines of the callback: function connectscope_Callback(hObj...
by ChristyS
Tue Sep 08, 2015 4:37 pm
Forum: MATLAB
Topic: 3206A 'Attempt to reference field of non-structure array'
Replies: 4
Views: 7696

3206A 'Attempt to reference field of non-structure array'

Hello, I'm trying to run my own m file but I can't connect to the scope because of the following error: Error using instrument/delete (line 82) Operation failed: An error occurred while executing the driver disconnect code. Attempt to reference field of non-structure array. If this error is not an i...
by ChristyS
Mon Jun 22, 2015 4:38 pm
Forum: MATLAB
Topic: 3206a 'Error using icdevice/connect'
Replies: 16
Views: 16508

Re: 3206a 'Error using icdevice/connect'

Scratch my last post (assuming it's approved before this one). It's working now but I had to comment out line 155 of resetDevice in the instrument driver function to get rid of the error: Error using icdevice/connect (line 113) An error occurred while executing the driver connect code. The class Pic...
by ChristyS
Mon Jun 22, 2015 2:34 pm
Forum: MATLAB
Topic: 3206a 'Error using icdevice/connect'
Replies: 16
Views: 16508

Re: 3206a 'Error using icdevice/connect'

Hi Hitesh, I am now getting the error: Error using icdevice (line 284) An error occurred while executing the driver create code. No units found. If the error is not an instrument error, use MIDEDIT to inspect the driver. Error in PS3000A_IC_Generic_Driver_Block (line 55) ps3000aDeviceObj = icdevice(...
by ChristyS
Tue Jun 16, 2015 4:24 pm
Forum: MATLAB
Topic: 3206a 'Error using icdevice/connect'
Replies: 16
Views: 16508

Re: 3206a 'Error using icdevice/connect'

I think I've found the source of the error but I don't know how to fix it appropriately. Opening the Connect tab of PS3000a_IC_drv.mdd in the Instrument Driver Editor, on line 81 it asks for variant(2), but variant is actually empty. This seems to be the reason for "Index exceeds matrix dimensions."...
by ChristyS
Mon Jun 15, 2015 2:50 pm
Forum: MATLAB
Topic: 3206a 'Error using icdevice/connect'
Replies: 16
Views: 16508

3206a 'Error using icdevice/connect'

Hello, I am trying to get the 3206a oscilloscope to work with Matlab. When I try to run the example script 'PS3000a_IC_Generic_Driver_1buffer_RapidBlock.m' I get the following error: Error using icdevice/connect (line 113) An error occurred while executing the driver connect code. Index exceeds matr...