Cannot connect the AGILENT oscilloscope after creation of the device object

i have created an interface object and when i click connect it has connected and i could be able to send commands and read from the instrument using *tmtool* .
But when i tried to create device object there showed two IVI drivers IVI com and IVI C, if i try creating a device object using IVI C i cannot do that the error i got is " A 'selected' Compiler was not found. You may need to run mex-set up".
But i was able to create device object using ivi com driver. but after creating the device object if i click connect i got the error msg " Unable to connect to the instrument"
Please help on this issue.....

7 Kommentare

Did you try installing a compiler and running
mex -setup
what is a mex set up, why do we need this? Can't we use IVI Com driver to create device object?.
"mex" is a program that knows how to compile C code to be callable from MATLAB. It is not a compiler itself: it is a program that knows which options to give to compilers and how to link everything together. You will need a C or C++ compiler; the version of the C or C++ compiler to use will depend upon which MATLAB version to use.
I do not know why IVI COM did not work. COM driver might need to be registered? Whatever the reason, if you can get IVI C working then the reason the COM did not work becomes unimportant for your purposes.
thanks walter
I have connected the instrument. i was able to set and get property through tmtool. But when i try to use the readwaveform function in tmtool it is asking for input arguements, what are they?. In all the functions there are input and output arguements. what should we give for those.
And also when i try using Quick oscilloscope,i.e when i give the command o=oscilloscope(). It showed " No Instrument connected with the device" , while tmtool can find the instrument why the matlab is not able to find it
Pls help on this
ok, tell me some information about the Question on tmtool in my previous comment
I do not have a copy of the T&M toolbox, and I do not have one of those Oscilloscopes, so I do not have any way to test out ideas.

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 26 Nov. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by