NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

enable sequencefileload callback through VC++ and TS API

Hi,
 
I would like to enable the Sequence File Callback "Sequence File Load". Using TestStand's Sequence Editor, this is done in about 3 mouse clicks and there is nothing to wonder about.
 
Unfortunately (!), I am using VC++ and TestStand's API to programmatically create sequence files and insert seqences into these files. And insert steps into these sequences. And so on...
 
I now need to enable the SequenceFileLoad callback for a particular SequenceFile object but I've found just no way to do it so far. Anybody has a hint for me? Is it simply just not feasible?
 
Regards,
- Eric Parent
___________________________________
maito:eric.parent@averna.com
0 Kudos
Message 1 of 3
(3,190 Views)

Hey Erpa,

Have you seen this api call in the TS Help?:

CreateCallbackOverrideSequence Method

Syntax

SequenceFile.CreateCallbackOverrideSequence ( callbackName, allowCopyDefaultSteps)

Return Value

Sequence

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.

Purpose

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.

Parameters

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,183 Views)
Hi jiggawax,

It's exactly what I was looking for. Didn't found it during my previous visit of the HELP.


Smiley Mad

Thanks!

- Eric Parent
___________________________________
maito:eric.parent@averna.com
0 Kudos
Message 3 of 3
(3,175 Views)