LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Last Q of the day (dealing with file saving)

When I save my data to the file it gives me a bunch of tabs and stuff that I don't know how to fix. I tried match pattern, and remove white spaces and neither did if for me. Is there a way that I can get it to only output spaces, periods, and commas?
0 Kudos
Message 1 of 7
(3,637 Views)

Hi Chod,

which data do you how save to a file?

 

Mike

0 Kudos
Message 2 of 7
(3,620 Views)

I'm going from text to text.

 

I'll put it in like this:

 

I want to go to the mall

 

and it will come out like this:

 

I  want    to go to    the   mall

 

I can't seem to fix it 😕

0 Kudos
Message 3 of 7
(3,616 Views)

Hi Chod,

can you show a picture of how you have the data in your vi and how you write it to a file? Unfortunately i can't open your LV8.6 vi's from the other posts at the moment.

 

Mike

0 Kudos
Message 4 of 7
(3,609 Views)

Sure thing:)

The sub vi changes the words around, it shouldn't mess with the spacing though.

0 Kudos
Message 5 of 7
(3,604 Views)

Simple suggestion - reccomend you try my VI version 2 (from the first thread) and see if that gives you th same string out. If not, it is because you are adding in extra random spaces in the pig latin subVI. I noticed that you deal with spaces in a funny way and had to do something to avoid that.

 

James

 

edit:

(Last post of the day - have a nice weekend)

 

I have debugged the spacing in my VI loads, I can only debug your subVI so much Smiley Wink

Suggest you just read file in, wrte string into VI, and write string straight out of VI. Smiley Happy It'll take you 5 mins to try.

Message Edited by James W on 04-16-2010 01:03 PM
CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
Message 6 of 7
(3,580 Views)
Wow! Thank you James! That worked much better!
0 Kudos
Message 7 of 7
(3,562 Views)