How to read waveform images? How to save waveforms to a USB flash drive?

Publisher:sunyouz1Latest update time:2021-06-07 Source: eefocusKeywords:Read Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Let’s take the InfiniiVisionX oscilloscope as an example to see how to read the waveform image commands.


method:

Use the :DISPlay:DATA? command to obtain image data. The obtained data will have a prefix. When assigning it to an empty image file, you need to remove the prefix.


Prefix example:
#800001000<1000 bytes of data>
8 represents the number of digits
00001000 represents the length of the data
<1000 bytes of data> Actual data content

:DISPlay:DATA? PNG, COLor

The relevant routine snippets in the programming manual are as follows. Please pay attention to the commands used below /* Read screen image. */

/* Download the screen image.

* ------------------------------------------------------------- */

do_command(":HARDcopy:INKSaver OFF");

/* Read screen image. */

num_bytes = do_query_ieeeblock(":DISPlay:DATA? PNG, COLor"); //Please refer to the command in quotation marks

printf("Screen image bytes: %dn", num_bytes);

/* Write screen image bytes to file. */

fp = fopen ("c:\scope\data\screen.png", "wb");

num_bytes = fwrite(ieeeblock_data, sizeof(unsigned char), num_bytes,fp);

fclose (fp);

printf("Wrote screen image (%d bytes) to ", num_bytes);

printf("c:\scope\data\screen.bmp.n");

Oscilloscopewww.keysight.comicon

Introduce the steps of how to save the waveform to a USB flash drive

1. Insert the USB drive

2. Press the "save/recall" button

3. Click the "Save Menu" software

4. If you need to save the image, you can select PNG, BMP, etc. in the format

5. If you need to save multi-channel data, you can select CSV format in the format

6. If you need a large amount of data from a single channel, select ASCII XY format in Format. Press Single or Stop, adjust the appropriate horizontal time base setting, then select Set, select Length, and press Save.


How can I play back the stored waveform files on Keysight's 2000X, 3000X, and 4000X series oscilloscopes?


Using the oscilloscope waveform file playback function, you need to save the waveform you want to save as a .h5 reference waveform format file first, so that the 2000X/3000X/4000X can read back and display the waveform on the oscilloscope again.

Keywords:Read Reference address:How to read waveform images? How to save waveforms to a USB flash drive?

Previous article:Introduction to the self-calibration operation and fixture used for the digital channel of the oscilloscope
Next article:8-in-1 Oscilloscope - Helps you troubleshoot signal problems and anomalies faster

Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号