⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 agilent_mxa_v0.92.mdd

📁 Agilent 仪器与MATLAB互联
💻 MDD
📖 第 1 页 / 共 3 页
字号:
<?xml version="1.0" encoding="utf-8"?><MATLABInstrumentDriver>   <FileVersion>1.0</FileVersion>   <DriverName>C:\matlab72\work\agilent_mxa.mdd</DriverName>   <DriverType>MATLAB interface object</DriverType>   <InstrumentType>Spectrum Analyzer</InstrumentType>   <InstrumentManufacturer>Agilent</InstrumentManufacturer>   <InstrumentModel>MXA, PSA</InstrumentModel>   <InstrumentVersion>0.92</InstrumentVersion>   <Identify>*IDN?</Identify>   <Reset>*RST</Reset>   <Selftest>*TST?</Selftest>   <Error>SYST:Error?</Error>   <CreateInitCode>      <Code>function init(obj)% This function is called after the object is created.% OBJ is the device object.interface=get(obj,'interface');fclose(interface);set(interface,'InputBufferSize',1e6);set(interface,'Timeout',10);%fopen(interface);% End of function definition - DO NOT EDIT</Code>   </CreateInitCode>   <ConnectInitCode>      <Type>InstrumentCommand</Type>   </ConnectInitCode>   <CleanupCode>      <Type>InstrumentCommand</Type>   </CleanupCode>   <GroupInfo>      <Group>         <Name>parent</Name>         <Description/>         <Command/>         <Size>1</Size>         <Mappings>            <ChannelMap Command="parent1" Index="1"/>         </Mappings>         <PropertyInfo>            <Property>               <Name>Att</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:POW:ATT</ConfigureCommand>                     <QueryCommand>:POW:ATT?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>Double</Type>                  <Constraint>bounded</Constraint>                  <ConstraintValue>                     <Range Max="70.0" Min="0.0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>10</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the input attenuation in dB</Description>            </Property>            <Property>               <Name>AttAuto</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:POW:ATT:AUTO</ConfigureCommand>                     <QueryCommand>:POW:ATT:AUTO?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="on" Value="1"/>                     <Enum Name="off" Value="0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>on</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the attenuation auto mode</Description>            </Property>            <Property>               <Name>Aver</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:AVER</ConfigureCommand>                     <QueryCommand>:AVER?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="on" Value="1"/>                     <Enum Name="off" Value="0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>off</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the trace averaging mode</Description>            </Property>            <Property>               <Name>AverCount</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:AVER:COUN</ConfigureCommand>                     <QueryCommand>:AVER:COUN?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>Double</Type>                  <Constraint>bounded</Constraint>                  <ConstraintValue>                     <Range Max="8192.0" Min="1.0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>100</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the average count value</Description>            </Property>            <Property>               <Name>CenterFreq</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:FREQ:CENT</ConfigureCommand>                     <QueryCommand>:FREQ:CENT?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>Double</Type>                  <Constraint>bounded</Constraint>                  <ConstraintValue>                     <Range Max="2.7E10" Min="-1.0E8"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>1e6</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the center frequency</Description>            </Property>            <Property>               <Name>Cont</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:INIT:CONT</ConfigureCommand>                     <QueryCommand>:INIT:CONT?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="on" Value="1"/>                     <Enum Name="off" Value="0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>on</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the continuous sweep mode</Description>            </Property>            <Property>               <Name>Date</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>MCode</Type>               <Code>                  <GetMCode>function propertyValue = getProperty(obj, propertyName)% Return a property value.%   This function is called to return the device or group object property%   value. If the property is a group property, OBJ is the group object. If%   the property is a base device property, OBJ is the device object.interface = get(obj, 'Interface');date = query(interface, ':SYST:DATE?');month_tab = {'Jan','Feb','Mar','Apr','May','Jun',...             'Jul','Aug','Sep','Oct','Nov','Dec'}             coma_idx = find(date == ',');year = date(coma_idx(1)-4:coma_idx(1)-1);month = date(coma_idx(1)+1:coma_idx(2)-1);month = month_tab{str2double(month)}day = date(coma_idx(2)+1:end-1);propertyValue = [month ' ' day ', ' year];</GetMCode>                  <SetMCode>function set(obj, propertyName, propertyValue)% Set a property value.%   This function is called to set the device or group object property%   value. If the property is a group property, OBJ is the group object. If%   the property is a base device property, OBJ is the device object.</SetMCode>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>none</Constraint>               </PermissibleType>               <DefaultValue/>               <ReadOnly>always</ReadOnly>               <Description>Queries the instrument date</Description>            </Property>            <Property>               <Name>DetType</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:DET</ConfigureCommand>                     <QueryCommand>:DET?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="average" Value="AVER"/>                     <Enum Name="negative" Value="NEG"/>                     <Enum Name="normal" Value="NORM"/>                     <Enum Name="positive" Value="POS"/>                     <Enum Name="sample" Value="SAMP"/>                     <Enum Name="rms" Value="RMS"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>normal</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the detector type</Description>            </Property>            <Property>               <Name>DetTypeAuto</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:DET:AUTO</ConfigureCommand>                     <QueryCommand>:DET:AUTO?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="on" Value="1"/>                     <Enum Name="off" Value="0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>on</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the detector type auto mode</Description>            </Property>            <Property>               <Name>DispEn</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:DISP:ENAB</ConfigureCommand>                     <QueryCommand>:DISP:ENAB?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="on" Value="1"/>                     <Enum Name="off" Value="0"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>on</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the display enable mode</Description>            </Property>            <Property>               <Name>DispTitle</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:DISP:ANN:TITL:DATA</ConfigureCommand>                     <QueryCommand>:DISP:ANN:TITL:DATA?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>none</Constraint>               </PermissibleType>               <DefaultValue>"MXA Spectrum analyzer"</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the display title</Description>            </Property>            <Property>               <Name>DriverVer</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>MCode</Type>               <Code>                  <GetMCode>function propertyValue = getProperty(obj, propertyName)% Return a property value.%   This function is called to return the device or group object property%   value. If the property is a group property, OBJ is the group object. If%   the property is a base device property, OBJ is the device object.propertyValue = '0.91';</GetMCode>                  <SetMCode>function set(obj, propertyName, propertyValue)% Set a property value.%   This function is called to set the device or group object property%   value. If the property is a group property, OBJ is the group object. If%   the property is a base device property, OBJ is the device object.</SetMCode>               </Code>               <PermissibleType>                  <Type>Double</Type>                  <Constraint>none</Constraint>               </PermissibleType>               <DefaultValue>0</DefaultValue>               <ReadOnly>always</ReadOnly>               <Description/>            </Property>            <Property>               <Name>InputPort</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:FEED</ConfigureCommand>                     <QueryCommand>:FEED?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>enum</Constraint>                  <ConstraintValue>                     <Enum Name="AmpRef" Value="AREF"/>                     <Enum Name="RFport" Value="RF"/>                  </ConstraintValue>               </PermissibleType>               <DefaultValue>RFport</DefaultValue>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the input signal path</Description>            </Property>            <Property>               <Name>Mode</Name>               <Location>parent</Location>               <CapabilityGroup>Base</CapabilityGroup>               <Type>InstrumentCommand</Type>               <Code>                  <Commands>                     <ConfigureCommand>:INST</ConfigureCommand>                     <QueryCommand>:INST?</QueryCommand>                  </Commands>               </Code>               <PermissibleType>                  <Type>String</Type>                  <Constraint>none</Constraint>               </PermissibleType>               <DefaultValue/>               <ReadOnly>never</ReadOnly>               <Description>Sets or queries the current instrument mode</Description>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -