read

typhoon.test.capture.read(name, avg_reads=1)

Reads asynchronously a signal once (one time poll).

Parameters:
  • name – Name of the signal to read.

  • avg_reads – Defines how many reads to do to return an average of read values

Returns:

Value read for given signal.

Return type:

float

Examples

Instead of using the lower level HIL API commands:

>>> val = hil.read_analog_signal("P")
>>> val = hil.read_digital_signal("HIL0 digital input 10")

user can use directly

>>> from typhoon.test.capture import read
>>> val = read("P")
>>> val = read("HIL0 digital input 10")