NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
MimiKLM

Select Case End steps shall allow the Label steps to go between them.

Status: Declined

I'm declining this idea due to lack of community support.

As in subject:

 

Now if I put the label inside Selrct-Case-End block the sequence won't run:

 

ccccccbtulelgndllulfjkgfejhiirfeevierbgltevu.PNG

 

Sometimes, you have a lot of cases and the labels would be very useful do describe the cases.

 

I think they shall be excluded from the the rule that "Only Case blocks can be nested in Select blocks".

7 Comments
crossrulz
Knight of NI

You can put in a comment on the Case step.  Would that be good enough?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MimiKLM
Active Participant

No,

 

Think about the if you have a 50 - 70 cases. Using labels it is much better to do the significant and distinguish lines which split up the cases or groups of cases.

 

I think this 'lock' is a bit artificial here.

 

crossrulz
Knight of NI

I must disagree.  You can't put any step type between the End and Case.  The label is no different.  And you can't use a label since labels are used by GoTo statements.  Can you imagine trying to just into the middle of a Switch..Case statement?  That's just asking for trouble.

 

The comment on the case works the same as a label (documentation wise) except it isn't a step.  If you really want to break it up a little, put an empty line in the comment of the Case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MimiKLM
Active Participant

OK crossrulz,

 

I've forgoten of that basic function of the label. Of course it was designed to co-op with the GoTo statement, and using the label las the 'label only' is bad practice.

 

However, I'd still insist of having somethink like the 'Comment' step, which could be put in between Select-Case-End.

 

Imagine the really big Select-Case-End statement (50 and more in my case). I really starving for something which I could use as a 'groupper'.

 

 

crossrulz
Knight of NI

Again, use the comment on the Case.  It shows up as text right above the Case step.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MimiKLM
Active Participant

Look crossrulz,

 

Someone else had this idea as well: http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/Add-step-type-quot-Comment-quot/idi-p/1396252

 

Ironicly NI has said that this feature is already implemented. I don't agree with this status. I agree with you that label shall be treated as in connection with GoTo.

 

This text you mention in your last comment is to small.

WireWeaver
Active Participant
Status changed to: Declined

I'm declining this idea due to lack of community support.

https://www.linkedin.com/in/trentweaver