NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

change custom step labels programatically

Sorry i was not able to come back to you. Actual problem was, the step for which the label need to be changed run time, i have placed them already in many sequences. But after that i updated the step pre expression. Now I am not able to see that expression being executed in the old sequences. if i replace it with the updated one it gets implemented but for old sequences in which this step is used, in that i cant see the pre-expression even if i make the sequence to update with the currently loaded one.

0 Kudos
Message 11 of 16
(1,281 Views)

 Below is the explanation to the problem I am facing. There is a file attached if you look at it, you find that first I made a sequence with a custom step and saved it. Later I updated the step with the post expression in the type palette. Later I opened the sequence again, it prompted for loading option. I choose for the currently loaded one. But it did not update with the expression which I was expecting. Later I placed the custom step again, and then I can see the updated expression. I can solve this problem by opening the sequence first late updating it in the type palette and the checking out the option at the bottom for “Apply changes for the loaded steps”. But I have used the custom step already in several sequences. I am looking for an easy option where it updates all the sequences containing that custom step.

This is the reason why I was not able to programmatically update the labels of custom steps.

0 Kudos
Message 12 of 16
(1,257 Views)

Hi,

 

There maybe a space character(s) still in the Post Expression.

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 13 of 16
(1,253 Views)

Hi,

 

Ignore my last response, I dont know what I was reading, I tried editting it but timed out before I could complete the edits.

 

It could be that the custom step type with the Post Expression isn't in the Global Palette and only local to that Sequence File.

 

I would close the Sequence Files and the SeqEditor. Then relaunch the SeqEditor, view the Global Type Palette to see what version of the step type you have loaded, eg whether its one with the Post Expression or not.

If it is, then you have an early local version of the step type in your Sequence File, in which case you need to remove all instances of the Step type from your Sequence File then you can delete the Local version of the Step Type found in the Type Palette view in the Sequence File.

 

Hope this helps

Regards

Ray Farmer

 

 

Regards
Ray Farmer
0 Kudos
Message 14 of 16
(1,250 Views)

Yes you are right, the version is limited to the sequence file itself. But i want ot know is there any way that it gets updated with the latest type palette without deleting the step.

0 Kudos
Message 15 of 16
(1,248 Views)

Hi,

 

Can you post an example with the problem.

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 16 of 16
(1,247 Views)