NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

editing a sequence call from CVI

I have created a "sequence call" step in my MainSequence from CVI. I would now like to go into the "sequence call" and edit which sequence it is calling (using CVI).

I assume that the syntax should be something to the effect of:

TS_PropertySetProperty(sequenceCallStep,&errorHandling,TS_SequenceName,CAVT_CSTRING,seqIWantToCall);
/|\ /|\ /|\ /|\ /|\
| | | | |
th
e step object handle error message | passing a string |
| |
the variable which stores the the new sequence to be called
sequence which the sequence call
step is calling


The above code is based on the similar code used to change the name of a step:

TS_PropertySetProperty(sequenceCallStep,NULL,TS_PropertyName,CAVT_CSTRING,newName);

Thanks,
Marek
0 Kudos
Message 1 of 4
(2,849 Views)
Hi Marek,
this should be fairly straight forward.
You do need to set a property of the sequenceCallStep, but it's the
TS.SData.SeqName property (a string) or
TS.SData.SeqNameExpr (a string)
depending on how you're specifying the sequence name it's calling (either by name directly or by an expression)
It also depends on where the sequence you're wanting to call is - look at TS.SData.SFPath and TS.SData.SFPathExpr

so you really need to use something like

char *seqIWantToCall = "NewSequence";
/* note this is the name of the sequence to call in the sequence file that you've already set up for in the step - we're just changeing the name of the sequence.*/

TS_PropertySetValString(sequenceCallStep, &errorHandling,
"TS.SD
ata.SeqName", 0, seqIWantToCall);


CA_FreeMemory(seqIWantToCall );

Hope that helps

Sacha
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 4
(2,849 Views)
Thanks Sacha, this is exactly what I needed!
0 Kudos
Message 3 of 4
(2,849 Views)
no problem

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 4
(2,849 Views)