Hi,
I am trying to call a python function to LabVIEW using some nodes. However, I am getting an error (code:1671) related to python. Could you please help me to solve this error? Thank you. I am using LabVIEW 2023 Q3 and Python 3.6.0 both 64 bit. I tried to change python code such as casting or converting string to int and int to string. But they did not work.
Python code:
#define class
class myClass(object):
def init(self, parameter):
self.__Parameter = parameter
def GetValue(self):
return self.__Parameter
#define wrapper for LabVIEW Python node
def getClassData():
newClassObject = myClass(4882)
value = newClassObject.GetValue()
castedValue = int(value)
return castedValue
LabVIEW vi and error block: