キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

split hex code after every 4096 bytes

解決済み
解決策を見る

separatehex.PNGHi, so I am trying to split my byte into 4096 in the for loop. The data size is 117824, but the substring doesnt print out all my data(it only prints out some of the data), however my substring2 will print out the whole hex code is I set the offset from 0 to 117823. Why is this happening?

0 件の賞賛
メッセージ1/4
4,071件の閲覧回数
解決策
トピック作成者keatwkが受理

As expected, substring shows only the data of the current iteration of the loop. Connect the wire to the right border of the for loop to build an array.

Your code could be simplyfied like this :

 

Split array.png

 

In your current code, the last elements (incomplete block) are ignored.

メッセージ2/4
4,053件の閲覧回数

like JB mentioned.

The substring indicator only shows the value of the last iteration. 

I attached you a small vi which simplyfied the requirements in the for loop 

 

0 件の賞賛
メッセージ3/4
4,045件の閲覧回数

Or another way of doing it

 

string array.png

 

Craig 

LabVIEW 2012
0 件の賞賛
メッセージ4/4
3,996件の閲覧回数