01-07-2011 12:40 AM - edited 01-07-2011 12:41 AM
01-07-2011 12:43 AM
dthor,
Out of interest, how fast is mine using the same data set. I would remove your copy of the loop out of my vi as this would grind it to a halt.
Rgs,
Lucither.
01-07-2011 12:48 AM
OK, here's the second half of the problem. Also around 3ms, same result.
Thats very nice, and obvious when you look back at the problem.
Lucither
01-07-2011 01:08 AM
Unlike the "scan list" input of the second VI, the output of the first VI scans all rows in the same direction and thus has a large "flyback".
Basically, we need to rewrite the scan list so all section with a even number in the first row are reversed. This should be quite trivial and could be implemented directly with a bit more code.
In any case, we don't even need to generate the "scan list" at all, the entire task could be done in a singe FOR loop.
01-07-2011 01:22 AM
Unlike the "scan list" input of the second VI, the output of the first VI scans all rows in the same direction and thus has a large "flyback".
Basically, we need to rewrite the scan list so all section with a even number in the first row are reversed. This should be quite trivial and could be implemented directly with a bit more code.
In any case, we don't even need to generate the "scan list" at all, the entire task could be done in a singe FOR loop.
You lost me at 'Hello'. Can you repeat that as though your talking to a child please. Im not that stupid but i cant make out what you are saying
01-07-2011 02:00 AM - edited 01-07-2011 02:04 AM
Have a look at the output of the first VI, scroll e.g. to where we jump to the second row.
If we look at the same spot of scan list input of the second VI:
01-07-2011 02:13 AM - edited 01-07-2011 02:15 AM
... and here is my attempt to do the work of both VIs in basically one step, eliminating the intermediary "scan list".
It goes from the "probe array" to the "relative list" in about 4ms and also reverses the scan direction of every other row to limit unecessary movements.
(There are probably small bugs, so verify correct operation. I am sure it could be optimized further).
The code is not well documented, so let me know if anything is unclear.
01-07-2011 02:22 AM
Altenbach,
Sorry to be a pain but could you do me a favour. Could you post what you have done and the original op's vi's in 2009. Im really interested in what you have done to make it so efficient. Unfortunately it is hard to follow as i cannot see what the op's original data is like.
If its not too much bother i would appreciate it, am always looking to improve on things like this.
Rgs,
Lucither.
01-07-2011 02:32 AM
@dthor wrote:
EDIT: Yes, for now I can sum "Probe Array" and that will tell me the length of "Die to Test Array", but I plan on changing Probe array to be more than just 1 or 0.
That would probably not require much modifications (of course depending on what the other numbers mean to you).
for example:
01-07-2011 02:43 AM
Here are all three in LabVIEW 8.0. You should be able to open them in 2009.
They contain the same default data as the original posts. Check for bugs.... 😉