Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

AWG5000 ArbExpress Matlab 'matarb error'

Questions in this forum area are community supported. Tektronix does not regularly monitor or guarantee responses in this area.
Post Reply
sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 18th, 2010, 4:29 pm

I'm going thru the ArbExpress manual. On page 151 it explains how to connect thru a LAN connection using Matlab.
ArbExpress is working fine over the LAN by itself. I get this error message when I try to connect using Matlab:

>> [SessionID, StatusMsg] = NewSession ('TCPIP::10.79.6.8::INSTR','LAN')
??? Undefined function or method 'matarb' for input arguments of type 'char'.

Error in ==> C:\Program Files
(x86)\Tektronix\ArbExpress\Tools\Matlab\NewSession.p>NewSession at 3

I have ArbExpress\Tools\Matlab in the path.
matarb.dll is a dll file and I don't see any other matarb files.
NewSession is a p file (encrypted) so I don't know what line 3 is.

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 19th, 2010, 11:14 am

I'm using Windows XP 64 if that makes any difference.

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 19th, 2010, 11:18 am

Maybe there is something wrong with my path:

http://www.mathworks.de/matlabcentral/n ... ead/166200

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 21st, 2010, 9:33 am

Is it possible that the 32-bit dll's don't work on Windows 64?:

It can be a problem: http://www.dnjonline.com/article.aspx?i ... access3264

Carl M
Tektronix Applications
Tektronix Applications
Posts: 796
Joined: July 30th, 2008, 4:45 pm
Country: United States

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by Carl M » June 21st, 2010, 10:24 am

the *.p files are protected *.m files. I do not have the source, nor do I know who wrote them.
why not just make a VISA object and talk directly to the instrument? http://www.tek.com/forum/viewtopic.php?f=6&t=1784
also note ArbExpress' Download Agreement: http://www.tek.com/Measurement/Support/ ... ement.html
Tektronix Application Engineer

Carl M
Tektronix Applications
Tektronix Applications
Posts: 796
Joined: July 30th, 2008, 4:45 pm
Country: United States

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by Carl M » June 21st, 2010, 10:26 am

i don't have a 64-bit operating system to test this but I'm not sure if the *.p files require a 32-bit visa... which i don't think you can have/use on 64-bit windows.
Tektronix Application Engineer

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 21st, 2010, 10:31 am

ArbExpress uses two DLL files for matlab support. They are Arbether.dll and matarb.dll.
The problem so far is with the matarb.dll file. The other one may also be a problem but I haven't gotten that far.
I may just swithc to a 32-bit machine and see how that works.
I may try one of your other suggestions too.

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 21st, 2010, 12:16 pm

I tried this suggestion and I got the same type of error message: http://www.tek.com/forum/viewtopic.php?f=6&t=1784

Time to switch back to Windows 32-bit computer. I'm sure it will work then.

sandiego
Posts: 15
Joined: May 13th, 2010, 10:26 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by sandiego » June 21st, 2010, 12:22 pm

TekVISA only works on 32-bit Windows: http://www2.tek.com/cmswpt/faqdetails.l ... 6253&lc=EN

Gerard
Posts: 1
Joined: September 9th, 2013, 5:05 am

Re: AWG5000 ArbExpress Matlab 'matarb error'

Post by Gerard » September 9th, 2013, 6:26 am

I have the same problem and I wonder if a solution has been found.
I'm using Windows 8, 64 bits, Matlab 2013a. With the software included in the CDrom (that is, ArbExpress and TekVisa), I couldn't generate any waveform (even a simple sine) and the USB driver did not work either. I downloaded the latest version of both programs (ArbExpress 2.9 2013.04.16, TekVisa v4.0.0.80), and everything works fine.

However, I still have this message from Matlab that does not allow me to launch the sample code.
Warning: The P-code file NewSession.p was generated prior to MATLAB version 7.5 (R2007b) and
will not be supported in a future release. Use pcode to regenerate NewSession.p using MATLAB
R2007b or later.
> In sample at 15
Undefined function 'matarb' for input arguments of type 'char'.

Error in C:\Program Files (x86)\Tektronix\ArbExpress\Tools\Matlab\NewSession.p>NewSession
(line 3)

Error in sample (line 15)
s=NewSession('USB0::0x0699::0x0343::JU010107::INSTR','usb');
The first message is "just" a warning, but the undefined function error is critical.

Has anybody gone through the same problem?
Thank you.

Post Reply

Return to “Older and Obsolete Signal Sources”

Who is online

Users browsing this forum: No registered users and 1 guest