> For the complete documentation index, see [llms.txt](https://mpqc.swcmicroscopy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mpqc.swcmicroscopy.com/analysis-and-summaries/electrical-noise.md). Agents can also search and read this documentation through its [MCP server](https://mpqc.swcmicroscopy.com/~gitbook/mcp).

# Electrical noise

Measures the baseline electrical noise of the detectors in the set up. An increase in the electrical noise suggests there is an issue with the cabling of the detectors, the amplifiers, the detectors themselves, or other electrical components on the table. To find the source of the noise systematically check each cable and run the code each time.     &#x20;

## mpqc.record.electrical\_noise

Records the electrical activity in all channels with the detectors switched off. The code sets the laser power to zero and switches off the PMTs before focusing and acquiring frames.

Run:

```matlab
 mpqc.record.electrical_noise
```

## mpqc.plot.electrical\_noise

Displays the histogram of the electrical noise of a PMT detector while the PMT is off and there is no light through the system. The x-axis displays the pixel value, the y-axis is the number of pixels at the value, and the title displays the standard deviation of the plot.

The plot shows four channels as default even if less are present. In the below plot, channels 1 and 2 contain PMTs and 3 and 4 are empty. A standard deviation of approximately 2 suggests that there is no detector present. Channel 2 shows a low noise/healthy detector. The high standard deviation in Channel 1 suggests there is a problem with electrical noise that needs further diagnosis.

<figure><img src="https://1521207187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zmCqXEmICTAPZjyGAIY%2Fuploads%2FieLzasBod9RvqRhEE3sP%2Fplot_electrical_noise_good_bad_noPMT.PNG?alt=media&amp;token=2259d028-eb45-4258-b1c3-32aad9b4068d" alt=""><figcaption></figcaption></figure>

## mpqc.longitudinal.electrical\_noise

Reports the pixel value range with the PMTs off at two standard deviations of the data.&#x20;

```
 mpqc.longitudinal.electrical_noise(maintenace_folder_path, varargin)
```

Provides and optional input to select the start date of the plot.

```
 Optional inputs: 'startDate', 'year-month-day'
 mpqc.longitudinal.electrical_noise(maintenace_folder_path, 'startDate', '2024-06-20')
```

<figure><img src="https://1521207187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zmCqXEmICTAPZjyGAIY%2Fuploads%2FoTIwnnCq6dnlBuZ94Ldy%2Flong_electrical_noise.PNG?alt=media&amp;token=3c78d992-4078-4fd4-9a5a-fd4c1bed8b28" alt=""><figcaption></figcaption></figure>
