gusucode.com > vnt工具箱matlab源码程序 > vnt/vnt/j1939Channel.m
function obj = j1939Channel(varargin) % j1939Channel Construct a J1939 CAN channel connected to a device. % % CHANNEL = j1939Channel(DATABASE, DEVICE_VENDOR, DEVICE, DEVICE_CHANNEL_INDEX) % creates a CHANNEL using the DATABASE able to interact with a J1939 % network. Additional arguments are necessary to define the CAN device % through which to access the network. The DEVICE_VENDOR must be % specified as a string, the DEVICE also as a string, and the % DEVICE_CHANNEL_INDEX as a numeric value. % % Example: % db = canDatabase('MyDBC.dbc'); % ch = j1939Channel(db, 'Vector', 'CANcaseXL 1', 1); % % See also VNT. % Authors: Jaremy Pyle % Copyright 2015 The MathWorks, Inc. % Pass the call through to the j1939.Channel class. obj = j1939.Channel(varargin{:}); end