Can you please verify using PISDKUtility.exe if the connection shows in the Known Servers Table (KST) under PI SDK -> Connections?
If it shows in there, please try to connect. Does that work?
Please also check the local PI Message Log for more detailed information using pigetmsg.exe. Please let us know if you need more guidance with this step.
What version of PI DataLink is installed. Please check with Programs and Features dialog from Control Panel.
Looking at the documentation for PIPutVal and the snippet you posted, I get the impression that the amount of parameters is wrong. Can you please verify?
Thanks for your fast reply.
1. Yes, the server shows as connected.
2. In Pi Message Log, there is no connection line regarding PIPutVal
3. I have the PI Datalink 2015 version
4. Have the 5 arguments that are needed.
What it´s surprising is that the same macro is working correctly in a different excel or tag...
Can you please verify with the PI Message Log on the PI Data Archive node if it has the incoming connection attempt and how it treats it?