LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save variable amount of string data

Hello, guys!

The thing is that I need to save an array of strings for future use purposes. But length of strings in array always varies from one vi start to another, so *.dat file is read with error 71 every next time!

How to work it out?

Need advices and experiences!

Thanx in adv!
0 Kudos
Message 1 of 4
(2,869 Views)
Hi Sharonoff,

when your strings don't contain TAB and EOL characters you can easily save them using the spreadsheet functions (file palette: Write/Read spreadsheet; string palette: array to spreadsheet string, spreadsheet string to array).
When your strings include those special characters you can either use other delimeters or write your own conversion routine...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,867 Views)
duplicate thread
Greets, Dave
0 Kudos
Message 3 of 4
(2,864 Views)
Hi!

Sorry, guys, for late reply.

I'll certainly post you as soon as I get any results upon this topic.

And, thank you for your attention!
0 Kudos
Message 4 of 4
(2,828 Views)