LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wordpad vs. microsoft excel

hi there. i was wondering if someone have an explanation for me.

i have this vi. it move data to file by serial number.

i have one question. how come when i open it with excel. i dont see the wierd characters as I do when i open it in wordpad.

is it WINDOWS or it is something i can fix in my labview program to get rid of that?

 

 

Message Edited by krispiekream on 08-27-2008 04:59 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 1 of 20
(4,277 Views)

Well, since your VI is not changing the string that was read, then those NULL characters (which is what those are) would have to be coming from the original file.

 

Note:  You could just use the Copy file I/O function.

Message 2 of 20
(4,266 Views)

. great thanks. i'll try that

have a great labor day weekend

 

Best regards,
Krispiekream
0 Kudos
Message 3 of 20
(4,232 Views)

ok, i just got back from vacation.

i tried looking up copy file I/O function but i dont see it anywhere.

can you tell me how to get that.

i am using labview 7.0

thanks

 

Best regards,
Krispiekream
0 Kudos
Message 4 of 20
(4,179 Views)

It's in the Advanced File Functions palette. Remember there's a Search for the functions palette. Smiley Wink

 

Message Edited by smercurio_fc on 09-03-2008 01:50 PM
Message 5 of 20
(4,170 Views)

sorry, this is a really silly question, but what do i replace the copy function with?

Message Edited by krispiekream on 09-03-2008 03:19 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 6 of 20
(4,155 Views)

Well, it really depends on your data. You are reading a file line-by-line, and for each recond you append to a file with a certain file name based on a value in the current record.

 

You would only be able to use "copy" if all serial numbers in the input file are the same, and maybe they are not.

Message 7 of 20
(4,143 Views)

 


Well, it really depends on your data. You are reading a file line-by-line, and for each recond you append to a file with a certain file name based on a value in the current record.

 

You would only be able to use "copy" if all serial numbers in the input file are the same, and maybe they are not.


 

 

yeah. all the serial numbers in the input file are NOT the same.

so there is no other way to fix this?

can i say that all the NULL characters are due to how WORDPAD?

Best regards,
Krispiekream
0 Kudos
Message 8 of 20
(4,132 Views)

NO, your null characters are part of the original file. Excel just suppresses them in the display, which does not mean they are not there. You can eliminate them with some code if you want before writing to the output file.

 

A few more hints:

 

  • Never use "string to path" and "path to string", use strip path and build path exclusively.
  • Since you are only processing one line, use a 1D array as type for the "spreadsheet string to array" and then take element 14.
Message 9 of 20
(4,126 Views)

I don't understand this part.

"Since you are only processing one line, use a 1D array as type for the "spreadsheet string to array" and then take element 14." can you show me through a diagram?

sorry..

 

Best regards,
Krispiekream
0 Kudos
Message 10 of 20
(4,122 Views)