# :DISK:EYE:SAVE:FTYPe

Save Eye Database Commands

- :DISK:EYE:FNAMe
- :DISK:EYE:FNAMe:AUPDate
- :DISK:EYE:FNAMe:USTandard
- :DISK:EYE:SAVE
- :DISK:EYE:SAVE:FTYPe
- :DISK:EYE:SAVE:SOURce

## Command Syntax

    :DISK:EYE:SAVE:FTYPe {DATabase | DCSV}

## Query Syntax

    :DISK:EYE:SAVE:FTYPe?

## Query Response

     {DAT | DCSV}

## Description

Selects the file format for saving a color grade-gray scale file. Use the `:DISK:EYE:SAVE` command to actually save the file. The appropriate filename extension is appended to the file name that is specified using the `:DISK:EYE:FNAMe` command.

`DATabase`
  Internal-format database files (.cgsi) are XML files comprised of an ASCII XML elements and binary waveform data, as shown in the following example file.
`DCSV`
  Selects a text database file format (.csv) with comma-separated ASCII values and waveform data. In this format, the data is listed as ASCII text rather than binary, as shown in the following example file.

## Example Internal Format File (.cgsi)

    <?xml version="1.0" encoding="utf-8"?>
    <DcaFile>
      <Header>
        <FileType>Database</FileType>
        <Revision>1</Revision>
        <Instrument>D9300A</Instrument>
        <SwVersion>P.05.70.330</SwVersion>
        <SerialNumber>2UA5383S5F</SerialNumber>
        <Date>
          <dateTime>2017-03-23T14:50:12.5871115-07:00</dateTime>
        </Date>
        <SourceName>Channel 5A</SourceName>
      </Header>
      <PeakHits>3</PeakHits>
      <PeakCol>197</PeakCol>
      <PeakRow>412</PeakRow>
      <TotalHits>1694</TotalHits>
      <NumWaves>1</NumWaves>
      <MaxRow>415</MaxRow>
      <MinRow>104</MinRow>
      <XUnits>Second</XUnits>
      <YUnits>Volt</YUnits>
      <XOrg>8.773E-11</XOrg>
      <XStop>2.5513000000000003E-10</XStop>
      <XInc>2.2320000000000002E-13</XInc>
      <YBottom>-0.42654</YBottom>
      <YTop>0.42866</YTop>
      <YInc>0.0016446153846153846</YInc>
      <Bandwidth>15000000000</Bandwidth>
      <Status />
      <SignalType>NRZ</SignalType>
      <DataRate>9953280000</DataRate>
      <IntrinsicNoise>0.002</IntrinsicNoise>
      <Data Lengths="751,521">
    …………</Data>
    </DcaFile>

## Example TEXT Format File (.csv)

    File Format, DatabaseCsv
    Format Version, 1
    Instrument, D9300A
    SwVersion, P.05.70.330
    SerialNumber, 2UA5383S5F
    Date, 3/23/2017 14:31:56 GMT-07:00

    Source Name, Channel 5A

    PeakHits, 1116244
    PeakCol, 322
    PeakRow, 107
    TotalHits, 5328157019
    NumWaves, 3146376
    MaxRow, 420
    MinRow, 98
    XUnits, Second
    YUnits, Volt
    XOrg, 8.773E-11
    XStop, 2.5513E-10
    XInc, 2.232E-13
    YBottom, -0.42654
    YTop, 0.42866
    YInc, 0.00164461538461538
    Bandwidth, 15000000000
    Status, Overall Condition: Correct

    SignalType, NRZ
    DataRate, 9953280000
    IntrinsicNoise, 0.002
    Data,
    0,0,0,1,1,2,5,17,40,95, ……………