07-12-2013 05:48 PM
Hi All,
I have created a custom step which gives a LabVIEW pop up on dropping it in the sequence editor. The pop up has an OK and Cancel button. If I hit OK, the step is placed in the sequence and if I hit Cancel, the step is deleted from the sequence. I am doing this by passing the sequence context into the popup vi and then using the sequence method Delete Step.
Now when i do this practically, the step is getting deleted but after that I'm getting an error from TestStand with Error code -17300. Source: 'TSAPI' "Value invalid or out of range".
Can anyone tell me how to resolve this error. I am using TestStand 2010 and LabVIEW 2010
Thanks and regards,
Nitz
07-15-2013 10:00 AM - edited 07-15-2013 10:00 AM
This is likely not an anticipated or supported use case. What is likely happening is that TestStand is trying to select the newly inserted step after your substep is done running, but since you deleted it, it does not exist so it gets an "out of range index" error.
I can't think of a good way to fix this short of writing your own code to do the step insertion. The easiest solution probably is to not do the delete when cancel is pressed, but instead to put the step in a state such that it will always generate a runtime error if used without being specified appropriately.
I have recorded this issue as a change request in our tracking database.
-Doug
07-15-2013 11:58 PM
Doug,
Thank you very much for your reply. I'll try to find some alternatives as you mentioned rather than deleting the step. Looking forward to the changes you are going to make.
Warm regards,
NitzZ
07-16-2013 08:49 AM
Just want to clarify that adding an issue to our tracking database does not guarantee when or if it will be addressed.
-Doug
07-16-2013 10:21 AM
Doug,
I totally understand that. 🙂 I am even glad that this has been cosidered to be added to your tracking database... Anyway, thanks for the clarification.
Warm regards,
NitzZ