09-03-2008 05:12 PM
Your "spreadsheet string to array" has a 2D array constant as type. Simply make this a 1D array by resizing the index terminal so only one index shows to turn it into a 1D array. Now the output is a 1D array where you simply can take element #14.
See if this works for you.
09-03-2008
05:25 PM
- last edited on
09-04-2008
08:48 AM
by
Support
i think i am doing this right.
i replaced string to path with "strip path"
and path to string with "build string"
but i am getting "Open File error" if i do this.
09-03-2008 05:51 PM - edited 09-03-2008 05:51 PM
09-03-2008 05:59 PM - edited 09-03-2008 06:00 PM
PLEASE keep your images to a reasonable size! Crop it to the important information!
Here's what I had in mind.
09-03-2008 06:01 PM
u mean like this?
09-03-2008 06:14 PM
ok. that works.
but it look like i have to go all the way back to the program to find out where/when/why the NULL characters are being saved.
thank you so much guys!
09-04-2008 03:51 PM
ok. i think i found out where the program was creating those NULL CHARACTERS.
its the FALSE case.
everytime its FALSE...the "EMPTY STRING CONSTANTS" is being written in the file and those characters are NULL.
does anyone have any suggestion?
i want to get rid of them. what can i put in the false case that would be NOTHING....
i'll attach the write_data.vi
09-04-2008 04:05 PM
This is because you are writing an array of strings. THe "prepend array or string size=False" controls only the toplevel structure, i.e. the array size, so your array elements that are empty strings with have zero size and thus contain a few nulls.
Try the following: Insert a size=1 "concatenate strings" into the string array right before you write it to the file. This will make it a plain string.
09-04-2008 04:06 PM
The problem is related to autoindexing. If you run a loop X number of times with an autoindexing output tunnel, then it creates an array with X items. Every item in the string array has to contain something.
I don't know how this VI you posted fits in with the rest of your code as it looks like a stripped down example. I think you have 2 choices.
1. Search the array for strings with a 255 character and delete them from the array before writing it out to the file.
2. Don't use autoindexing. Use a shift register that builds upon and concatenates new data to the string in the shift register every iteration in the true cases. In the false cases, you wire through the string as is.
09-04-2008 05:01 PM
cool.. this works...
Try the following: Insert a size=1 "concatenate strings" into the string array right before you write it to the file. This will make it a plain string.
thank you guys. great advices and without you guys help. i think think i'll never find the solution
thanks again