FNPC Scripts

Scripts for the FNPC.

fnpc_clr_alarms()

Clear the alarms in the FNPC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-clr-alarms”.

It connects to the specified FNPC and clears the alarms.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_clr_warnings()

Clear the warnings in the FNPC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-clr-warnings”.

It connects to the specified FNPC and clears the warnings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_filter_48_vin()

FNPC write 10Hz low-pass filter cutoff to 48V voltage polling register.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-filter-48-vin”.

It connects to the specified FNPC and sets the low-pass filter.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_get_alarms()

Get list of the alarms in the FNPC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-get-alarms”.

It connects to the specified FNPC and gets list of the alarms.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_get_live_readings()

Get list of live readings in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-get-live-readings”.

It connects to the specified FNPC and reads the list of live readings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_get_thresholds()

Get list of thresholds in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-get-thresholds”.

It connects to the specified FNPC and reads the list of thresholds.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_get_warnings()

Get the list of the warnings in the FNPC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-get-warnings”.

It connects to the specified FNPC and gets the list of the warnings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_pdoc_off()

Set a specific PDoC off in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-pdoc-off”.

It connects to the specified FNPC and turns off the specified PDoc.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the pdoc argument is out of range.

Return type:

None

fnpc_pdoc_on()

Set a specific PDoC on in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-pdoc-on”.

It connects to the specified FNPC and turns on the specified PDoc.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the pdoc argument is out of range.

Return type:

None

fnpc_pdocs_desired_state()

Set PDoCs with DSON to on, and DSOFF to off, so we can see it go offline.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-pdocs-desired-state”.

It connects to the specified FNPC and sets PDocs to DSON or DSOFF.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_pdocs_off()

Set all PDoCs to off in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-pdocs-off”.

It connects to the specified FNPC and turns off all the PDocs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_pdocs_on()

Set all PDoCs on in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-pdocs-on”.

It connects to the specified FNPC and turns on all the PDocs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

fnpc_set_led_pattern()

Set the led pattern in the FNPC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnpc-set-led-pattern”.

It connects to the specified FNPC and sets the led pattern.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

get_fnpc_fw_version()

Print the FNPC firmware version number.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-fnpc-fw-version”.

It connects to the specified FNPC and prints current firmware version number.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

get_fnpc_status()

Print the FNPC status.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-fnpc-status”.

It connects to the specified FNPC, queries its status, and prints the result.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

get_port_states()

See the state of PDocs in FNDH.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-port-states”.

It connects to the specified FNPC and checks the state of all the PDocs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None

set_fnpc_status()

Set the FNPC status to OK.

This script is registered as a package entrypoint and can be invoked on the command line under the name “set-fnpc-status”.

It connects to the specified FNPC, and tries to set its’ status to OK.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Return type:

None