LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I edit an invoke node?

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

Steffen01_3-1687175250070.png

 

 
 

Steffen01_2-1687175179321.png

thanks,

 

Steffen

 

0 Kudos
Message 1 of 9
(1,415 Views)

@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. ...

Steffen01_3-1687175250070.png

 

 
 

Steffen01_2-1687175179321.png

 

 


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.

0 Kudos
Message 2 of 9
(1,389 Views)

Why are you using a class constant? You should be using a constructor node to create the object first.

0 Kudos
Message 3 of 9
(1,343 Views)

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

0 Kudos
Message 4 of 9
(1,306 Views)

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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 9
(1,271 Views)

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

0 Kudos
Message 6 of 9
(1,262 Views)

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)

0 Kudos
Message 7 of 9
(1,257 Views)

I suppose you'll need to start with Open Web Service.vi

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 9
(1,238 Views)

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

Download All
0 Kudos
Message 9 of 9
(1,137 Views)