Skip to main content

Pop As Variant

adminAbout 1 min

Pop As Variant.vi

After calling python method, the return values will be added into a list. This subVI can extract the value in the list and spit out a list that does not contain the extracted return value. Notice that if there is not any return values that can be extracted, the error will occur. To avoid the error, please check the "Remain Length" before extract next value.

Notice that this subVI do not provide type conversion, the value of "data" terminals should be converted to labVIEW type by yourself. This subVI can be used when the value type will change depends on the situation in realtime or when you want to implement the original data type. If the variable type is fixed, Pop Return Object.vim is a more versatile solution.

pykit-for-labview.lvlib:Pop As Variant.vi
pykit-for-labview.lvlib:Pop As Variant.vi
type
descriptions
cdatavalrefPykit Session In
specifies a reference to the Python session.
cfxdtArgument Object Variant In
The list that contains return values of the python function.
This terminal should be wired from "Argument Object Out" terminal of Call Py Method.vi.
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
returns a reference to the Python session.
ifxdtArgument Object Out
The list that contains return values of the python function but get rid of the extracted data.
ifxdtdata
the remained data of return value in the python function.
ii32Remain Length
Number of datas that remain in the return data list.
ierrcodeclsterror out
contains error information.
Last update:
Contributors: ZHUO DIAO