I am currently writing a protocol that needs to do a history set on a certain parameter in a QAction. I'm currently doing that by calling
protocol.SetParameter(1, value, time);
However, if I validate my code in DIS, I get the following warning
I found on the DataMiner docs (more specifically here) that if I would want to do a normal set, I could do
protocol.ParameterName = value;
Is there something similar for setting a history value?
Hi Tobe,
A history set, without using the hardcoded parameter ID, can be done as follows:
protocol.SetParameter(Parameter.ParameterName, value, time);
With the info icon on the error message in DIS, you can find some extra details. I’ll have a look to update this in DIS (for the next version) so that it’s more clear what is meant with the ‘Parameter’ class.