Skip to content

write_io_channelWriteIoChannelWriteIoChannelwrite_io_channelT_write_io_channel🔗

Short description🔗

write_io_channelWriteIoChannelWriteIoChannelwrite_io_channelT_write_io_channel — Write a value to the specified I/O channels.

Signature🔗

write_io_channel( io_channel IOChannelHandle, tuple Value, out integer Status )void WriteIoChannel( const HTuple& IOChannelHandle, const HTuple& Value, HTuple* Status )static void HOperatorSet.WriteIoChannel( HTuple IOChannelHandle, HTuple value, out HTuple status )def write_io_channel( iochannel_handle: MaybeSequence[HHandle], value: Sequence[HTupleElementType] ) -> Sequence[int]

Herror T_write_io_channel( const Htuple IOChannelHandle, const Htuple Value, Htuple* Status )

static HTuple HIOChannel::WriteIoChannel( const HIOChannelArray& IOChannelHandle, const HTuple& Value )

HTuple HIOChannel::WriteIoChannel( const HTuple& Value ) const

static HTuple HIOChannel.WriteIoChannel( HIOChannel[] IOChannelHandle, HTuple value )

HTuple HIOChannel.WriteIoChannel( HTuple value )

Description🔗

write_io_channelWriteIoChannel writes values to the specified transmission channels. The channels are passed in IOChannelHandleIOChannelHandleiochannel_handle and can be opened and configured by open_io_channelOpenIoChannel, the values are passed to Valuevaluevalue. The parameter Statusstatusstatus returns for each written value in Valuevaluevalue a quality message. The value 00 indicates that the corresponding value of Valuevaluevalue could be written. Any other status value depends on the interface. Please refer to the interface-specific documentation in the directory doc/html/reference/io for further explanation.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

IOChannelHandleIOChannelHandleiochannel_handle (input_control) io_channel(-array) → (handle)HTuple (HHandle)HIOChannel, HTuple (IntPtr)MaybeSequence[HHandle]Htuple (handle)

Handles of the opened I/O channels.

Valuevaluevalue (input_control) tuple-array → (integer / real / string / handle)HTuple (Hlong / double / HString / HHandle)HTuple (int / long / double / string / HHandle)Sequence[HTupleElementType]Htuple (Hlong / double / char* / handle)

Write values.

Statusstatusstatus (output_control) integer-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Status of written values.

Result🔗

If the parameters are valid, the operator write_io_channelWriteIoChannel returns the value 2 (H_MSG_TRUE). If necessary an exception is raised. In this case, an extended error information may be set and can be queried with the operator get_extended_error_infoGetExtendedErrorInfo.

Combinations with other operators🔗

Combinations

Possible predecessors

open_io_channelOpenIoChannel, set_io_channel_paramSetIoChannelParam

Possible successors

close_io_channelCloseIoChannel

See also

read_io_channelReadIoChannel, open_io_channelOpenIoChannel, query_io_deviceQueryIoDevice, set_io_channel_paramSetIoChannelParam

Module🔗

Foundation