取消
显示结果 
搜索替代 
您的意思是: 

save number to file

I need save a 3D array to file.What i do is to change every three number to string and save.But i does't work.Can someone suggest ideal solution.

Regards
0 项奖励
1 条消息(共 4 条)
3,014 次查看
One simple solution (and probably the shortest) is to convert 3D array to string using "Array to Spreadsheet String" and save it to file. Find attached example. Anyway, you have other options available too (save every element or every 1D or 2D array included in your 3D separately ... just pay attention to read them in the same manner).

Hope this helps
下载全部
2 条消息(共 4 条)
3,014 次查看
For every 2D array "i" in your 3D array, "Write to Spreadsheet File.vi" with "append ?" option true.

Mark_Wang a ecrit :

> I need save a 3D array to file.What i do is to change every three
> number to string and save.But i does't work.Can someone suggest ideal
> solution.
>
> Regards
0 项奖励
3 条消息(共 4 条)
3,014 次查看
One variant on this advice comes if you aren't interested in viewing the data outside of LabVIEW (e.g. textfile, Excel, etc.), but just want to be able to save and retrieve it and use the minimum amount of storage space.

In that case, it's probably best to save and retrieve the data in binary format. Check out the "Write Binary File.vi" and "Read Binary File.vi" examples that ship with LabVIEW (Help >> Examples >> Fundamentals >> File I/O >> Binary File Examples).

Regards,
John Lum
National Instruments
0 项奖励
4 条消息(共 4 条)
3,014 次查看