06-19-2023 06:48 AM
Hi Forum,
is there an option to edit the invoke node? Where it says keyToken=null? Not sure if that results in the error of key cannot be null. I tried all the option on right click, no avail
thanks,
Steffen
06-19-2023 07:20 AM
@Steffen01 wrote:
Hi Forum,
is there an option to edit the invoke node?
Generally no, but also kind of yes. The invoke node deals with methods provided by objects. If you have the source code which generated the object (which might be implemented using LabVIEW), then you can open the code that is called by the invoke node. In this case, it is a .NET class, so it is probably implemented in C# or VB.NET.
Where it says keyToken=null? Not sure if that results in the error of key cannot be null. ...
I guess that this "DTC" class is provided by some third party and is used with an external device - am I correct? If so, do you have documentation on how to use the class? I guess that it needs to be initialized first, either by using a constructor or calling an "Initializer" method.
06-19-2023 01:55 PM
Why are you using a class constant? You should be using a constructor node to create the object first.
06-19-2023 05:11 PM
I just used the library that Labview has generated. From tools, connect to webservice and then provided the URL from DTC. Suppose need to investigate a bit more
06-20-2023 04:38 AM
I would guess that a .NET constant is a Null constant, thus the error. You'll need a Constructor of that class first to get a valid reference.
06-20-2023 06:30 AM
labview made a whole library, there is an Open Web Service vi as well, Then its working. By the looks I can delete a few bits. Unfortunately none of them returns a result (yet), have to try a few more. Should calculate heaps of data
06-20-2023 06:48 AM
maybe I have to do a script of sorts, none of the methods that I am able to select on the node reflects what Danfoss gave me in their example script (Python to do some SOAP stuff)
06-20-2023 08:46 AM
I suppose you'll need to start with Open Web Service.vi
06-25-2023 05:14 AM
much easier, could delete most of what was in the open web service.vi, because most was in case there is a user with password etc, but its not. Also added something to deal with the xml results