02-18-2008 07:05 AM
I have a TestStand program that generates an Excel Report using the NI LabVIEW Report Generation Toolkit for Microsoft Office.
The program will encounter a Run-Time Error when it executes a step called Excel - Set Cell Color.
This error usually occurs after the program has been running successfully for some time.
This Excel - Set Cell Color step calls a LabVIEW vi named Excel - Set Cell Color and Border.vi from the LabVIEW Toolkit.
This Run-Time Error generates an Error Code: -17324; Array index out of bounds.
The Location is always Step 'Excel - Set Cell Color' when the Run-Time Error occurs.
If I try to Handle Current Error by Retry or Ignore, every Excel step after the one where the error occurred generates a Run-Time Error with the same Error Code.
If I Run Cleanup, all Excel steps to generate the report summary in my program also generate Run-Time Errors.
Do you have any suggestions on how to fix this problem?
02-19-2008 01:05 AM
Hi,
Can you post a small example highlighting your problem and/or some screen shots showing your error dialogs.
Regards
Ray Farmer
02-19-2008 10:41 AM
02-19-2008 02:06 PM
Hi,
You can't attach bmp files unless you zip them up. You can attach jpgs or png file via the attachment control below the submit post button
regards
Ray Farmer
02-19-2008 02:12 PM
02-19-2008 02:17 PM
02-19-2008 02:29 PM
Hi,
where did the excel step types come from?
You seem to have some Parameters defined in the MainSequence. Does this mean you have modified the Process Model sequence file to pass parameters to the Client sequence file 'Key Switch Cycle Test FIEXED.seq'.
Regards
Ray
02-19-2008 04:46 PM
Hi Ray,
Excel -Set Cell Color is a sub-sequence of another sequence created by another person in our group. My program uses this sub-sequence. Here is what it looks like.
02-20-2008 12:44 AM
Hi,
So where is the array, is that being used to pass one of the parameters in 'Excel-Set Cell Color - green' of Key Switch Cycle Test FIXED.seq?
Ray
02-20-2008 07:09 AM
Hi Ray,
I cannot find an array. The only one I see is ResultList. This one seems to be in all Test Stand sequences. I am not sure exactly how it's used.
I have pulled the sub-sequence out of the main sequence and made a new main sequence with all of the same variables.
Look at it and let me know what you think.
Thanks