LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labviewでテキストを読み込みスペースで分割して配列にしたい

Solved!
Go to solution

作業中に壁に当たっています、解決策いただけると助かります。

添付のテキストファイルを複数読み込んで

テキストをスペースで区切って配列にしたいのですが

数値間のスペースでうまき区切れません。

全スペースで区切る方法をお教えください。

 

0 Kudos
Message 1 of 5
(932 Views)

Hi ame,

 


@ame2 wrote:

I am hitting a wall while working, I would appreciate it if you could give me a solution.

Load multiple attached text files

I would like to create an array of text separated by spaces.

The numbers cannot be separated properly by spaces.

Please tell me how to separate with all spaces.


  • Use SpreadsheetStringToArray with a "space" as delimiter char:

  • To read multiple files you could use a loop to iterate over an array of filepaths...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(929 Views)

Knight of NI

 

ありがとうございます。

 

1  808.68439…このセルの数値もスペースで分割したいです。

可能でしょうか。

0 Kudos
Message 3 of 5
(855 Views)
Solution
Accepted by topic author ame2

Hi ame,

 


@ame2 wrote:

1 808.68439…I also want to divide the number in this cell by a space.

Is it possible.


When there is no space within this "word" then you cannot split this string by using spaces as delimiter!

You need to index the array element and split the string by your own rules! (I guess you want to split now with using the point...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(841 Views)

スペースがないのですね。

親切に教えていただいてありがとうございます。

0 Kudos
Message 5 of 5
(837 Views)