Converting signed 14-bit sample codes to volts Sample Clauses

Converting signed 14-bit sample codes to volts. A signed code of 0 represents ~0V input voltage, 8191 (0x1FFF) represents a positive full-scale input voltage, and –8192 (0x2000) represents a negative full-scale input voltage. The following table illustrates how signed 14-bit sample codes map to values in volts depending on the full-scale input range of the input channel. Sample code in decimal Sample code in hex Sample value as a percentage of full- scale input range Sample value in volts if full-scale input range is Sample value in volts if full- scale input ±100 mV range is ±1 V -8191 0x2001 -100% -100 mV -1 V -4096 0x3000 -50% -50 mV -.5 V 0 0x0000 0% 0 V 0V 4096 0x1000 +50% 50 mV +.5 V 8191 0x1FFF +100% +100 mV +1 V The following code fragment demonstrates how to convert a 2-byte sample value containing a signed 14-bit sample code to in volts. double SampleToVoltsU14(U16 sampleValue, double inputRange_volts) { // Right-shift 16-bit sample word by 2 to get 14-bit sample code int bitShift = 2; U16 sampleCode = sampeWord >> bitShift; // AlazarTech digitizers are calibrated as follows int bitsPerSample = 14; double codeZero = (1 << (bitsPerSample - 1)) - 0.5; double codeRange = (1 << (bitsPerSample - 1)) - 0.5; // Convert the signed code to unsigned sampleCode = (sampleCode + 0x2000) & 0x1FFF; // Convert sample code to volts double sampleVolts = inputRange_volts * ((double) (sampleCode - codeZero) / codeRange); return sampleVolts; }
AutoNDA by SimpleDocs

Related to Converting signed 14-bit sample codes to volts

  • ODUF Packing Specifications 6.3.1 The data will be packed using ATIS EMI records. A pack will contain a minimum of one (1) message record or a maximum of ninety-nine thousand nine hundred and ninety-nine (99,999) message records plus a pack header record and a pack trailer record. One transmission can contain a maximum of ninety-nine (99) packs and a minimum of one (1) pack.

  • EODUF Packing Specifications 7.3.1 The data will be packed using ATIS EMI records. A pack will contain a minimum of one (1) message record or a maximum of ninety-nine thousand nine hundred and ninety-nine (99,999) message records plus a pack header record and a pack trailer record. One transmission can contain a maximum of ninety-nine (99) packs and a minimum of one (1) pack.

  • Product Labeling The labeling of all Licensed Products sold or offered for sale under this Agreement shall expressly state that the Licensed Product is manufactured under a license from the Medicines Patent Pool.

  • Certification of Meeting or Exceeding Tobacco-Free Workplace Policy Minimum Standards A. Grantee certifies that it has adopted and enforces a Tobacco-Free Workplace Policy that meets or exceeds all of the following minimum standards of:

  • Technical Standards Applicable to a Wind Generating Plant i. Low Voltage Ride-Through (LVRT) Capability A wind generating plant shall be able to remain online during voltage disturbances up to the time periods and associated voltage levels set forth in the standard below. The LVRT standard provides for a transition period standard and a post-transition period standard.

  • Packing Specifications 7.3.1 A pack will contain a minimum of one message record or a maximum of 99,999 message records plus a pack header record and a pack trailer record. One transmission can contain a maximum of 99 packs and a minimum of one pack.

  • Product Specifications The Company agrees that all Products sold to Xxxx hereunder shall conform to the respective specifications set forth on Schedule A or to such other specifications as are from time to time agreed upon by the Parties.

  • DAF Specifications Developer shall submit initial specifications for the DAF, including System Protection Facilities, to Connecting Transmission Owner and NYISO at least one hundred eighty (180) Calendar Days prior to the Initial Synchronization Date; and final specifications for review and comment at least ninety (90) Calendar Days prior to the Initial Synchronization Date. Connecting Transmission Owner and NYISO shall review such specifications to ensure that the DAF are compatible with the technical specifications, operational control, and safety requirements of the Connecting Transmission Owner and NYISO and comment on such specifications within thirty (30) Calendar Days of Developer’s submission. All specifications provided hereunder shall be deemed to be Confidential Information.

  • Originating Switched Access Detail Usage Data A category 1101XX record as defined in the EMI Telcordia Practice BR-010-200- 010.

  • Delivery and Content of Monthly Bills/Supplementary Bills 10.2.1 The SPD shall issue to SECI hard copy of a signed Monthly Xxxx/Supplementary Xxxx for the immediately preceding Month/relevant period based on the issuance of Energy Accounts along with all relevant documents (payments made by SPD for drawal of power, payment of reactive energy charges, Metering charges or any other charges as per guidelines of SERC/CERC, if applicable. Each Monthly Xxxx shall include all charges as per this Agreement for the energy supplied for the relevant Month based on Energy Accounts issued by RPC or any other competent authority which shall be binding on both the Parties. The Monthly Xxxx amount shall be the product of the energy as per Energy Accounts and the Applicable Tariff. Energy drawn from the grid will be regulated as per the regulations of respective State the Project is located in.

Time is Money Join Law Insider Premium to draft better contracts faster.