1. 找尋檔案多筆資料中的值
2. "Read Delimited Spreadsheet"(function-programminf-file)為讀取檔案
3. "Search 1D Array"找尋Array之值
Block digram
Front Panel
- 使用"Read Delimited Spreadsheet"先讀取檔案,調成string模式及連到"all rows"
- 把輸入值轉為字串
- 透過"Search 1D Array"找陣列中的字串,"2"是指從一行中的第三個開始找起
- 如果在 " array" 中沒有找到字串,就會產生-1 ,有找到的話就不產生-1。
- 不產生-1則會到 "T",每找到一次就加一,並利用移位暫存器存它的次數。
沒有留言:
張貼留言