From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI產品與技術 討論區

cancel
Showing results for 
Search instead for 
Did you mean: 

如何把一個一個數字存成矩陣

想請問要怎麼把一個一個數字存乘一個矩陣(有點像cell)的功能

如附圖1這樣,把數字2 5 7 8 9 存乘一個矩陣?

還有一個問題

我在while迴圈裡放一個random number 按停止的時候 while迴圈的右邊輸出用index 成一個矩陣,但是他會出現 memory is full的畫面出來,想請問怎麼解決><?

Download All
0 Kudos
Message 1 of 3
(2,287 Views)

迴圈裡要加等待時間,不然會迴圈跑太快,資料堆疊到爆掉

0 Kudos
Message 2 of 3
(2,254 Views)

您好,

這樣做就能把數字存成陣列。

image.png

0 Kudos
Message 3 of 3
(2,238 Views)