6: Reading buffers 2470 High Voltage SourceMeter Instrument
6-32 2470-901-01 Rev. A / May 2019
Using TSP commands:
extData = buffer.make(20, buffer.STYLE_WRITABLE)
To populate a writable reading buffer, you set the format of the units and the unit values for each
buffer index using the following commands:
• :TRACe:WRITe:FORMat (on page 12-138) and :TRACe:WRITe:READing (on page 12-140)
(SCPI)
• buffer.write.format() (on page 14-42) and buffer.write.reading() (on page 14-44) (TSP)
After you have populated a writable buffer, you can view the data on your computer from the 2470
virtual front panel or on the front-panel graph screen.
Using graphing through the virtual front panel requires significant system resources and may slow
instrument operation.
To view the data in the writable buffer on the front-panel graph screen:
1. Press the MENU key.
2. Under Views, select Graph. By default, time is plotted on the x-axis.
If your buffer was created with the full writable style and populated with the extra values, you can see
the extra values plotted on the x-axis.
To see the extra values plotted on the x-axis:
1. Select the Data tab.
2. Set X-Axis to Source.
3. Select the Graph tab. The graph shows the extra values on the x-axis.
You can compare the external data to data in another buffer by adding an additional trace to the
graph. For more information about graphing data, see Graphing (on page 7-1
).