[問題] rs232已回收

看板MATLAB作者 (嚕拉拉)時間16年前 (2009/04/27 13:34), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
請問有人會rs232嗎? %tmtool used for instrument tool box text=':U500'; com = serial('com1'); fopen(com); set(com,'terminator',{'CR/LF','CR/LF'}); fprintf(com,text); %fprintf(com,'a'); %out = fscanf(com) fclose(com); fprintf('it is done.'); delete(com); 這是我們老師的原始程式碼 我現在要把存好檔案裡的座標值數據輸入進去這個程式 檔名為 coordinate.txt 讓步進馬達可以移動到對應的座標位置 因為我看不懂 不知如何下手 請問版上的高手們 我該怎麼進行呢?? 謝謝啦!! -- 人生可貴朋友情 尋之當珍惜 世間難得知己心 得知且相惜 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.72.3

04/27 20:16, , 1F
你哪裡看不懂??
04/27 20:16, 1F

04/28 08:21, , 2F
我都不會 因為是剛接觸
04/28 08:21, 2F

04/28 08:21, , 3F
我要怎麼修改才能讓馬達移動到我要的座標位置呢?
04/28 08:21, 3F

04/28 08:22, , 4F
座標位置我已經存在一個文字檔裡了
04/28 08:22, 4F
文章代碼(AID): #19zKFPaO (MATLAB)
文章代碼(AID): #19zKFPaO (MATLAB)