资源简介
USB CAN Tool 开发,包含接口函数库(二次开发库)使用说明书,样例程序操作说明,matlab版本32位代码和64位代码各一套
(The source code of USB CAN Tool)
代码片段和文件信息
function varargout = CAN_Demo(varargin)
% Edit the above text to modify the response to help CAN_Demo
% Last Modified by GUIDE v2.5 10-Dec-2014 09:58:58
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @CAN_Demo_OpeningFcn ...
‘gui_OutputFcn‘ @CAN_Demo_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before CAN_Demo is made visible.
function CAN_Demo_OpeningFcn(hobject eventdata handles varargin)
global CONNECTED;
global LISTBOXNUM;
LISTBOXNUM = 0;
CONNECTED = 0;%--开始时为没连接状态
set(handles.edit_Timing0‘Enable‘‘off‘);
set(handles.edit_Timing1‘Enable‘‘off‘);
if libisloaded(‘ControlCAN‘)~=1
end
%初始化
global DEVICETYPE;
set(handles.popupmenu_DeviceName‘value‘3);
DEVICETYPE=4;
global DEVICEINDEX;
set(handles.popupmenu_DeviceIndex‘value‘1);
DEVICEINDEX=0;
global CANINDEX;
set(handles.popupmenu_CANIndex‘value‘1);
CANINDEX=0;
global SENDTYPE;
SENDTYPE=0;
global frameTYPE;
frameTYPE=0;
global frameFORMAT;
frameFORMAT=0;
% Choose default command line output for CAN_Demo
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes CAN_Demo wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = CAN_Demo_OutputFcn(hobject eventdata handles)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on selection change in popupmenu_DeviceName.
function popupmenu_DeviceName_Callback(hobject eventdata handles)
global DEVICETYPE;
dev=get(hobject‘value‘);
switch dev
case 1
DEVICETYPE=2;
case 2
DEVICETYPE=3;
case 3
DEVICETYPE=4;
case 4
DEVICETYPE=5;
case 5
DEVICETYPE=12;
case 6
DEVICETYPE=14;
case 7
DEVICETYPE=15;
case 8
DEVICETYPE=16;
case 9
DEVICETYPE=17;
case 10
DEVICETYPE=24;
otherwise
disp(‘Unknown DeviceType.‘);
end
% --- Executes on selection change in popupmenu_DeviceIndex.
function popupmenu_DeviceIndex_Callback(hobject eventdata handles)
global DEVICEINDEX;
DEVICEINDEX=get(handles.popupmenu_DeviceIndex‘value‘)-1;
% --- Executes on selection change in popupmenu_CANIndex.
function popupmenu_CANIndex_Callback(hobject eventdata handles)
global CANINDEX;
CANINDEX=get(handles.popupmenu_CANInde
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7498 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\CAN_Demo.fig
文件 16116 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\CAN_Demo.m
文件 1352704 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\CAN调用动态库必看.doc
文件 38912 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\ControlCAN.dll
文件 4961 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\ControlCAN.h
文件 7312 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\ControlCAN.lib
文件 0 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\mxREAL.m
文件 549 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ClearBuffer.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ClearBuffer.mexw32
文件 447 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_CloseDevice.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_CloseDevice.mexw32
文件 498 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_GetReceiveNum.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_GetReceiveNum.mexw32
文件 1027 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_InitCAN.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_InitCAN.mexw32
文件 507 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_OpenDevice.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_OpenDevice.mexw32
文件 1879 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ReadBoardInfo.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ReadBoardInfo.mexw32
文件 2390 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_Receive.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_Receive.mexw32
文件 479 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ResetCAN.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_ResetCAN.mexw32
文件 479 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_StartCAN.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_StartCAN.mexw32
文件 2341 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_Transmit.cpp
文件 20480 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)32位\CAN_Demo(matlab)\VCI_Transmit.mexw32
文件 7498 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)64位\CAN_Demo(matlab)\CAN_Demo.fig
文件 16116 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)64位\CAN_Demo(matlab)\CAN_Demo.m
文件 2094080 2019-05-05 12:51 CAN_Demo(matlab)\CAN_Demo(matlab)64位\CAN_Demo(matlab)\CAN调用动态库必看.doc
............此处省略32个文件信息
相关资源
- XXXXXXRobustControlDesignwithMATLAB.pdf
- 十分钟搞定matlab GUI
- 克里金插值法MATLAB工具箱
- Matlab的GUI展示两种图像加密算法
- Matlab程序,是播放音乐文件的波形和
- matlab带通滤波器
- MATLAB 2014b破解
- 鲸鱼优化算法(WOAMatlab).zip
- matlab实现近似熵值的计算
- matlab图像处理包括数据反演以及其他
- 小波变换图像融合的matlab实现
- 数值分析上机题(matlab版)(东南大
- matlab实现六维力传感器参数辨识
- matlab蚁群算法各种经典蚁群算法for
- matlab实现视频中动态目标跟踪
- matlab 实现水印
- Mie matlab
- 利用MATLAB仿真软件实现图像的去噪处
- 《信号与系统-MATLAB综合实验》的Mat
-
用MATLAB-Simuli
nk做锂电池建模 .pdf - LMS MATLAB DSP算法实现和程序收集
- MATLAB图像高分辨率
- DRLSE距离正则化水平集演化算法的MA
- intlab_v6.0工具箱+其使用说明Introducti
- 现代通信系统(MatLab)源代码
- saber\\matlab联合仿真
- 应用matlab计算人脸识别率
- 卷积神经网络识别手写数字图像
- Matlab 三维点云 三角化
- 田纳西-伊斯曼matlab数据,完全免费
评论
共有 条评论