06-13-2011 02:06 PM
interesting I wonder if it looks like a negative 48 to the string indicator.
06-13-2011 02:06 PM
You can right-click the string indicator and uncheck 'Enable Wrapping' for one solution.
Another option I use when getting these 'null-terminated' strings is Search and Replace:
06-13-2011 02:14 PM
@Delphin25 wrote:
Oh yeh that totally makes sense.
I bet if I get the resize done properly it will display on one line.
ie the pNmae size parameter comes back as 11 though I didnt save that with the default trick you showed my so you couldnt see that.
Must ba a way to link that retval back into the the array or the string. I know Labview doent want you to resize arrays but has a way to do it I'll read up on it now.
Ahhhh pName Size
Just add this
06-13-2011 02:17 PM
kool idea for trimming. thanks
I cant find any enable disable wrapping though? using version 7, may upgrade soon.
Trying to figure out how to add an array length input to the array before I display it?
This will be a sub VI for customer to use so trying to keep it simple and resonablly bulletproof.
The previous contractor made a freaking mess of it.
06-13-2011 02:21 PM
@Delphin25 wrote:
kool idea for trimming. thanks
I cant find any enable disable wrapping though? using version 7, may upgrade soon.
Trying to figure out how to add an array length input to the array before I display it?
This will be a sub VI for customer to use so trying to keep it simple and resonablly bulletproof.
The previous contractor made a freaking mess of it.
Easy enough- Aren't contractors fun
06-13-2011 02:24 PM
Jeff that looks nice but I cant figure out what that thing is you put in there. lloks like an array reshape or extract or something?
06-13-2011 02:35 PM
06-13-2011 02:40 PM
Kool the array subset works nicely.
Still not sure what your first thing was looks like a string function of some kind maybe???
Thanks again this is looking like it will work.
06-13-2011 02:48 PM
Oh I found that its a string subset like the array subset.. Either way I have my solution and I'm off to lunch.
Thanks a million for all the help guys you solved my problem and I learnd a great deal more about array and string manipulation in Labview!!!
06-13-2011 03:27 PM
Your quite welcome.
It looks like your DLL function is passed a pointer to the array[256] you created and pre-filled with\00's. The function then replaced the values with data leaving the nul charaters at the end. I bet you could have initialized the array with spaces, 0d32, and used "trim whitespace.vi" to remove the extra characers.