.mdd driver-wrapper: java.lang.​ClassCastE​xception: java.lang.Double cannot be cast to java.lang.String

4 views (last 30 days)
Dear,
I'm currently working on creating a driver for the National instruments 5451 Arbitrary waveform generator.
For a start I created the IVI driver using makemid. (attachement NI_PXIE_5451_IVI.mdd).
Now I want to write a wrapper-driver to make the use of this driver a lot easier. (Attachement NI_PXIE_5451.mdd).
But when using this driver I get the weirdest error. And I can't trace back where this comes from either.
The device connects properly and if I just use the (difficult to use) IVI-driver, then this works and the device gets the correct settings. Now if I use the wrapper, the device works as well, it gets the correct settings etc but the error that occurs is the following:
Error using instrument/subsasgn (line 102)
Java exception occurred:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
at ICGroup269.getMode(ICGroup269.java)
Please find in attachement the testing script as well (test_IVI.m)
Is this a matlab-bug of some sort or am I missing something?
Thanks in advance!
Best regards,
Hans Narinx
ICsense N.V.

Answers (0)

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!