device_configuration
device_configuration
Implementation of the device configuration models.
TxConfiguration
Bases: BaseModel
Transmit card (AWG) configuration, section TxConfiguration of the device configuration file.
device_path
class-attribute
instance-attribute
Device path of the transmit card, e.g. /dev/spcm1.
sampling_rate
class-attribute
instance-attribute
Sampling rate in MHz. The card runs on the clock of the receive card but sets its own sampling rate.
Currently, it must equal the receive card sampling rate (see NexusConfiguration).
channel_max_amplitude
class-attribute
instance-attribute
channel_max_amplitude: tuple[TxAmplitudeType, TxAmplitudeType, TxAmplitudeType, TxAmplitudeType] = Field(...)
Output range per channel [RF, gradient 1, gradient 2, gradient 3] in mV (1 to 6000 mV, into 50 Ohm).
channel_filter_type
class-attribute
instance-attribute
Output filter setting per channel (0 to 3, see card manual).
rf_terminated_50ohm
class-attribute
instance-attribute
True if the RF output is terminated into 50 Ohm, False for high impedance (output voltage doubles).
gradients_terminated_50ohm
class-attribute
instance-attribute
True if the gradient outputs are terminated into 50 Ohm, False for high impedance (output voltage doubles).
gradient_efficiency
class-attribute
instance-attribute
Gradient coil efficiency in T/m/A per physical gradient channel.
gpa_gain
class-attribute
instance-attribute
Gradient power amplifier transconductance in A/V per physical gradient channel.
rf_to_mvolt
class-attribute
instance-attribute
Conversion factor from PyPulseq RF amplitude (Hz) to output voltage (mV), i.e. mV per Hz.
RxConfiguration
Bases: BaseModel
Receive card (digitizer) configuration, section RxConfiguration of the device configuration file.
device_path
class-attribute
instance-attribute
Device path of the receive card, e.g. /dev/spcm0.
sampling_rate
class-attribute
instance-attribute
Sampling rate in MHz. The receive card is the clock master and provides its clock to the transmit card,
which sets its own sampling rate. Currently, it must equal the transmit card sampling rate
(see NexusConfiguration).
max_available_channels
class-attribute
instance-attribute
Number of input channels of the card; length of all channel lists (8 for the M2p.5933-x4).
channel_enable
class-attribute
instance-attribute
Enable flag per channel. The number of enabled channels must be 1, 2, 4 or 8.
channel_max_amplitude
class-attribute
instance-attribute
Input range per channel in mV (200, 500, 1000, 2000, 5000 or 10000).
channel_terminated_50ohm
class-attribute
instance-attribute
Input termination per channel, True for 50 Ohm, False for high impedance.
num_processing_workers
class-attribute
instance-attribute
num_processing_workers: int = Field(default=1, ge=0, description='Number of worker processes for parallel RxData processing. Set to 0 to always process in the main process (no multiprocessing).')
Number of worker processes for parallel processing of the receive data. Set to 0 to process in the main process after the acquisition.
validate_channel_lengths
validate_channel_lengths() -> RxConfiguration
Validate channel lengths.
This ensures that max_available_channels is length of channel_enable,
channel_max_amplitude and channel_terminated_50ohm.
Source code in src/console/interfaces/device_configuration.py
SystemLimits
Bases: BaseModel
MR system limits, section SystemLimits of the device configuration file.
Translated into a PyPulseq Opts object by get_opts. All values must be given as floats
(e.g. 20.e-6, not 20e-6, which YAML parses as string).
max_grad
class-attribute
instance-attribute
Maximum gradient amplitude in Hz/m.
max_slew
class-attribute
instance-attribute
Maximum gradient slew rate in Hz/m/s.
rf_dead_time
class-attribute
instance-attribute
Dead time before an RF pulse in s; the RF unblanking signal is set this time before the pulse.
rf_ringdown_time
class-attribute
instance-attribute
Ring-down time after an RF pulse in s.
adc_dead_time
class-attribute
instance-attribute
Dead time around an ADC event in s; the ADC gate is extended by this time on both sides.
block_duration_raster
class-attribute
instance-attribute
Raster time of block durations in s.
rf_raster_time
class-attribute
instance-attribute
Raster time of RF waveforms in s.
grad_raster_time
class-attribute
instance-attribute
Raster time of gradient waveforms in s.
adc_raster_time
class-attribute
instance-attribute
Raster time of ADC dwell times in s.
B0
class-attribute
instance-attribute
Static magnetic field strength in T.
get_opts
Return system limits of the MR scanner as PyPulseq Opts object.
Source code in src/console/interfaces/device_configuration.py
NexusConfiguration
Bases: BaseModel
Nexus console device configuration, as loaded from the device configuration YAML file.
tx
class-attribute
instance-attribute
tx: TxConfiguration = Field(..., alias='TxConfiguration')
Transmit card configuration (YAML section TxConfiguration).
rx
class-attribute
instance-attribute
rx: RxConfiguration = Field(..., alias='RxConfiguration')
Receive card configuration (YAML section RxConfiguration).
system
class-attribute
instance-attribute
system: SystemLimits = Field(..., alias='SystemLimits')
MR system limits (YAML section SystemLimits).
validate_sampling_rates
validate_sampling_rates() -> NexusConfiguration
Validate that the transmit and receive card use the same sampling rate.
Both cards share the clock of the receive card, but each card sets its own sampling rate, so the hardware supports different sampling rates. The sequence calculation and the processing of the receive data currently assume a common sampling rate. Support for different sampling rates will be added in a future update.