| |
- read_analog_input_regs_cn0414(global_data: Dict[str, Any], address: List[int], registers_number: int = 50, debug: bool = False) -> List[int]
- Read analog input registers.
Read analog input registers from CN0414 with function code 4.
Args:
instrument: Instrument object created by minimalmodbus
delay: Delay between MODBUS commands
address: MODBUS register start address
registers_number: Number of MODBUS register read (default value = 50)
debug: If True will print registers description and value
in a colored table (default value = False)
Returns:
Return a list of registers values
- read_board_current_channels(global_data: Dict[str, Any]) -> None
- Read a single board current channels.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_board_voltage_channels(global_data: Dict[str, Any]) -> None
- Read a single board voltage channels.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_current(global_data: Dict[str, Any], channel_address: List[int], coding_type: int) -> float
- Read current channels.
Args:
global_data: Dictionary with global variables
channel_address: List of MODBUS address, CS and channel number
coding_type: Bipolar or Unipolar
Returns:
Measured current value
- read_current_channels(global_data: Dict[str, Any], board_address: int) -> List[float]
- Read current channels from an address.
Args:
global_data: Dictionary with global variables
board_address: CS value
Returns:
Measured current
- read_device_current_channel(global_data: Dict[str, Any]) -> None
- Read current continuously from selected channel.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_device_voltage_channel(global_data: Dict[str, Any]) -> None
- Read voltage continuously from selected channel.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_instrument_current_channels(global_data: Dict[str, Any]) -> None
- Read curent selected instrument current channels.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_instrument_voltage_channels(global_data: Dict[str, Any]) -> None
- Read curent selected instrument voltage channels.
Args:
global_data: Dictionary with global variables
Returns:
None
- read_output_holding_regs_cn0414(global_data: Dict[str, Any], address: List[int], registers_number: int = 7, debug: bool = False) -> List[int]
- Read output holding registers.
Read output holding registers from CN0414 with function code 3.
Args:
instrument: Instrument object created by minimalmodbus
delay: Delay between MODBUS commands
address: MODBUS register start address
registers_number: Number of MODBUS register read (default value = 7)
debug: If True will print registers description and value
in a colored table (default value = False)
Returns:
Return a list of registers values
- read_voltage(global_data: Dict[str, Any], channel_address: List[int], coding_type: int) -> float
- Read voltage channels.
Args:
global_data: Dictionary with global variables
channel_address: List of MODBUS address, CS and channel number
coding_type: Bipolar or Unipolar
Returns:
Measured voltage value
- read_voltage_channels(global_data: Dict[str, Any], board_address: int) -> List[float]
- Read voltage channels from an address.
Args:
global_data: Dictionary with global variables
board_address: CS value
Returns:
Measured voltage
- request_adc_cs(global_data: Dict[str, Any]) -> int
- Request ADC CS.
Args:
global_data: Dictionary with global variables
Returns:
CS address
- select_hart_channel(global_data: Dict[str, Any]) -> None
- Select HART channel.
Args:
global_data: Dictionary with global variables
Returns:
None
- send_hart_command_0(global_data: Dict[str, Any]) -> None
- Send HART command 0.
Args:
global_data: Dictionary with global variables
Returns:
None
- set_adc_filter(global_data: Dict[str, Any]) -> None
- Select ADC intrnal filter configuration.
Args:
global_data: Dictionary with global variables
Returns:
None
- set_adc_open_wire_detection(global_data: Dict[str, Any]) -> None
- Set ADC open wire detection feature.
Args:
global_data: Dictionary with global variables
Returns:
None
- set_adc_output_code(global_data: Dict[str, Any]) -> None
- Set ADC output data coding.
Args:
global_data: Dictionary with global variables
Returns:
None
- set_adc_output_data_rate(global_data: Dict[str, Any]) -> None
- Set ADC output data rate.
Args:
global_data: Dictionary with global variables
Returns:
None
- set_adc_postfilter(global_data: Dict[str, Any]) -> None
- Set ADC postfilter.
Args:
global_data: Dictionary with global variables
Returns:
None
- sleep(...)
- sleep(seconds)
Delay execution for a given number of seconds. The argument may be
a floating point number for subsecond precision.
|