Sponsored Content
Top Forums Programming Python Screen Capture of RIGOL 1054Z on macOS Catalina Using NI-VISA Post 303043070 by Neo on Friday 17th of January 2020 08:45:51 AM
Old 01-17-2020
Still playing with noise until I get some circuits cooking..... for testing the python_grab.py utility for the RIGOL DS1054Z

Noise is beautiful .... (a least until my function generator arrives ...)

Note: Having trouble getting the RIGOL to generate anything but PNG and BMP image formats. Still working on this, converting BMP to JPG manually for loading.

Python Screen Capture of RIGOL 1054Z on macOS Catalina Using NI-VISA-noise10mhzjpg


Also, the image is still a bit corrupted (known bug) - in this case on the bottom where the channel indicators are.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

screen capture

I was wondering is there something out there for Solaris 7 for screen capture? Also it would really help if there was some software out there that can record whats happens on the screen for like 10 seconds or how ever long I need it to. I did a search but doesn't seem to be alot out there. (10 Replies)
Discussion started by: merlin
10 Replies

2. Solaris

Solaris 10 screen capture

We are using Solaris 10 for our Radiation Treatment Planning and need to create a simulation for our service engineers. I need a screen capture tool that can not only capture screens, but create movies of mouse movements (similar to Captivate). I have contacted Oracle and talked to several people... (2 Replies)
Discussion started by: TomH
2 Replies

3. OS X (Apple)

Python script to do simple audio capture...

This site is the first to get this snippet. It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility... A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh. Thoroughly read ALL the comments in... (0 Replies)
Discussion started by: wisecracker
0 Replies

4. UNIX for Beginners Questions & Answers

Capture power button press on MacOs High Sierra?

Hello everyone! I'm developing a MacOs Application in python and I'm having some issues trying to find information related to the power button pressed event. I know that in Ubuntu 14.04 you can find information about it on the acpi folders, but I realized that here in Mac that process is... (0 Replies)
Discussion started by: xedge
0 Replies

5. OS X (Apple)

MacOS 10.15 (Catalina) switches from bash to zsh

Interestingly Apple has decided to switch the default shell for new users from bash to zsh in MacOS Catalina (10.15) Use zsh as the default shell on your Mac - Apple Support Another interesting fact is that Catalina also comes with /bin/dash (5 Replies)
Discussion started by: Scrutinizer
5 Replies

6. OS X (Apple)

MacOS 10.15 Catalina Crashes and Freezes on Boot

Sadly, I have turned off my access to the Apple Developers Beta program after installing macOS 10.15 Catalina a few days ago. After the install, I rebooted by MacBook Air and it "hard froze" and we were heading out of town so I grabbed a backup MBA running Mojave. Then, after getting back at... (10 Replies)
Discussion started by: Neo
10 Replies

7. Windows & DOS: Issues & Discussions

Poor Windows 10 Performance of Parallels Desktop 15 on macOS Catalina

Just a quick note for macOS users. I just installed (and removed) Parallels Desktop 15 Edition on my MacPro (2013) with 64GB memory and 12-cores, which is running the latest version of macOS Catalina as of this post. The reason for this install was to test some RIGOL test gear software which... (6 Replies)
Discussion started by: Neo
6 Replies

8. Programming

A Slightly Better NTP Client for the ESP32 (ESPWROOM32) on macOS Catalina

Currently have two ESP8266 modules testing some Blynk apps, whereI'm not so happy with the Blynk business model for developers, but that's another story. So, with two of my ESP8266s currently "busy", I decided to work on the ESP32, and in particular the ESPWROOM32. I installed the... (0 Replies)
Discussion started by: Neo
0 Replies

9. OS X (Apple)

MacOS 10.15.2 Catalina display crash and system panic

MacPro (2013) 12-Core, 64GB RAM (today's crash): panic(cpu 2 caller 0xffffff7f8b333ad5): userspace watchdog timeout: no successful checkins from com.apple.WindowServer in 120 seconds service: com.apple.logd, total successful checkins since load (318824 seconds ago): 31883, last successful... (3 Replies)
Discussion started by: Neo
3 Replies
pngdriver(1grass)						Grass User's Manual						 pngdriver(1grass)

NAME
PNG driver - driver to create PNG and PPM images. (drivers) DESCRIPTION
The PNG driver generates PNG and PPM images from GRASS display commands. Per default PNG files are written with this driver. It is started as 'pseudo' monitor (image file instead) and when stopped, all output from previously used display commands are written to the PNG image file. USAGE
Environment variables Several environment variables effect the operation of the PNG driver. GRASS_WIDTH=xxx the width of the image map (default is 640). GRASS_HEIGHT=yyy the height of the image map (default is 480). GRASS_PNGFILE=filename the filename to put the resulting image in, default is map.png. If you set GRASS_PNGFILE to a filename which ends in ".ppm", a PPM file will be created (with alpha channel stored in a PGM image, if applicable). If you set GRASS_PNGFILE to a filename which ends in ".bmp", a 32-bpp BMP file will be created (these are not readable by some older viewers). GRASS_BACKGROUNDCOLOR=RRGGBB specifies the background color to use in RGB notation (hex values). Default is 000000 (black). GRASS_TRANSPARENT=[TRUE|FALSE] sets transparent background on (TRUE) or off (FALSE, default). GRASS_TRUECOLOR=[TRUE|FALSE] sets true-color support GRASS_PNG_COMPRESSION=[0|1|9] compression level of PNG files (0 = none, 1 = fastest, 9 = best, default is 6) GRASS_PNG_AUTO_WRITE=[TRUE|FALSE] if set to TRUE, the image file will be written after each operation (i.e. whenever a client disconnects), rather than only being written out when the driver terminates. GRASS_PNG_READ if TRUE, the PNG driver will initialize the image from the contents of GRASS_PNGFILE. GRASS_PNG_MAPPED if TRUE, the PNG driver will map GRASS_PNGFILE as its framebuffer, rather than using memory. This only works with BMP files. GRASS_RENDER_IMMEDIATE=[TRUE|FALSE] tells the raster library to use its built-in PNG driver rather than connecting to an external monitor process using sockets. If TRUE, there is no need to run d.mon start=PNG. Example Define driver settings (here: bash shell syntax) export GRASS_RENDER_IMMEDIATE=TRUE export GRASS_TRUECOLOR=TRUE Start up the driver d.mon start=PNG Display raster map and vector polygons d.rast somerastermap d.vect somevectormap color=red Stop the driver subsequently. This will write a file named map.png to be created in your current directory: d.mon stop=PNG NOTES
The PNG driver uses the libpng (see the libpng home page) and zlib (see the zlib home page), all which needs to be installed for the PNG driver to work (it's worth it). The resolution of the PNG raster map is defined by the map extents. Use g.region -p to get the number of rows and cols and use the environ- ment variables to set the PNG size. If you would like a larger image, multiply both rows and cols by the same whole number to preserve the aspect ratio. Further PNG file processing (e.g. quantization to 1 bit for monochrome images) can be done with 'pnmquant' of the netpbm tools. SEE ALSO
Display drivers HTMLMAP driver, PostScript driver, XDRIVER d.frame, d.mon, d.rast, d.vect AUTHOR
Original version: Per Henrik Johansen NORGIT AS Rewritten by: Glynn Clements, 2003 Last changed: $Date: 2010-02-18 01:23:37 +0100 (Thu, 18 Feb 2010) $ Full index (C) 2003-2011 GRASS Development Team GRASS 6.4.2 pngdriver(1grass)
All times are GMT -4. The time now is 10:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy