Code covered by the MathWorks Limited License
-
BluetoothRead(port)
Copyright 2010 The MathWorks, Inc.
-
BluetoothWrite(port)
Copyright 2010 The MathWorks, Inc.
-
InitAccessorBlock(varargin)
InitAccessorBlock
-
InitDeviceSFunBlock(mdl)
InitDeviceSFunBlock
-
InitInterfaceBlock(varargin)
InitInterfaceBlock
-
USBread()
Copyright 2010 The MathWorks, Inc.
-
USBreadColorSensor()
Copyright 2010 The MathWorks, Inc.
-
USBreadCompassSensor()
Copyright 2010 The MathWorks, Inc.
-
USBreadIRSeeker()
Copyright 2010 The MathWorks, Inc.
-
USBwrite()
Copyright 2010 The MathWorks, Inc.
-
clearNXTSignalObjects
clearNXTSignalObjects
-
createNXTSignalObject(varargi...
createNXTSignalObject
-
csc_registration(action)
Copyright 1994-2006 The MathWorks, Inc.
-
ecrobotnxtsetup(varargin)
ECROBOTNXTSETUP
-
makeInfo=rtwmakecfg()
RTWMAKECFG adds include and source directories to rtw make files.
-
nxtbuild(varargin)
nxtbuild
-
nxtconfig(varargin)
nxtconfig
-
nxtupload
NXTUPLOAD
-
set_fcncallname(varargin)
set_fcncallname
-
sfunxymap2(t,x,u,flag,ax,map)
sfunxymap2
-
slblocks
slblocks
-
writenxtdisplay(varargin)
writenxtdisplay
-
writevrtrack(varargin)
writevrtrack
-
nxtusb(varargin)
NXTUSB Constructor
-
w32serial.m
-
FrequencyList.m
-
SoundList.m
-
load_logdata.m
-
make_mex.m
-
param.m
-
param.m
-
ExternalSources
-
TestBluetoothRx
-
TestBluetoothTx
-
TestFloatingPoint
-
TestHiTechnicColorSensor
-
TestHiTechnicCompassSensor
-
TestHiTechnicIRSeeker
-
TestHiTechnicPrototypeSensor
-
TestHiTechnicSensors
-
TestMotorJSP
-
TestMotorOSEK
-
TestNXTGamePad
-
TestNxtColorSensor
-
TestNxtLightSensor
-
TestSoundTone
-
TestSoundWAV
-
TestUSB_Rx
-
TestUSB_Tx
-
TestUltrasonicSensor
-
ecrobot_nxt_lib
-
joystick_ctrl
-
master_ctrl
-
nxt2nxt
-
nxtmouse
-
nxtmouse_ctrl
-
nxtracer
-
nxtracer_ctrl
-
slave_ctrl
-
steeringwheel_ctrl
-
View all files
from
Embedded Coder Robot NXT Demo
by Takashi Chikamasa
Offers an enjoyable Model-Based Design experience using Simulink models with Lego robots
|
| set_fcncallname(varargin)
|
% set_fcncallname
% adds signal name to the outputs of a DEMUX block that is connected to
% the outport of Export Function-Call Scheduler block. This signal
% naming is required to specify name of the generated C functions from a
% Function-Call Subsystem by using Exported Function code generation
%
% SETFCNCALLNAME(BLK, 'clear'): An optional usage of the API. delete added
% signal name
%
% Copyright 2010 The MathWorks, Inc.
function set_fcncallname(varargin)
switch nargin
case 1
blk = varargin{1};
cmd = [];
case 2
blk = varargin{1};
cmd = varargin{2};
otherwise
error('Requires 1 or 2 arguments')
end
% get line handles of a ExpFcnCallsScheduler block
lh = get_param(blk, 'LineHandles');
if lh.Outport ~= -1
% get block handle of a block that is connected to outport of a
% ExpFcnCallsScheduler block
bh = get_param(lh.Outport, 'DstBlockHandle');
else
error('No line connected to the Outport of ExpFcnCallsScheduler');
end
if bh ~= -1
% assume this block should be a DEMUX block
if isequal(get_param(bh, 'BlockType'), 'Demux')
% In case of ExpFcnCallsScheduler block is connected to a DEMUX as
% expected
lh = get_param(bh, 'LineHandles');
if lh.Outport ~= -1
fcname = eval(['{' get_param(blk, 'fcname') '}']);
if length(lh.Outport) == length(fcname)
% Use Function-Call name as C function name
if isequal(cmd, 'clear')
for k = 1:length(lh.Outport)
set_param(lh.Outport(k), 'Name', '')
end
else
for k = 1:length(lh.Outport)
set_param(lh.Outport(k), 'Name', fcname{k})
end
end
else
error('Function-Call name list and Function-Call source list are unmatch');
end
else
error('No line connected to the Outport of the Demux block');
end
else
error('No Demux block connected to the ExpFcnCallsScheduler');
end
else
error('No block connected to the line from ExpFcnCallsScheduler');
end
|
|
Contact us at files@mathworks.com