R3132 Series Spectrum Analyzer Operation Manual
4.2.10 Example Programs
4-62
4.2.10.6 Example Program Used to Read Screen Data
Example VB-20: Outputting the current screen data in bitmap format and saving it into the file (bit-
map.bmp)
NOTE: Depending on the copy image, compression of files and screen status, the amount of bitmap data varies.
A data file of up to 300 KB can be output.
Tmo%=14 ’ A timeout of 30 sec.
Call ibtmo(spa,tmo%) ’ A timeout of 30 seconds is set.
Call ibwrt(spa,"DL2") ’ Selects only EOI as a delimiter.
Call ibwrt(spa,"HCIMAG SCOL") ’ Sets a simple color image to make a copy.
Call ibwrt(spa,"HCCMPRS OFF") ’ Turns the compression mode off.
Call ibwrt(spa,"BMP?") ’ Requests the bitmap data output.
Call ibrdf(spa,"bitmap.bmp") ’ Saves the bitmap data into the file.
Call ibwrt(spa,"DL0") ’ Changes the delimiter back to CR, LF and EOI.