Name
write_tuplewrite_tupleWriteTupleWriteTuple — Write a tuple to a file.
The operator write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple writes the contents of TupleTupleTupleTupletuple to a
file. The data is written in an ASCII format. Therefore, the file can be
exchanged between different architectures (see also
Tuple / String Operations). The default HALCON
file extension for the tuple is 'tup'.
Note that write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple does not support handles, since binary data
is not supported by the underlying ASCII format.
An exception is raised when passing a tuple that contains handles.
To write a tuple that contains handles, use serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTuple and
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem.
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
TupleTupleTupleTupletuple (input_control) number(-array) → HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Tuple with any kind of data.
Name of the file to be written.
File extension: .tup
If the parameters are correct the operator write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple
returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.
fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteString
read_tupleread_tupleReadTupleReadTupleReadTuple,
write_imagewrite_imageWriteImageWriteImageWriteImage,
write_regionwrite_regionWriteRegionWriteRegionWriteRegion,
open_fileopen_fileOpenFileOpenFileOpenFile
Foundation