I have a problem with the IParameter.WriteData Method using C# on CtrlX Core.
I want to set an IDN in "P-0-0023" via the IParameter.WriteData Method in C# on the CtrlX Core.
Docu of method only contains an example on how to write an int:
Docu of IndraDrive PSB Parameters:
So as a first step i printed all possible IDNs using "S-0-0025" using the following code:
And i got the following print in the console:
So as a next step i tried the following code to set an IDN in "P-0-0023".
But both tries didnt work out 😞
Does anyone know how...
1) i can print all the IDNs from "S-0-0025" in a readable way?
2) how to set an IDN in "P-0-0023"?
Thanks a lot!
Solved! Go to Solution.
Could you give us some more insights in your setup?
Thanks for your reply 🙂
please try to write the value of P-0-0023 by type of System.UInt32 (4byte).
You can calculate the parameter type (IDN) by an offset. For S Parameter the offset is 0, for P Parameter the offset is 32768.