digio
¶
The digio commands module.
These commands are used in the following models: SMU2604B, SMU2614B, SMU2634B
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- digio.readbit()
- digio.readport()
- digio.trigger[N].assert()
- digio.trigger[N].clear()
- digio.trigger[N].mode
- digio.trigger[N].overrun
- digio.trigger[N].pulsewidth
- digio.trigger[N].release()
- digio.trigger[N].reset()
- digio.trigger[N].stimulus
- digio.trigger[N].wait()
- digio.writebit()
- digio.writeport()
- digio.writeprotect
Digio
¶
Bases: BaseTSPCmd
The digio command tree.
Properties and methods
.readbit(): Thedigio.readbit()function..readport(): Thedigio.readport()function..trigger: Thedigio.trigger[N]command tree..writebit(): Thedigio.writebit()function..writeport(): Thedigio.writeport()function..writeprotect: Thedigio.writeprotectattribute.
trigger
property
¶
trigger: dict[int, DigioTriggerItem]
Return the digio.trigger[N] command tree.
Info
N, the digital I/O trigger line (1 to 14).
Constants
.EVENT_ID: The trigger event generated by the digital I/O line N.
Sub-properties and sub-methods
.assert(): Thedigio.trigger[N].assert()function..clear(): Thedigio.trigger[N].clear()function..mode: Thedigio.trigger[N].modeattribute..overrun: Thedigio.trigger[N].overrunattribute..pulsewidth: Thedigio.trigger[N].pulsewidthattribute..release(): Thedigio.trigger[N].release()function..reset(): Thedigio.trigger[N].reset()function..stimulus: Thedigio.trigger[N].stimulusattribute..wait(): Thedigio.trigger[N].wait()function.
writeprotect
property
writable
¶
writeprotect: str
Access the digio.writeprotect attribute.
Description
- This attribute contains the write-protect mask that protects bits from changes from the digio.writebit() and digio.writeport() functions. This command is not available on the 2604B, 2614B, or 2634B.
Usage
- Accessing this property will send the
print(digio.writeprotect)query. - Setting this property to a value will send the
digio.writeprotect = valuecommand.
TSP Syntax
- digio.writeprotect = value
- print(digio.writeprotect)
| Raises: |
|
|---|
readbit
¶
Run the digio.readbit() function.
Description
- This function reads one digital I/O line. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.readbit()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
readport
¶
readport() -> str
Run the digio.readport() function.
Description
- This function reads the digital I/O port. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.readport()
| Returns: |
|
|---|
| Raises: |
|
|---|
writebit
¶
Run the digio.writebit() function.
Description
- This function sets a digital I/O line high or low. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.writebit()
| Parameters: |
|---|
| Raises: |
|
|---|
writeport
¶
writeport(data: int) -> None
Run the digio.writeport() function.
Description
- This function writes to all digital I/O lines. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.writeport()
| Parameters: |
|
|---|
| Raises: |
|
|---|
DigioTriggerItem
¶
Bases: ValidatedDynamicNumberCmd, BaseTSPCmd
The digio.trigger[N] command tree.
Info
N, the digital I/O trigger line (1 to 14).
Constants
.EVENT_ID: The trigger event generated by the digital I/O line N.
Properties and methods
.assert(): Thedigio.trigger[N].assert()function..clear(): Thedigio.trigger[N].clear()function..mode: Thedigio.trigger[N].modeattribute..overrun: Thedigio.trigger[N].overrunattribute..pulsewidth: Thedigio.trigger[N].pulsewidthattribute..release(): Thedigio.trigger[N].release()function..reset(): Thedigio.trigger[N].reset()function..stimulus: Thedigio.trigger[N].stimulusattribute..wait(): Thedigio.trigger[N].wait()function.
EVENT_ID
class-attribute
instance-attribute
¶
EVENT_ID = replace('[N]', f'[{split(']', maxsplit=1)[0]}]')
mode
property
writable
¶
mode: str
Access the digio.trigger[N].mode attribute.
Description
- This attribute sets the mode in which the trigger event detector and the output trigger generator operate on the given trigger line. This command is not available on the 2604B, 2614B, or 2634B.
Usage
- Accessing this property will send the
print(digio.trigger[N].mode)query. - Setting this property to a value will send the
digio.trigger[N].mode = valuecommand.
TSP Syntax
- digio.trigger[N].mode = value
- print(digio.trigger[N].mode)
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
overrun
property
¶
overrun: str
Access the digio.trigger[N].overrun attribute.
Description
- This attribute returns the event detector overrun status. This command is not available on the 2604B, 2614B, or 2634B.
Usage
- Accessing this property will send the
print(digio.trigger[N].overrun)query.
TSP Syntax
- print(digio.trigger[N].overrun)
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
pulsewidth
property
writable
¶
pulsewidth: str
Access the digio.trigger[N].pulsewidth attribute.
Description
- This attribute describes the length of time that the trigger line is asserted for output triggers. This command is not available on the 2604B, 2614B, or 2634B.
Usage
- Accessing this property will send the
print(digio.trigger[N].pulsewidth)query. - Setting this property to a value will send the
digio.trigger[N].pulsewidth = valuecommand.
TSP Syntax
- digio.trigger[N].pulsewidth = value
- print(digio.trigger[N].pulsewidth)
Info
width, the pulse width (seconds).N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
stimulus
property
writable
¶
stimulus: str
Access the digio.trigger[N].stimulus attribute.
Description
- This attribute selects the event that causes a trigger to be asserted on the digital output line. This command is not available on the 2604B, 2614B, or 2634B.
Usage
- Accessing this property will send the
print(digio.trigger[N].stimulus)query. - Setting this property to a value will send the
digio.trigger[N].stimulus = valuecommand.
TSP Syntax
- digio.trigger[N].stimulus = value
- print(digio.trigger[N].stimulus)
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
assert_
¶
assert_() -> None
Run the digio.trigger[N].assert() function.
Description
- This function asserts a trigger pulse on one of the digital I/O lines. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.trigger[N].assert()
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
clear
¶
clear() -> None
Run the digio.trigger[N].clear() function.
Description
- This function clears the trigger event on a digital I/O line. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.trigger[N].clear()
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
release
¶
release() -> None
Run the digio.trigger[N].release() function.
Description
- This function releases an indefinite length or latched trigger. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.trigger[N].release()
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
reset
¶
reset() -> None
Run the digio.trigger[N].reset() function.
Description
- This function resets trigger values to their factory defaults. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.trigger[N].reset()
Info
N, the digital I/O trigger line (1 to 14).
| Raises: |
|
|---|
wait
¶
Run the digio.trigger[N].wait() function.
Description
- This function waits for a trigger. This command is not available on the 2604B, 2614B, or 2634B.
TSP Syntax
- digio.trigger[N].wait()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|