亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inca_matlab_api_demo.m

?? MATLAB提供的INCA_DEMO程序
?? M
?? 第 1 頁 / 共 2 頁
字號:
% handles    structure with handles and user data (see GUIDATA)


try
    defAns = {getpref('INCA','device'),...
        getpref('INCA','calElements'),''};
    answer = inputdlg({'Device Name:', 'Calibration Element:(Scalar / Curve / Map)',...
        'Display Mode: (2 for displayed and updated, 1 for just displayed, and 0 for no display)'},...
        'Add Calibration Element to Signal Group',1,defAns);
catch
    answer = inputdlg({'Device Name:', 'Calibration Element:(Scalar / Curve / Map)',...
        'Display Mode: (2 for displayed and updated, 1 for just displayed, and 0 for no display)'},...
        'Add Calibration Element to Signal Group');
end

if ~isempty(answer)
    setpref('INCA','device',answer{1})
    setpref('INCA','calElements',answer{2})
    if isempty(answer{3})
        IncaAddCalibrationElement(answer{1},answer{2})
    else
        IncaAddCalibrationElement(answer{1},answer{2},str2num(answer{3}))
    end      
end

% --------------------------------------------------------------------
function calRead_Callback(hObject, eventdata, handles)
% hObject    handle to calRead (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

try
    defAns = {getpref('INCA','device'),...
        getpref('INCA','calElements')};

    answer = inputdlg({'Device Name:', 'Calibration Element Name'},...
        'Read a Calibration Element from a Signal Group',1,defAns);
catch
    answer = inputdlg({'Device Name:', 'Calibration Element Name'},...
        'Read a Calibration Element from a Signal Group');
end

value = '';
xbreak = '';
ybreak = '';

if ~isempty(answer)
    setpref('INCA','device',answer{1})
    setpref('INCA','calElements',answer{2})

    value = IncaGetCalibrationValue(answer{1},answer{2});
    set(handles.textV,'string',num2str(value(1,1)))
    set(handles.textV,'userdata',value)
    
    try
    xbreak = IncaGetCalibrationValue(answer{1},answer{2},'x');
    set(handles.calEditX,'string',num2str(xbreak),...
        'value',1)
    catch
        set(handles.calEditX,'string','-------------',...
        'value',1)
    end
    try
    ybreak = IncaGetCalibrationValue(answer{1},answer{2},'y');
    set(handles.calEditY1,'string',num2str(ybreak),...
        'value',1)
    catch
        set(handles.calEditY1,'string','-------------',...
        'value',1)
    end
    

end

assignin('base','INCAcalDataValue',value)
assignin('base','INCAcalDataXbreak',xbreak)
assignin('base','INCAcalDataYbreak',ybreak)


%--------------------------------------------------------------------
function calSet_Callback(hObject, eventdata, handles)
% hObject    handle to calSet (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

try
    defAns = {getpref('INCA','device'), getpref('INCA','calElements'),'0','v'};

    answer = inputdlg({'Device Name:', 'Calibration Element:(Scalar / Curve / Map)'...
        'Calibration Value:','Calibration Value Type:(v / x / y)'},...
        'Set Calibration Element in a Signal Group',1,defAns);
catch
    answer = inputdlg({'Device Name:', 'Calibration Element:(Scalar / Curve / Map)'...
        'Calibration Value:','Calibration Value Type:(v / x / y)'},...
        'Set Calibration Element in a Signal Group');
end
   
if ~isempty(answer)
    setpref('INCA','device',answer{1})
    setpref('INCA','calElements',answer{2})
    if isempty(answer{4})
    	IncaSetCalibrationValue(answer{1}, answer{2}, str2num(answer{3}));
    else
        IncaSetCalibrationValue(answer{1}, answer{2}, str2num(answer{3}), answer{4});
    end
end

% --------------------------------------------------------------------
function memActivate_Callback(hObject, eventdata, handles)
% hObject    handle to memActivate (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

answer = inputdlg({'Device Name:', 'Page Name:(WP / RP)'},'Activate Memory Page',1,{getpref('INCA','device'),'WP'});

if ~isempty(answer)
    IncaSwitchPage(answer{1},answer{2})
end

% --------------------------------------------------------------------
function checkWrite_Callback(hObject, eventdata, handles)
% hObject    handle to checkWrite (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

answer = inputdlg({'Device Name:', 'Page Name:(WP / RP)'},'Activate Memory Page',1,{getpref('INCA','device'),'WP'});

if ~isempty(answer)
    iswrite = IncaIsPageWriteProtected(answer{1},answer{2})
    if iswrite
        msgbox('Memory page is write-protected',...
            'Memory Page Write-Protection','help')
    else
        msgbox('Memory page is NOT write-protected',...
            'Memory Page Write-Protection','help')
    end
end

% --------------------------------------------------------------------
function memDownload_Callback(hObject, eventdata, handles)
% hObject    handle to memDownload (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

try
    defAns = {getpref('INCA','device'),'WP'};
    answer = inputdlg({'Device Name:', 'Page Name:(WP / RP)'},'Download Selected Memory Page',1,defAns);
catch
    defAns = {'','WP'};
    answer = inputdlg({'Device Name:', 'Page Name:(WP / RP)'},'Download Selected Memory Page',1,defAns);
end

if ~isempty(answer)
    IncaSwitchPage(answer{1},answer{2})
end

% --------------------------------------------------------------------
function memCopy_Callback(hObject, eventdata, handles)
% hObject    handle to memCopy (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

answer = inputdlg({'Device Name:', 'Source Page Name:(WP / RP)', 'Destination Page Name:(WP / RP)'},...
    'Copy Memory Page',1,{getpref('INCA','device'),'RP','WP'});

if ~isempty(answer)
    IncaCopyPageFromTo(answer{1},answer{2},answer{3})
end

% --------------------------------------------------------------------
function memDiff_Callback(hObject, eventdata, handles)
% hObject    handle to memDiff (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

answer = inputdlg({'Device Name:'},...
    'Loads The Differences Between The Memory Pages',1,{getpref('INCA','device')});

if ~isempty(answer)
    IncaDownloadDifferences(answer{1})
end


% --------------------------------------------------------------------
function getRecord_Callback(hObject, eventdata, handles)
% hObject    handle to getRecord (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

try
defAns = {getpref('INCA','device'), getpref('INCA','measElementsGroup'),'1000'};

answer = inputdlg({'Device Name:','Group Name:', 'Maximum number of records to be transfered:'},...
    'Get Current Records',1,defAns);
catch
    answer = inputdlg({'Device Name:','Group Name:', 'Maximum number of records to be transfered:'},...
    'Get Current Records');
end
if ~isempty(answer)
    [time, data] = IncaGetRecords(answer{1},answer{2},str2num(answer{3}));
    assignin('base','time',time)
    assignin('base','data',data)
    setpref('INCA','device',answer{1})
    setpref('INCA','measElementsGroup',answer{2})
end

plot(time,data)
xlabel




% --------------------------------------------------------------------
function demoDummy_Callback(hObject, eventdata, handles)
% hObject    handle to demoDummy (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


notebook('INCADummyDeviceDemo.doc')


% --------------------------------------------------------------------
function demoEtkDummy_Callback(hObject, eventdata, handles)
% hObject    handle to demoEtkDummy (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


notebook('INCAetkDummyDeviceDemo.doc')

% --- Executes on button press in readDataToggle.
function readDataToggle_Callback(hObject, eventdata, handles)
% hObject    handle to readDataToggle (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of readDataToggle
val = get(hObject,'value');

if val
    set(hObject,'backgroundcolor',[0 1 0])
    try
        defAns = {getpref('INCA','device'), getpref('INCA','measElementsGroup'),'1000'};

        answer = inputdlg({'Device Name:','Group Name:', 'Maximum number of records to be transfered:'},...
            'Get Current Records',1,defAns);
    catch
        answer = inputdlg({'Device Name:','Group Name:', 'Maximum number of records to be transfered:'},...
            'Get Current Records');
    end
    if ~isempty(answer)
        device  = answer{1};
        group   = answer{2};
        sample  = str2num(answer{3});
        
        fcn = sprintf('readfunction(%s,%s,%d)',device,group,sample);        
        t = timer( 'Period', .2,'ExecutionMode','fixedRate');
        set(t,'timerfcn',{'readfunction', device, group, sample,gca})
        start(t)
        
        setpref('INCA','device',device)
        setpref('INCA','measElementsGroup',group)
    end
else
    set(hObject,'backgroundcolor',[1 0 0])
    a = timerfind;
    stop(a);delete(a)
    set(handles.axes1,'userdata','')
end

% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)



function calEditV_Callback(hObject, eventdata, handles)
% hObject    handle to calEditV (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of calEditV as text
%        str2double(get(hObject,'String')) returns contents of calEditV as a double

v = get(handles.calEditV,'value');
v2 = get(handles.calEditV2,'value');

data = get(handles.textV,'userdata');
if ~isempty(data)
    set(handles.textV,'string',data(v,v2))
else
    set(handles.textV,'string','----------------')
end


function calEditX_Callback(hObject, eventdata, handles)
% hObject    handle to calEditX (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of calEditX as text
%        str2double(get(hObject,'String')) returns contents of calEditX as a double

y = get(handles.calEditY1,'value');
x = get(handles.calEditX,'value');

if ~isempty(str2num(get(handles.calEditX,'string')))
    data = get(handles.textV,'userdata');
    if ~isempty(data)
        set(handles.textV,'string',data(x,y))
    else
        set(handles.textV,'string','----------------')
    end
end

function calEditY1_Callback(hObject, eventdata, handles)
% hObject    handle to calEditY1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of calEditY1 as text
%        str2double(get(hObject,'String')) returns contents of calEditY1 as a double
y = get(handles.calEditY1,'value');
x = get(handles.calEditX,'value');

if ~isempty(str2num(get(handles.calEditY1,'string')))
    data = get(handles.textV,'userdata');
    if ~isempty(data)
        set(handles.textV,'string',data(x,y))
    else
        set(handles.textV,'string','----------------')
    end
end

% --- Executes during object creation, after setting all properties.
function axes1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: place code in OpeningFcn to populate axes1




% --- Executes on button press in gridbutton.
function gridbutton_Callback(hObject, eventdata, handles)
% hObject    handle to gridbutton (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of gridbutton

val = get(hObject,'Value');
if val
    grid on
else 
    grid off
end




% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


set(handles.axes1,'userdata','')





?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本久久a久久精品亚洲| 成人免费av资源| 国产精品一区二区不卡| 99久久婷婷国产精品综合| 日韩欧美一级精品久久| 亚洲欧洲中文日韩久久av乱码| 肉色丝袜一区二区| 色妹子一区二区| 国产欧美日韩三级| 九九久久精品视频| 日韩午夜中文字幕| 午夜精品久久久久久久99水蜜桃| 成人激情文学综合网| 精品粉嫩超白一线天av| 欧美aa在线视频| 欧美精品乱码久久久久久| 亚洲精品成人悠悠色影视| 国产激情一区二区三区| 久久久久久久久久看片| 国产在线精品一区二区夜色| 欧美乱妇一区二区三区不卡视频| 一区二区三区高清不卡| jlzzjlzz亚洲女人18| 欧美高清在线精品一区| 丰满亚洲少妇av| 国产无遮挡一区二区三区毛片日本 | 亚洲欧美在线aaa| 国产精品一区在线观看乱码| 欧美一区二区视频网站| 日本在线不卡视频| 欧美一区日韩一区| 日本不卡1234视频| 精品久久久久久无| 国产一区美女在线| 国产欧美视频在线观看| www.一区二区| 亚洲欧洲日产国码二区| 色一区在线观看| 亚洲一区二区三区在线看| 欧美亚洲愉拍一区二区| 亚洲h动漫在线| 欧美精品在线一区二区三区| 男女男精品视频| 精品精品国产高清一毛片一天堂| 国产乱码字幕精品高清av| 国产亚洲欧美色| 99精品视频一区| 亚洲国产毛片aaaaa无费看| 91精品国产综合久久香蕉的特点| 青青草原综合久久大伊人精品优势| 欧美成人伊人久久综合网| 国产高清不卡一区| 亚洲激情自拍偷拍| 欧美一区二区三区的| 国产一区二区精品久久91| 亚洲欧洲日本在线| 欧美军同video69gay| 国产一区二区三区在线观看精品| 日本一区二区三区四区在线视频| 色先锋aa成人| 久久精品999| 国产精品久久久久久久久快鸭| 欧美无砖砖区免费| 国产一区二区精品久久99| 亚洲免费成人av| 欧美一级久久久| 99在线热播精品免费| 日韩国产欧美在线播放| 欧美国产丝袜视频| 欧美日韩在线播| 成人综合激情网| 奇米影视7777精品一区二区| 国产精品全国免费观看高清| 欧美日韩国产乱码电影| 国产乱子伦一区二区三区国色天香 | 欧美精品一区二| 色综合久久久久久久| 久久99精品久久久久久| 一区二区久久久久久| 久久久久久久久99精品| 欧美日本乱大交xxxxx| 东方aⅴ免费观看久久av| 日本免费新一区视频| 亚洲色图欧美激情| 2017欧美狠狠色| 777色狠狠一区二区三区| 99视频一区二区| 国产很黄免费观看久久| 青青青爽久久午夜综合久久午夜| 亚洲精品视频观看| 国产日韩精品一区二区浪潮av | 欧美午夜理伦三级在线观看| 国产精品资源在线看| 五月天亚洲婷婷| 亚洲素人一区二区| 欧美国产激情一区二区三区蜜月| 日韩欧美卡一卡二| 欧美久久婷婷综合色| 在线一区二区三区做爰视频网站| 国产成人免费视频一区| 国产一区二区在线观看免费| 亚洲第一激情av| 亚洲日本青草视频在线怡红院| 欧美国产精品劲爆| 国产视频一区二区三区在线观看| 精品欧美一区二区在线观看| 欧美一区三区四区| 91精品国产综合久久精品| 欧美视频在线观看一区二区| 色噜噜狠狠色综合欧洲selulu| 成人av在线资源网| 北条麻妃国产九九精品视频| 国产69精品久久久久毛片| 极品美女销魂一区二区三区| 久久草av在线| 国内精品写真在线观看| 国产一区二区三区在线观看精品| 精品一区二区三区免费观看| 国产一区二区三区最好精华液| 久久激情五月激情| 国产麻豆午夜三级精品| 高清beeg欧美| 色综合色综合色综合| 在线观看亚洲成人| 在线电影院国产精品| 日韩一区二区视频| 精品国产露脸精彩对白| 国产日韩欧美一区二区三区乱码| 亚洲欧洲日韩女同| 亚洲愉拍自拍另类高清精品| 亚洲国产综合在线| 久久精品国产久精国产| 国产精品一区二区免费不卡| av网站免费线看精品| 欧美亚洲自拍偷拍| 精品久久一区二区三区| 国产校园另类小说区| 国产精品久久久久久久久久免费看| 亚洲女厕所小便bbb| 日韩一区精品字幕| 极品少妇一区二区三区精品视频| 成人av在线一区二区三区| 欧美三级三级三级爽爽爽| 日韩精品中文字幕在线不卡尤物| 久久久五月婷婷| 一区二区三区成人| 精品综合免费视频观看| 97se狠狠狠综合亚洲狠狠| 欧美一区二区三区不卡| 国产午夜精品久久久久久久 | 欧美日韩国产大片| 精品国产亚洲在线| 亚洲欧美另类综合偷拍| 日韩av午夜在线观看| 国产一区二区电影| 欧美丝袜第三区| 国产精品美女久久久久av爽李琼| 亚洲一区二区欧美日韩| 国产一区二区毛片| 色婷婷香蕉在线一区二区| 日韩美一区二区三区| 亚洲精品视频免费观看| 国产在线精品一区二区不卡了| 色婷婷av久久久久久久| 久久色在线观看| 亚洲电影一级片| 91在线视频官网| 欧美精品一区二区三区很污很色的| 中文字幕欧美一| 国产馆精品极品| 91精品国产入口| 亚洲综合色丁香婷婷六月图片| 国产精品1024久久| 日韩欧美亚洲一区二区| 亚洲资源中文字幕| 91在线一区二区| 国产亚洲欧美在线| 久久er精品视频| 91麻豆精品国产| 亚洲国产欧美一区二区三区丁香婷| 国产成人精品亚洲午夜麻豆| 欧美电影免费观看完整版| 亚洲6080在线| 欧美系列一区二区| 亚洲综合男人的天堂| 不卡的av电影在线观看| 国产亚洲精品aa| 极品销魂美女一区二区三区| 日韩一区二区三区免费看 | 国产一本一道久久香蕉| 日韩女优毛片在线| 日精品一区二区三区| 在线一区二区视频| 亚洲日本一区二区三区| 99热99精品| 亚洲三级免费观看| 色香色香欲天天天影视综合网| |精品福利一区二区三区| av成人老司机| 日韩美女久久久|