www.gusucode.com > vnt工具箱matlab源码程序 > vnt/vntblks/vntmasks/private/privatevntslj1939configname.m
function privatevntslj1939configname(dialog, value) %PRIVATEVNTSLJ1939CONFIGNAME Verifies slave name is valid matlab variable name. % % ISERR = PRIVATEVNTSLJ1939CONFIGNAME (DIALOG, VALUE) % SS 06-15-12 % Copyright 2015 The MathWorks, Inc. % Get the dialog source. obj = dialog.getDialogSource; allConfigs = j1939.internal.getConfigList(obj.Root.Name); if strcmpi(obj.ConfigName, obj.Block.ConfigName) if ((value==0) && (numel(allConfigs)==1)) % Selection was the first one - 'Select a config name' return; end obj.IsDifferentConfig = false; else obj.IsDifferentConfig = true; end % Refresh dialog dialog.refresh;