Problem running a Oscilloscope device object from my MATLAB command window ?

I am trying to connect a RIGOL DS4052 Oscilloscope to MATLAB using Instrument Control Toolbox. I created MATLAB Instrument Driver for my device.On connecting the device i executed the function 'getWaveform' which i made. I am getting the output matrix and the plot of the graph is similar to that on the scope.
Then i saved the session log and created a matlab .m file(check.m)
On running the fie on MATLAB Command Window, i get an error saying
??? Error using ==> icdevice.invoke at 58
The function getWaveform is not supported by this device object.
Error in ==> check at 49 [voltage] = invoke(deviceObj, 'getWaveform');
To check the problem I opened the Test and measurement tool and checked the device object that got created when the .m file was executed.
*Now the problem is that in the list of functions it doesn't shows the functins that i had made. Rather i see some default functions which cannot run my device.*
Can somebody please help me out in this .

Risposte (0)

Richiesto:

il 9 Ago 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by