NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

General approach of Custom step types; storing data in step variables or step attributes

Hello,

 

 

I am creating some custom step types that some other people will use and I have some information that i preferebly would like to store in them. 

 

Some data shall be possible to edit from teststand more easily than others, for example if I create a step that sends information to an "address", address is here a number that the custom step in it's prestep sends to a certain UUT after it has been processed in some way. It would therefore be quite easy to change this step variable in a loop over that step and loop over a certain address range. I was in this scenario thinking of storing the information in a Step variable so that the "user" easily can modify it, is this a good approach?

 

I also need to store some data that the sequence editor "user" does not need to know so much about, for example some flags that are used during the execution. (but between different code adapters), so my idea was here to store theese as attributes in the step.

 

In this way this information is more hidden and wont be accidentaly changed when creating sequences, is there any performance issue by doing it like this or something else I would think about?

0 Kudos
Message 1 of 4
(4,247 Views)

They will be harder to access if they are in attributes.  If it were me I would just use sub properties and then set the flags for those subproperties.  So if you throw down a new step type you will see a whole bunch of properties that you don't see in the sequence under property browse.  Right click on of these and go to properties.  Then click the advanced button.  You can see which flags are set to keep it from showing in the editor under property browser.  Set those flags on the properties you add.

 

Hope this helps some,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(4,236 Views)

I should be more clear.  In other words use the Hidden flag for those properties.

 

Regards,

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 4
(4,235 Views)

Aha, great advice I will tamper with the flags for some while to see where I benefit most of it.

I have some trouble deciding where to put my interfaces between different code modules(too keep it modular), as it is now do I mainly pass information to Step variables.

0 Kudos
Message 4 of 4
(4,186 Views)