Re: replace 1 col from 2D array problem (further question?)
- From: altenbach <x@xxxxxxxx>
- Date: Wed, 27 Jul 2005 16:40:42 -0500 (CDT)
detech wrote:
It is strang I can not append to 16th col, possibly there is an array size issue. I tried hard but, my brain is dead now, please help?
You are not appending, you are replacing array elements. Your array only has 16 columns (0..15), thus there is nothing to replace in column 16. You need to grow the array by one column to operate on colum 16.
I would suggest you rattle through the rows using autoindexing, search for a match, then add the desired element, building an new output array. It is not very efficient to rewrite the entire array at each iteration with a property node!
Note also that your compare string will never match, because your date has "\" instead of "/" as separator and your NMC must be upper case. Several of your fields also contain spaces (e.g. "TPNo" and "To"), thus you need to trim the whitespace before building the compare string or nothing will ever match.
Attached is one possible solution (LV7.1), modify as needed. (Don't rewrite the original array, or it will grow by one every time you run it!)
ReplaceOneColFrom2DArrayMOD.vi:
http://forums.ni.com/attachments/ni/170/134117/1/ReplaceOneColFrom2DArrayMOD.vi
.
- References:
- Re: replace 1 col from 2D array problem
- From: PauloM
- Re: replace 1 col from 2D array problem
- Prev by Date: Changing the pulse width of a counter on-the-fly - ?
- Next by Date: How to manage many files?
- Previous by thread: Re: replace 1 col from 2D array problem
- Next by thread: Re: mass compile error after Labview update
- Index(es):
Relevant Pages
|