Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Depuydt committed May 23, 2019
1 parent bdf64f0 commit defd0f9
Show file tree
Hide file tree
Showing 41 changed files with 537 additions and 493 deletions.
3 changes: 3 additions & 0 deletions Scripts/getdirectories.bak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
librarydirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab\00. User-defined Functions';
global rootdirectory
rootdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab';
12 changes: 12 additions & 0 deletions Scripts/startup.bak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clear;
clc;
cd(fullfile(matlabroot,'toolbox','local'));
getdirectories;
addpath(genpath(librarydirectory));
cd(librarydirectory);
savepath;
%copyfile([funcdirectory '\startup.bak.m'],[mfilename('fullpath') '.m']);
clear librarydirectory;

global rootdirectory;
cd(rootdirectory);
3 changes: 3 additions & 0 deletions backup/getdirectories.bak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
funcdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab\00. User-defined Functions';
global rootdirectory
rootdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab';
12 changes: 12 additions & 0 deletions backup/startup.bak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clear;
clc;
cd(fullfile(matlabroot,'toolbox','local'));
getdirectories;
addpath(genpath(funcdirectory));
cd(funcdirectory);
savepath;
%copyfile([funcdirectory '\startup.bak.m'],[mfilename('fullpath') '.m']);
clear funcdirectory;

global rootdirectory;
cd(rootdirectory);
4 changes: 2 additions & 2 deletions deploypcode.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source_dir = [root.get,'\00. User-defined Functions\Original Code\'];
target_dir = [root.get,'\00. User-defined Functions\'];
source_dir = [root.get,'\00. User-defined Functions\'];
target_dir = [root.get,'\00. User-defined Functions\release'];
varargin = {};
% DEPLOYPCODE recursively creates p-code versions of m-files in a given folder
%
Expand Down
Empty file added release/LICENSE.md
Empty file.
Empty file added release/README.md
Empty file.
79 changes: 40 additions & 39 deletions release/color.m
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% COLOR CLASS %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % Author: Frederic Depuydt %
% % Company: KU Leuven %
% % Contact: [email protected]; [email protected] %
% % Version: 1.0 %
% % %
% % A Color class to easily apply colors to plots %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % PROPERTIES %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: result = color.property %
% % %
% % ch1 Returning the color of scope channel 1 %
% % ch2 Returning the color of scope channel 2 %
% % ch3 Returning the color of scope channel 3 %
% % ch4 Returning the color of scope channel 4 %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (static) *Object creation* %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objColor = color.function(var1, var2, ...) %
% % %
% % PROFIBUS() Returns PROFIBUS color %
% % PROFIBUS('m') Returns PROFIBUS color for a MarkerFace %
% % %
% % PROFINET() Returns PROFINET color %
% % PROFINET('m') Returns PROFINET color for a MarkerFace %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Reference page in Doc Center
% doc color
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% COLOR CLASS %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % Author: Frederic Depuydt %
% % Company: KU Leuven %
% % Contact: [email protected]; [email protected] %
% % Version: 1.0 %
% % %
% % A Color class to easily apply colors to plots %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % PROPERTIES %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: result = color.property %
% % %
% % ch1 Returning the color of scope channel 1 %
% % ch2 Returning the color of scope channel 2 %
% % ch3 Returning the color of scope channel 3 %
% % ch4 Returning the color of scope channel 4 %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (static) *Object creation* %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objColor = color.function(var1, var2, ...) %
% % %
% % PROFIBUS() Returns PROFIBUS color %
% % PROFIBUS('m') Returns PROFIBUS color for a MarkerFace %
% % %
% % PROFINET() Returns PROFINET color %
% % PROFINET('m') Returns PROFINET color for a MarkerFace %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Reference page in Doc Center
% doc color
%
%
%
Binary file modified release/color.p
Binary file not shown.
133 changes: 67 additions & 66 deletions release/eth.m
Original file line number Diff line number Diff line change
@@ -1,67 +1,68 @@
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% ETH PACKET CLASS %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % Author: Frederic Depuydt %
% % Company: KU Leuven %
% % Contact: [email protected]; [email protected] %
% % Version: 1.1 %
% % %
% % An ETHERNET class to analyse packets from Wireshark %
% % and some Tektronix Osciloscopes. %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (static) *Object creation* %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objEth = eth.function(var1, var2, ...) %
% % %
% % csvread( Reading an EVENT TABLE CSV file %
% % file, Filename + extension as String %
% % verbose) Integer to enable verbose mode %
% % %
% % pcapread( Reading a Wireshark PCAP file %
% % file, Filename + extension as String %
% % verbose, Integer to enable verbose mode %
% % captureFilter) Wireshark filter as String %
% % %
% % scoperead( Reading a Scope object %
% % objScope, Scope object to read %
% % verbose) Integer to enable verbose mode %
% % %
% % scoperead( Reading a Scope object %
% % objScope, Scope object to read %
% % parameter, A certain parameter %
% % value, Value for the parameter %
% % ...) Possible parameters: %
% % 'verbose', 'threshold', %
% % 'cut_off_frequency' %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (non-static) %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objEth.function(var1, var2, ...) %
% % %
% % plot( Plotting Ethernet Packets in Time %
% % offset_x, %
% % offset_y, %
% % lineWidth, %
% % line_color) %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % VERBOSE MODE: (default=-1) %
% % all static functions check for a verbose variable %
% % to enable or disable display output to the console %
% % %
% % verbose == 0; % Display output disabled %
% % verbose == -1; % Display output enabled for all nested functions %
% % verbose == x; % Display output enabled for x nested functions %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Reference page in Doc Center
% doc eth
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% ETH PACKET CLASS %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % Author: Frederic Depuydt %
% % Company: KU Leuven %
% % Contact: [email protected]; [email protected] %
% % Version: 1.1 %
% % %
% % An ETHERNET class to analyse packets from Wireshark %
% % and some Tektronix Osciloscopes. %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (static) *Object creation* %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objEth = eth.function(var1, var2, ...) %
% % %
% % csvread( Reading an EVENT TABLE CSV file %
% % file, Filename + extension as String %
% % verbose) Integer to enable verbose mode %
% % %
% % pcapread( Reading a Wireshark PCAP file %
% % file, Filename + extension as String %
% % verbose, Integer to enable verbose mode %
% % captureFilter) Wireshark filter as String %
% % %
% % scoperead( Reading a Scope object %
% % objScope, Scope object to read %
% % verbose) Integer to enable verbose mode %
% % %
% % scoperead( Reading a Scope object %
% % objScope, Scope object to read %
% % parameter, A certain parameter %
% % value, Value for the parameter %
% % ...) Possible parameters: %
% % 'verbose', 'threshold', %
% % 'cut_off_frequency' %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % FUNCTIONS (non-static) %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % usage: objEth.function(var1, var2, ...) %
% % %
% % plot( Plotting Ethernet Packets in Time %
% % offset_x, %
% % offset_y, %
% % lineWidth, %
% % line_color) %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % %
% % VERBOSE MODE: (default=-1) %
% % all static functions check for a verbose variable %
% % to enable or disable display output to the console %
% % %
% % verbose == 0; % Display output disabled %
% % verbose == -1; % Display output enabled for all nested functions %
% % verbose == x; % Display output enabled for x nested functions %
% % %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Reference page in Doc Center
% doc eth
%
%
%
Binary file modified release/eth.p
Binary file not shown.
8 changes: 8 additions & 0 deletions release/ethPHYdecode.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
% ethPHYdecode is a class.
% obj = ethPHYdecode(varargin)
%
% Reference page in Doc Center
% doc ethPHYdecode
%
%
%
Binary file modified release/ethPHYdecode.p
Binary file not shown.
2 changes: 2 additions & 0 deletions release/exportingPNG.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% PRINT TO IMAGE
%
Binary file added release/exportingPNG.p
Binary file not shown.
3 changes: 2 additions & 1 deletion release/filterEth.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
% Now filter function captures 3 groups: filter name, filter value
% Now filter function captures 3 groups: filter name, filter value
%
%
Binary file modified release/filterEth.p
Binary file not shown.
2 changes: 2 additions & 0 deletions release/getdirectories.bak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%getdirectories.bak is a script.
%
Binary file added release/getdirectories.bak.p
Binary file not shown.
Loading

0 comments on commit defd0f9

Please sign in to comment.