Matlab software development kit, Nanoz mex library – Multichannel Systems nanoZ manual User Manual
Page 25

21
Matlab Software Development Kit
The nanoZ Matlab SDK allows users to program customized nanoZ applications
that are not supported by the bundled Windows program.
To use the Matlab SDK you should have a licensed copy of Matlab installed on
the host PC (version 2006a or later) and have the nanoZ SDK installed (refer to
the Software Installation section of this User Manual).
nanoz MEX library
MATLAB applications can access the nanoZ through the ʻnanozʼ MEX files. Four
versions are provided, one each for 32- and 64-bit versions of Matlab running
under Windows (ʻnanoz.mexw32ʼ and ʻnanoz.mexw64ʼ, respectively) and Mac
OS X (ʻnanoz.mexmaciʼ and ʻnanoz.mexmaci64ʼ, respectively).
A MEX file can contain only one Matlab function, and because the nanoZ SDK
provides multiple functions, the actual function names are passed as the first
argument when calling the ʻnanozʼ gateway function. The following syntax is used
for all function calls:
[<output>] = nanoz('function name', arg1, arg2, ... argN);
The
function name
is not case sensitive and can be one of the following:
Name
Purpose
getversion
Returns the version of the nanoZ MEX file
enumdevs
Enumerates attached nanoZ devices
open
Opens a free nanoZ device for access by other functions
close
Closes an opened nanoZ device, releases system resources
getdeviceversion
Returns hardware and firmware information for the open device
selectchannel
Selects a channel
setfreq
Sets the test frequency for impedance measurements
startimpmetering Starts impedance measurement
getimpdata
Retrieves impedance measurement data
getwaveformcaps Returns information about the waveform generation capabilities