Code covered by the BSD License  

Highlights from
MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator

MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator

by

 

25 Jul 2011 (Updated )

MATLAB library for controlling a Velleman PCSGU250 scope and generator

vellscope.[methodinfo,structs,enuminfo,ThunkLibName]=pcsgu250_hdr
% pcsgu250_hdr
%   Header file for the pclab library.

%   MATLAB Support Package for Velleman PCSGU250
%   Version 1.0
%   Copyright 2011 The MathWorks, Inc.

function [methodinfo,structs,enuminfo,ThunkLibName]=pcsgu250_hdr
%PCSGU250_HDR Create structures to define interfaces found in 'pcsgu250'.

%This function was generated by loadlibrary.m parser version 1.1.6.33 on Tue Nov 23 12:40:39 2010
%perl options:'pcsgu250.i -outfile=pcsgu250_hdr.m'
ival={cell(1,0)}; % change 0 to the actual number of functions to preallocate the data.
structs=[];enuminfo=[];fcnNum=1;
fcns=struct('name',ival,'calltype',ival,'LHS',ival,'RHS',ival,'alias',ival);
ThunkLibName=[];
%  _stdcall int Start_PCSGU250 ( void ); 
fcns.name{fcnNum}='Start_PCSGU250'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}='int32'; fcns.RHS{fcnNum}=[];fcnNum=fcnNum+1;
%  _stdcall void Stop_PCSGU250 ( void ); 
fcns.name{fcnNum}='Stop_PCSGU250'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}=[];fcnNum=fcnNum+1;
%  _stdcall void Show_PCSGU250 ( int Visible ); 
fcns.name{fcnNum}='Show_PCSGU250'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall int GetSettings ( int * SettingsArray ); 
fcns.name{fcnNum}='GetSettings'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}='int32'; fcns.RHS{fcnNum}={'int32Ptr'};fcnNum=fcnNum+1;
%  _stdcall int DataReady (); 
fcns.name{fcnNum}='DataReady'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}='int32'; fcns.RHS{fcnNum}=[];fcnNum=fcnNum+1;
%  _stdcall void Voltage1 ( int Volts ); 
fcns.name{fcnNum}='Voltage1'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void Voltage2 ( int Volts ); 
fcns.name{fcnNum}='Voltage2'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void ReadCh1 ( int * Buffer ); 
fcns.name{fcnNum}='ReadCh1'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32Ptr'};fcnNum=fcnNum+1;
%  _stdcall void ReadCh2 ( int * Buffer ); 
fcns.name{fcnNum}='ReadCh2'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32Ptr'};fcnNum=fcnNum+1;
%  _stdcall void YPosition1 ( int y_pos ); 
fcns.name{fcnNum}='YPosition1'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void YPosition2 ( int y_pos ); 
fcns.name{fcnNum}='YPosition2'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void TrgOn ( int trg_on ); 
fcns.name{fcnNum}='TrgOn'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void TrgLevel ( int Trg_Level ); 
fcns.name{fcnNum}='TrgLevel'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void TrgSource ( int Trg_Source ); 
fcns.name{fcnNum}='TrgSource'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void TrgEdge ( int Positive_Negative ); 
fcns.name{fcnNum}='TrgEdge'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void Coupling1 ( int AC_DC_GND ); 
fcns.name{fcnNum}='Coupling1'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void Coupling2 ( int AC_DC_GND ); 
fcns.name{fcnNum}='Coupling2'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void Time ( int TpDiv ); 
fcns.name{fcnNum}='Time'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void RunOn ( int Run_on ); 
fcns.name{fcnNum}='RunOn'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void SingleOn ( int Single ); 
fcns.name{fcnNum}='SingleOn'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32'};fcnNum=fcnNum+1;
%  _stdcall void StartGen (); 
fcns.name{fcnNum}='StartGen'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}=[];fcnNum=fcnNum+1;
%  _stdcall void StopGen (); 
fcns.name{fcnNum}='StopGen'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}=[];fcnNum=fcnNum+1;
%  _stdcall void SetGen ( int func , float freq , float ampl , float offset ); 
fcns.name{fcnNum}='SetGen'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'int32', 'single', 'single', 'single'};fcnNum=fcnNum+1;
%  _stdcall void SetSweep ( float freq1 , float freq2 , float ampl , float offset , float time ); 
fcns.name{fcnNum}='SetSweep'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'single', 'single', 'single', 'single', 'single'};fcnNum=fcnNum+1;
%  _stdcall void SetLibWave ( float freq , float ampl , float offset , char * filename ); 
fcns.name{fcnNum}='SetLibWave'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}=[]; fcns.RHS{fcnNum}={'single', 'single', 'single', 'cstring'};fcnNum=fcnNum+1;
methodinfo=fcns;

Contact us