11-09-2007 07:51 AM
11-09-2007 09:43 AM
Hey Erpa,
Have you seen this api call in the TS Help?:
SequenceFile.CreateCallbackOverrideSequence ( callbackName, allowCopyDefaultSteps)
The name of the callback sequence to override. Specify the sequence name of a Model, Engine, or Front-End callback. See DefaultModelCallbacks, and SeqFileCallbacks constants for possible values for this parameter.
Use this method to create a callback sequence in the sequence file. The callback sequence you create overrides the Model, Engine, or Front-End callback of the same name as the callback you create. Refer to the NI TestStand Reference Manual for more information about callbacks.
callbackName As String
[In] A reference to the Sequence callback the method creates. Release this reference when you are finished with it.
allowCopyDefaultSteps As Boolean
[In] Pass True to copy the steps of the sequence you are overriding into the new sequence.
Seems like once you have a reference to the sequence file you are creating you can just call this method. Pass "SequenceFileLoad" as the callbackName. I believe it returns the sequence to which you are adding. Then once you have that you can add steps the same way you add them to your current sequence.
Let me know if this is what you are looking for or if there's something else you need.
Regards,
11-09-2007 10:07 AM