Qubitekk

CC1 Coincidence Counter

class instruments.qubitekk.CC1(filelike)[source]

The CC1 is a hand-held coincidence counter.

It has two setting values, the dwell time and the coincidence window. The coincidence window determines the amount of time (in ns) that the two detections may be from each other and still be considered a coincidence. The dwell time is the amount of time that passes before the counter will send the clear signal.

More information can be found at : http://www.qubitekk.com

class Channel(cc1, idx)[source]

Class representing a channel on the Qubitekk CC1.

count

Gets the counts of this channel.

Return type:int
clear_counts()[source]

Clears the current total counts on the counters.

acknowledge

Gets/sets the acknowledge message state. If True, the CC1 will echo back every command sent, then print the response (either Unable to comply, Unknown command or the response to a query). If False, the CC1 will only print the response.

Units:None
Type:boolean
channel

Gets a specific channel object. The desired channel is specified like one would access a list.

For instance, this would print the counts of the first channel:

>>> cc = ik.qubitekk.CC1.open_serial('COM8', 19200, timeout=1)
>>> print(cc.channel[0].count)
Return type:CC1.Channel
delay

Get/sets the delay value (in nanoseconds) on Channel 1.

When setting, N may be 0, 2, 4, 6, 8, 10, 12, or 14ns.

Return type:quantities.ns
Returns:the delay value
dwell_time

Gets/sets the length of time before a clear signal is sent to the counters.

Units:As specified (if a Quantity) or assumed to be of units seconds.
Type:Quantity
firmware

Gets the firmware version

Return type:tuple`(Major:`int, Minor:int, Patch`int`)
gate

Gets/sets the gate enable status

Type:bool
subtract

Gets/sets the subtract enable status

Type:bool
trigger_mode

Gets/sets the trigger mode setting for the CC1. This can be set to continuous or start/stop modes.

Type:CC1.TriggerMode
window

Gets/sets the length of the coincidence window between the two signals.

Units:As specified (if a Quantity) or assumed to be of units nanoseconds.
Type:Quantity

MC1 Motor Controller

class instruments.qubitekk.MC1(filelike)[source]

The MC1 is a controller for the qubitekk motor controller. Used with a linear actuator to perform a HOM dip.

class MotorType[source]

Enum for the motor types for the MC1

radio = 'Radio'
relay = 'Relay'
center()[source]

Commands the motor to go to the center of its travel range

is_centering()[source]

Query whether the motor is in its centering phase

Returns:False if not centering, True if centering
Return type:bool
move(new_position)[source]

Move to a specified location. Position is unitless and is defined as the number of motor steps. It varies between motors.

Parameters:new_position (Quantity) – the location
reset()[source]

Sends the stage to the limit of one of its travel ranges

controller

Get the motor controller type.

direction

Get the internal direction variable, which is a function of how far the motor needs to go.

Type:Quantity
Units:milliseconds
firmware

Gets the firmware version

Return type:tuple`(Major:`int, Minor:int, Patch`int`)
increment

Gets/sets the stepping increment value of the motor controller

Units:As specified, or assumed to be of units milliseconds
Type:Quantity
inertia
Gets/Sets the amount of force required to overcome static inertia. Must
be between 0 and 100 milliseconds.
Type:Quantity
Units:milliseconds
internal_position
Get the internal motor state position, which is equivalent to the total
number of milliseconds that voltage has been applied to the motor in the positive direction minus the number of milliseconds that voltage has been applied to the motor in the negative direction.
Type:Quantity
Units:milliseconds
lower_limit

Gets/sets the stepping lower limit value of the motor controller

Units:As specified, or assumed to be of units milliseconds
Type:Quantity
metric_position

Get the estimated motor position, in millimeters.

Type:Quantity
Units:millimeters
move_timeout

Get the motor’s timeout value, which indicates the number of milliseconds before the motor can start moving again.

Type:Quantity
Units:milliseconds
setting

Gets/sets the output port of the optical switch. 0 means input 1 is directed to output 1, and input 2 is directed to output 2. 1 means that

input 1 is directed to output 2 and input 2 is directed to output 1.
Type:int
step_size

Gets/Sets the number of milliseconds per step. Must be between 1 and 100 milliseconds.

Type:Quantity
Units:milliseconds
upper_limit

Gets/sets the stepping upper limit value of the motor controller

Units:As specified, or assumed to be of units milliseconds
Type:Quantity