範圍的設定可以經由property node或直接設定,直接設定的話,可以在顯示元上按右鍵>>properties,然後做以下設定即可
ancle41968.415775463
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>ancle前輩
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>假設設定完成
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>在執行時系統會把整個範圍的值分別帶入進行運算嗎?
如果你是要執行90~180共91次的話,程式改為如下所示
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>感謝ancle前輩的回復
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>這樣測試的確是可以運算的
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>但假設在最後+之前,有沒有辦法把91組的值在做加總
<span =“bold” style=“-sizing: border-; color: rgb(0, 64, 128); text-decoration: none; font-size: 12px; line-height: 18px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-: 0px 0px; background-repeat: initial;”>在進行做後的運算
ancle前輩
內建加總有使用但會錯誤如圖
是否能把訊號整合(把91組的訊號合起來)如下圖所示
感謝ancle前輩的指導
你原先使用的graph的型態是2D陣列,但是現在輸出只有一個數值,如果真要使用可以使用chart來顯示
ancle
10
感覺現在已經答非所問,請你再把你的需求詳細說明一下
因為我從DAQ卡擷取電
流訊號
擷取數為20K 時間16秒 故會有320K的訊號
點
轉成波形圖
所以把方程式Ft=Fx×cosβ+Fy×sinβ>帶入,計算出來
而β值為90~180全部帶入計算一遍,在相加起來
得到一個波形圖
或者我一個週期的取樣點為91各點是否能把Ft=Fx×cosβ+Fy×sinβ 帶入,β值為90~180,
個別對每個點計算得到波形圖 ,
如第一點的X與Y訊進 入,β帶90.
第二點的X與Y 訊進入,β帶91.
ancle
12
如果是320K資料的話β值為90~180,後面幾筆資料會有除不盡的地方,這個部份先不考慮的話,如果按照你的第二點需求,方法之一如下
ancle41971.9422106482