LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a Call Library Function Node in a block diagram

Solved!
Go to solution

I inhereted some LabView programs and need to undertand how they use functions in a C library DLL. Thererefore I need to interpret Call Library Function nodes in the block diagram, like the example below. (I saw this documentation but the Node looks different). Can you please explain: 

  • Is SomeName1 the name of the DLL?
  • For the thick yellow and black line that goes into SomeName1 on the left and exits it on the right, does it mean anything besides the direction of information flow? 
  • Is there any meaning to the following symbols inside the the SomeName1 box: page symbols in the upper corners, question marks in the bottom corners, and a dashed arrow on the left? 
  • Is SomeName2 the name of a function in the DLL? 
  • Are arg1, arg2, arg3, ... inputs that Labview is passing into the DLL function SomeName2?
  • Is the green line coming out of right of the SomeName2 box the output of the DLL function? 

colorimeter_4-1612294757663.png

I'm a LabView novice using 32-bit LabView 2017.

0 Kudos
Message 1 of 7
(1,514 Views)

Double click the CLFN and poke around the configuration options. 

0 Kudos
Message 2 of 7
(1,480 Views)
Solution
Accepted by topic author colorimeter

What you have in the picture is an Invoke node, used for calling VI Server functions for a given object reference. It's similar to the CLFN.

 

Is SomeName1 the name of the DLL?

It's the name of the object reference. Examples include App or VI.

 

For the thick yellow and black line that goes into SomeName1 on the left and exits it on the right, does it mean anything besides the direction of information flow? 

That's the error wire. The error wire on the right will contain an error if there was a problem calling the method.

 

Is there any meaning to the following symbols inside the the SomeName1 box: page symbols in the upper corners, question marks in the bottom corners, and a dashed arrow on the left? 

That's just some fruit to show what wire types can be connected. The top left page symbol is the reference input, the bottom left symbol is the error wire, and the same on the right.

 

Is SomeName2 the name of a function in the DLL?

No. That's the name of the return value.

 

Are arg1, arg2, arg3, ... inputs that Labview is passing into the DLL function SomeName2?

Yes.

 

Is the green line coming out of right of the SomeName2 box the output of the DLL function? 

Yes.




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
Message 3 of 7
(1,460 Views)

Thanks for deciphering this! As a new user, where should I have gone in the documentation to find this? I could only find documentation on how to create the node, but not how to read an existing one.

And since I even got the type of node wrong (Invoke node not CLFN), where can I see pictures of all different node types and their corresponding names? I am starting with code that someone who is no longer around wrote, and need to learn to identify what the nodes are.

0 Kudos
Message 4 of 7
(1,427 Views)

@colorimeter wrote:

 

And since I even got the type of node wrong (Invoke node not CLFN), where can I see pictures of all different node types and their corresponding names? I am starting with code that someone who is no longer around wrote, and need to learn to identify what the nodes are.


You can either right click on a node to get the help for it (that's a general useful rule - when in doubt, right click to see if there are relevant options) or open the context help window (Ctrl+H or yellow question mark on the toolbar), which will give you info about what you're hovering over.


___________________
Try to take over the world!
Message 5 of 7
(1,399 Views)

Thanks. When I do Ctrl+H, I get:

colorimeter_2-1612444880727.png

Where would I look to see that this node is called an Invoke node? Or is it actually called a Property node? 

0 Kudos
Message 6 of 7
(1,386 Views)

Did you notice the wrench in that icon header in your help information? This indicates that it is indeed a property node. Your original picture contained an arrow instead of the wrench and then it is a method or invoke node.

 

They look similar but are doing somewhat different things. The Property node accesses one or more properties of the class/refnum/object that it refers to. The Method or Invoke node invokes a method of that class/refnum/object. A method is a function that has 0 to n parameters and returns 0 or 1 value. 

Rolf Kalbermatter
My Blog
Message 7 of 7
(1,368 Views)