Pack

Prepare an object to be used in a Python function call.

Before calling a Python function using Call, any arguments to that function must be "packed", or collected in a form that Python can understand.

Call Pack.vi once per argument, and wire the Python Object References terminals together, and to the corresponding terminal on Call. You can think of the Python Object References as a list of arguments. Each call to Pack.vi adds an item to the end of that list, then Call sends the list to Python to execute the function call.

Python functions can accept ordinary ("positional") arguments, but also "keyword" arguments which are associated with a name. Use the Keyword Name terminal to associate a string name with your argument.

../_images/Pack.png
int32_in int32_out Session ID/Session ID Out
The current Python session ID. Session ID Out always contains the same value as Session ID.
variant_in Argument
A value you would like to add to your Python function call.
string_in Keyword Name
An optional name for the argument; this will be supplied to the Python function as a "keyword" argument.
variant_in Python Object References In
Any objects which have already been "packed" by previous calls to Pack.vi.
variant_out Python Object References Out
The new list of packed objects, including the object you have just added.
error_in error_out Error In/Out
Terminals for standard error functionality.