Teledyne LeCroy LeCroy Analyzers File Based Decoding Manual User Manual
Page 48

Chapter 11: Primitives
File-based Decoding User Manual
42
LeCroy Corporation
NextNBits()
NextNBits (
Support
Supported by all LeCroy analyzers.
Return value
None.
Comments
Reads bit_count bits from the data source specified in the last call to GetNBits,
starting after the last bit that the previous call to GetNBits or NextNBits returned. If
called without a previous call to GetNBits, the result is undefined. Note that bits are
indexed starting at bit 0.
Example
raw = 'F0F0';# 1111000011110000 binary
result1 = GetNBits ( raw, 2, 4 );
result2 = NextNBits(5);
result3 = NextNBits(2);
Trace ( "result1 = ", result1, " result2 = ", result2, " result3
= ", result3 );
This generates this trace output:
result1 = C result2 = 7 result3 = 2
In the call to GetNBits: starting at bit 2, reads 4 bits (1100), and returns the value 0xC.
In the first call to NextNBits: starting at bit 6, reads 5 bits (00111), and returns the value
0x7.
In the second call to NextNBits: starting at bit 11 (= 6 + 5), reads 2 bits (10), and returns
the value 0x2.
Parameter
Meaning
Default
Value
Comments
bit_count integer
- 6Zi Rackmount (12 pages)
- HDO Oscilloscope Rackmount (14 pages)
- LSIB-1 Host Interfaces (44 pages)
- OC1021 Oscilloscope Cart (9 pages)
- OC1024 Oscilloscope Cart (10 pages)
- OC910 Oscilloscope Cart (2 pages)
- TTL-AUX-OUT (1 page)
- WaveJet Rackmount (1 page)
- Zi Oscilloscope Rackmount (12 pages)
- USB2-GPIB (12 pages)
- WM8Zi-2X80GS (2 pages)
- WR6ZI-8CH-SYNCH (6 pages)
- Zi Oscilloscope Synchronization ProBus Module (Zi-8CH-SYNCH) (16 pages)
- LogicStudio (42 pages)
- WaveSurfer MXs-B Getting Started Manual (126 pages)
- WaveSurfer MXs-B Quick Reference Guide (16 pages)
- X-STREAM OSCILLOSCOPES Remote Control (305 pages)
- WS-GPIB (12 pages)
- PXA125 (219 pages)
- PXD Series (42 pages)
- PXD222 (38 pages)
- Oscilloscope System Recovery (8 pages)
- LabMaster 9Zi-A (264 pages)
- LabMaster 10Zi Rackmount (8 pages)
- LabMaster 10Zi Getting Started Manual (236 pages)
- LabMaster 10Zi Operators Manual (198 pages)
- WaveAce 1000_2000 (108 pages)
- WaveAce 1000_2000 Remote Control (92 pages)
- WaveRunner Xi-A Quick Reference Guide (16 pages)
- WaveRunner XI SERIES Operator’s Manual (233 pages)
- WaveMaster Automation Command (667 pages)
- WaveMaster 8 Zi_Zi-A (190 pages)
- WaveMaster 8000A (46 pages)
- WavePro 7 Zi_Zi-A (188 pages)
- WaveExpert series Automation Manual (285 pages)
- WaveExpert 9000_NRO9000_SDA100G Getting Started Manual (50 pages)
- WaveExpert 100H Operators Manual (348 pages)
- WaveRunner Automation Command (460 pages)
- WaveRunner Xi-A Getting Started Manual (128 pages)
- WaveRunner 6 Zi and 12-Bit HRO Getting Started Manual (198 pages)
- WaveRunner 6 Zi Quick Reference Guide (20 pages)
- WaveRunner 6 Zi-ExtRef-IN_OUT (2 pages)
- WaveSurfer Automation Command (226 pages)
- HDO 4000 Getting Started Guide (48 pages)
- HDO Removable Hard Drive (2 pages)