Skip to main content

Add Argument

adminAbout 1 min

Add Argument.vi

This subVI is used for adding argument value of python function that will be called by Call Py Method.vi If the python function has multiple arguments, you can stack argument values by declaration order of your python script by using the multiple subVIs. Wiring the "Argument Object Variant Out" terminal of previous subVI to the "Argument Object Variant In" terminal of next subVI can make a list that stacks the argument values. Also, you can simultaneously wire argument value and apply the key name to apply the argument value corresponding to the argument name of the python function.

pykit-for-labview.lvlib:Add Argument.vi
pykit-for-labview.lvlib:Add Argument.vi
type
descriptions
cdatavalrefPykit Session In
specifies a reference to the Python session.
cstrKeyname
specifies the argument value name of the python function.
cfxdtArgument
The argument value that will be applied to the python method. Since the variable type is Variant, it supports almost variable type in LabVIEW.

For information about supported variable type, please see variable_transfer.html
cfxdtArgument Object Variant In
The argument list which has been stacked by using this subVI.
cerrcodeclsterror in
error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.
type
descriptions
idatavalrefPykit Session out
ifxdtArgument Object Variant Out
The argument list which contains the value in "Argument Object Variant Out" and the new added "Argument".
ierrcodeclsterror out
contains error information.
Last update:
Contributors: ZHUO DIAO