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.
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.
03-31-2014 09:33 AM
hi,
i have a txt file which im able to read in Labview. i need to read the column and separate it accordingly.
0000014123B --> 0000 014 123 B (from single column convert to 4 columns)
Meaning to say, the input need to be separate into 4 different column as above. attached is the txt file.
Solved! Go to Solution.
03-31-2014 11:29 AM
Is it always 4 characters, then 3, 3, and 1? If so, just use Substring.
03-31-2014 11:46 AM
Take a look at this
03-31-2014 12:58 PM - edited 03-31-2014 01:00 PM
Hi Randall,
just slightly Rube-Goldberg… 😄
No need to build lines and remove the EOL, to finally put all lines with their EOL chars in a spreadsheet string. Just do it with one function… (Your version might be more memory efficient with bigger string arrays.)
03-31-2014 01:14 PM
Simple to use a loop to create dynamic search and replace strings based on an array of widths as well.
03-31-2014 01:33 PM
04-01-2014 08:18 AM
hi, thanks for the quick response. can i have the vi since i am new to labview and not familiar with the palettes. thanks
04-01-2014 08:21 AM
04-04-2014 01:56 AM
hi,
i have created the vi as per in the image but i still cannot read the value.refer to the attachment. Can anyone advise me on that? thanks
04-04-2014 02:04 AM
Hi varsha,
- you forgot to enable the "Regular Expression" mode in the right-click menu of the parse function (did you notice the small star in the symbol?)
- you wired the TRUE constant to the wrong input
- the second string constant should be set to \-code display mode (well, I guess there's a LabVIEW idea to show the display mode of string constants by default…)