In this window, the spectrogram of the detected radiation is displayed. A spectrogram is a visual representation of the photon (gamma and x-ray) energy spectrum as it changes over time. Either the spectrogram being recorded in real-time or one loaded from the spectrogram library is displayed. There is no separate window for viewing spectrograms, unlike for viewing spectra. To quickly switch to the spectrogram window, click its button on the main window’s control panel in RadiaCode: ![[EN/Windows APP/ImagesPC/openspectrogram.png|500]] Each vertical line (Y-axis) represents an individual spectrum collected over the "Capture Interval," which can be set in the settings. Horizontally (X-axis), either the spectrum channel numbers or the photon energy (calculated similarly to the "Spectrum" window) is displayed. The count rate in each individual channel (Z-axis, similar to the Y-axis in the "Spectrum" and "Spectrum View" windows) is transformed into a brightness or color scale, which can be rescaled using the sliders below the spectrogram. The scale can also be automatically adjusted to the minimum and maximum values of the recorded or selected spectrogram using a button. Energy lines on the spectrogram appear as vertical stripes. The appearance of new stripes indicates changes in the spectral composition of the detected radiation. The Y-axis can display calendar time, spectrogram accumulation time, or the count number. The total accumulation time of the spectrogram and the capture interval are displayed in the upper left corner. ![[EN/Windows APP/ImagesPC/spectrogram.png|500]] When moving the cursor over the graph, marker lines with numbers corresponding to the axis values are displayed. In the displayed image, the energy of 654 keV corresponds to 1 pulse, and the spectrum was captured 1 minute and 44 seconds after the start of the spectrogram recording. The "Record" button on the window's control bar starts the spectrogram recording. The recording continues until it is stopped using the "Stop" button. Once stopped, the recording cannot be resumed. Loading a spectrogram from the library does not stop the recording; it continues running in the background. ## Dialog "Spectrogram Window Settings" In this dialog, you can select various display options for the [[Window Spectrogram|spectrogram window]]. | Dialog Element | Description | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Spectrum Capture Interval | The frequency at which "snapshots" of the spectrum (counts) are taken. Each count (spectrum) is displayed on the graph as a series of horizontal squares. Acceptable values range from 1 to 600 seconds. Since the device's timer is not exactly synchronized with the smartphone's timer, the accumulation intervals of the spectra received from the device may vary by ±1 second. | | Maximum Number of Counts | The capacity of the spectrogram buffer. If, when capturing a new count, the number of counts in the recorded spectrogram equals the specified value, the oldest count is deleted before adding the new one. The maximum buffer capacity is 10,000 counts. | | Minimum and Maximum Scale Value | Boundary count rate values for the slider at the bottom of the window, which controls the brightness/color palette of the graph. Count squares whose count rate values exceed the specified boundaries are displayed in the boundary colors (beginning/end of the color scale). The minimum and maximum scale values may be automatically adjusted by the app if the calculated values exceed the specified boundaries when the auto-brightness button is pressed. | | Scale | If logarithmic scale is selected, the decimal logarithm is taken from the count rate value before calculating the brightness/color of the square. Quick scale switching is available via the "Lin." and "Log." icons on the window's control bar. | | X-Axis Units | Select either the spectrum channel number or the energy of that channel as the X-axis units. | | Y-Axis Units | You can choose calendar time (counted from the start of spectrogram recording), spectrogram accumulation time (in hours:minutes), or count number (counts are numbered starting from zero). | | Palette | When "Brightness" is selected, only grayscale is used to display the count rate on the graph. The other two options allow for the selection between color palettes. | | Draw Isotope Lines | Draw pink energy lines of isotopes on the graph. Disabling this option does not turn off the isotope information displayed at the top of the window. | | Isotope Library | If "Built-in" is selected, the isotope library built into the RadiaCode program will be used for display in the "Spectrum" and "Spectrum View" windows. If "Custom" is selected, isotope information is taken from the specified file. | ## Spectrogram Library The spectrogram library can be accessed via the "Spectrogram Library" option in the local menu of the "Spectrogram" window or through the "Spectrogram Library" command in the "Tools" menu of the main application window. A list of saved spectrograms is displayed: ![[EN/Windows APP/ImagesPC/spectrogramlib.png]] Dialog buttons perform actions on the selected spectrogram(s): - **Load into Window**: Load the spectrogram for viewing in the "Spectrogram" window. If recording is in progress, it will continue in the background. To return to the recording graph, click the "Close" button on the "Spectrogram" window control bar. - **Rename**: Assign a new name to the spectrogram. - **Delete**: Remove the spectrogram data or multiple selected spectrograms from the library. - **Export .rcspg**: Export the spectrogram data into a text file with the .rcspg extension. .rcspg files can be exchanged between RadiaCode applications for Windows and Android. - **Import .rcspg**: Import spectrogram data from a .rcspg file into the library.