Hello,
Is it possible to use in QA Class “Parameter” for parameter of <type> read bit </type>? For example, instead of using parameter number ( protocol.GetParameter(147) ), I want to use
Class "Parameter" ( protocol.GetParameter(Parameter.name_147)). Try it but not work. In DIS, when editing QA there are no IntellySense possibilities in Class "Parameter" for parameters of "read bit" type. With other types of parameters Class "Parameter" working fine.
Maybe I declared something wrong in "read bit" parameters?
Thank you!
Currently, it is only possible to use the "Parameter" Class for parameters of the type "read" and "write".
If you don't want to use the parameter id to retrieve the value then you can use the extended version of SLProtocol.
Instead of using Run(SLProtocol protocol) you can use Run(SLProtocolExt protocol) see the example below. The downside of this is that you won't be able to see the parameter id anymore.