Skip to content

read_io_channelReadIoChannelReadIoChannelread_io_channelT_read_io_channel🔗

Short description🔗

read_io_channelReadIoChannelReadIoChannelread_io_channelT_read_io_channel — Read a value from the specified I/O channels.

Signature🔗

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

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

static HTuple HIOChannel::ReadIoChannel( const HIOChannelArray& IOChannelHandle, HTuple* Status )

HTuple HIOChannel::ReadIoChannel( HTuple* Status ) const

static HTuple HIOChannel.ReadIoChannel( HIOChannel[] IOChannelHandle, out HTuple status )

HTuple HIOChannel.ReadIoChannel( out HTuple status )

Description🔗

read_io_channelReadIoChannel reads input values from the specified transmission channels. The channels are passed in IOChannelHandleIOChannelHandleiochannel_handle and can be opened and configured by open_io_channelOpenIoChannel, the values are returned in Valuevaluevalue. The parameter Statusstatusstatus returns for each read value in Valuevaluevalue a quality message. The value 00 indicates that the corresponding value of Valuevaluevalue could be read. 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 (output_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)

Read value.

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

Status of read value.

Result🔗

If the parameters are valid, the operator read_io_channelReadIoChannel 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

write_io_channelWriteIoChannel, query_io_deviceQueryIoDevice, set_io_channel_paramSetIoChannelParam

Module🔗

Foundation