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