LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying Return Type for Python Node

Solved!
Go to solution

I'm having an issue with specifying just the return type on this Python node. I have tried wiring a control of type double to the return type terminal of the Python node, but this seems to send both the data type and the value as the return value. For example, the output of the Python node is 0 if I do not modify the return type control. If I set the control to 5, I get 5 as the output from the Python node. I'm sending four inputs to this Python Node as seen in the following picture and returning one output computed in Python, but instead I am just getting the value of the return type for the return value. Any ideas on why this is happening?

 

Best, 

 

Zach

 

 

0 Kudos
Message 1 of 3
(3,930 Views)
Solution
Accepted by topic author zhale

Hopefully this is the same problem solved by this thread: https://forums.ni.com/t5/LabVIEW/Python-Node-Return-Value-Output/m-p/3932630#M1117586

 

Just posting to prevent multiple threads all being worked on separately.

 

If that's not the case, please correct me.


GCentral
Message 2 of 3
(3,900 Views)

Correct. Thanks!

0 Kudos
Message 3 of 3
(3,895 Views)