Code covered by the BSD License  

Highlights from
NI ELVIS II Power Supply, Function Generator, Digital Multimeter Support

NI ELVIS II Power Supply, Function Generator, Digital Multimeter Support

by

 

22 Aug 2011 (Updated )

MATLAB library that extends support for communicating with a NI ELVIS II prototyping platform

elvis.util.checkClasses
function checkClasses
%CHECKCLASSES - Unit test for Support Package classes
%   This is a very simple script that loads all of the classes and deletes
%   them. For testing purposes only.
        
    %   MATLAB Support Package for NI ELVIS II
    %   Version 1.0
    %   Copyright 2011 The MathWorks, Inc.

a = elvis.VarPowSupply('test');
delete(a);
a = elvis.Fgen('test');
delete(a);
a = elvis.FgenBNC('test');
delete(a);

types = {'dcvoltage','acvoltage','dccurrent','accurrent','diode','continuity','resistance'};
for i = 1:length(types)
    a = elvis.Multimeter(types{i},'test');
    a.readData;
    delete(a);
end

fprintf('No errors!\n');
end

Contact us