Host Engineering Forum

General Category => DirectSOFT => Topic started by: gvanderloop on November 24, 2008, 02:53:22 PM

Title: SBR Nickname and Documentation
Post by: gvanderloop on November 24, 2008, 02:53:22 PM
Hello I am a newbie. I was wondering if there is a way to assign a nickname to a Subroutine (SBR) and add documentation to like you can for a Stage. Thanks for the help.
Title: Re: SBR Nickname and Documentation
Post by: franji1 on November 24, 2008, 03:03:33 PM
No, sorry.  The subroutine parameter takes a K constant value, and K's don't have nicknames.

Nicknames and elements must have a 1-to-1 mapping, but K constants are used in many different places (subroutine numbers, timer/counter presets, arithmetic calculations, etc.).  For example, you might have a subroutine K10 that calculations Fibonacci numbers  ;D, and a timer preset of K10 for a 1 second timer, a counter preset of K10 that counts the number steps in a process, and K10 in a BCD calcuation, and K10 in a binary/decimal calculation, where it may mean 16.  Each of these K10 element references would need its own nickname, not the same nickname.  There is no "context" for a nickname other than the element itself, i.e. "K10".