# :CGMemory Subsystem

:CGMemory Commands

- :CGMemory Subsystem
- :CGMemory General Commands
- :CGMemory Eye Commands
- :CGMemory Loading Commands
- :CGMemory Scaling Commands
- :CGMemory Threshold Commands

The Color Grade Memory subsystem commands allow you to load and display gray-scale and color-grade database waveforms into one of eight color grade memories.

Color grade memory waveforms can be saved, recalled, displayed, and measured. The individual memories are identified by an integer (1 to 8) in the `:CGMemory{1:8}` command. For example, the following command sets the color of the displayed waveform for color grade memory number 3 ( highlighted in red).

    :CGMemory3:COLor TCOLor8

Channels (`CHAN{1:8}`), functions (`FUNCtion{1:8}`), and other color grade memories (`CGMemory{1:8}`) can all be loaded into color grade memories using the `:CGMemory:LOAD:SOURce` command. To load previously saved eye-memory files into a color grade memory, use the `:CGMemory:FILE:LOAD` and `:CGMemory:FILE:NAME` commands.

Horizontal scale and delay information are not saved in color grade-gray scale memory files. If you plan on loading one of these files back into Infiniium, be sure to also save the instrument setup. You will need to load (restore) the instrument settings when you load the memory file.

## Example Command Sequence

This example loads the connection 2 channel 1 waveform into color grade memory 2, assigns the waveform's color to dark blue, and displays the eye-memory waveform.

    :CGMemory2:LOAD:SOURce CHAN2_1
    :CGMemory2:LOAD
    :CGMemory2:COLor TCOLor9
    :CGMemory2:DISPlay ON