Module azcam.tools.arc.console_arc

Client console commands for ARC controller. These methods are added to the controller tool.

Functions

def board_command(self, command, board_number, arg1=-1, arg2=-1, arg3=-1, arg4=-1)

Send a specific command to an ARC controller board. The reply from the board is often 'DON' but could be data.

Args

command
board command to send
board_number
controller board number
argN
arguments for command

Returns

reply
reply from controller
def read_controller_memory(self, mem_type: str, board_number: int, address: int)

Read from DSP memory.

Args

mem_type
P, X, Y, or R memory space
board_number
controller board number
address
memory address to read

Returns

Value of memory

def set_bias_number(self, board_number: int, dac_number: int, board_type: str, dac_value: int)

Sets a bias value.

Args

board_number
controller board number
dac_number
DAC number
board_type
'VID' or 'CLK'
dac_value
DAC value for voltage
def start_idle(self)

Start idle clocking.

def stop_idle(self)

Stop idle clocking.

def write_controller_memory(self, mem_type: str, board_number: int, address: int, value: int)

Write a word to a DSP memory location.

Args

mem_type
P, X, Y, or R memory space
board_number
controller board number
address
memory address to write
value
data to write