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
cairodriver(1grass)						Grass User's Manual					       cairodriver(1grass)

NAME
Cairo driver - driver for bitmap or vector output using the Cairo graphics library. (drivers) DESCRIPTION
The Cairo driver generates PNG, BMP, PPM, PS, PDF or SVG images from GRASS display commands, using the Cairo graphics library. The image format is selected from the extension of the output file. It is started as 'pseudo' monitor (output to an image file) and when stopped, all output from previously used display commands are written to the output file. USAGE
Environment variables Several environment variables affect the operation of the Cairo driver: GRASS_WIDTH=xxx the width of the image. GRASS_HEIGHT=yyy the height of the image. GRASS_CAIROFILE=filename the name and format of the resulting image file, default is map.png. The image format is determined from the file extension. Supported bitmap formats: .png - Portable Network Graphics (PNG) .bmp - Windows Bitmap (BMP, 32-bpp) (these are not readable by some older viewers) .ppm - Portable Pixmap (PPM + PGM for alpha channel) Supported vector formats: .pdf - Portable Document Format (PDF) .ps - PostScript (PS) .svg - Scalable Vector Graphics (SVG) (Note: Some formats may not be available, depending on your platform and the Cairo library that GRASS was built with.) GRASS_BACK- GROUNDCOLOR=RRGGBB specifies the background color to use in RGB notation (hex values). Default is FFFFFF (white). GRASS_TRANSPARENT=[TRUE|FALSE] sets transparent background on (TRUE) or off (FALSE, default). GRASS_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. (Note: This only applies to bitmap formats - vector formats are always written directly to file). GRASS_CAIRO_READ if TRUE, the Cairo driver will initialize the image from the contents of GRASS_CAIROFILE. (Note: This is only supported for bitmap formats) GRASS_CAIRO_MAPPED if TRUE, the Cairo driver will map GRASS_CAIROFILE as its framebuffer, rather than using memory. This only works with BMP files. Examples Example using the driver directly (bash-syntax): export GRASS_CAIROFILE=spearfish.png export GRASS_WIDTH=800 export GRASS_HEIGHT=800 d.mon start=cairo d.rast map=elevation.10m d.vect map=streams width=1 color=blue fcolor=aqua type=area,line d.vect map=roads width=2 d.mon stop=cairo Example using d.out.file: d.mon x0 d.rast map=elevation.10m d.vect map=streams width=1 color=blue fcolor=aqua type=area,line d.vect map=roads width=2 d.out.file -c sf_cairo format=png size=800,800 A more complicated example using d.out.file: r.shaded.relief map=elevation.dem r.watershed elev=elevation.dem basin=watershed.basin thresh=10000 d.mon x1 d.shadedmap rel=elevation.dem.shade drape=watershed.basin bright=30 d.vect streams color=aqua fcolor=aqua type=area,line d.vect roads where="label ~ 'light-duty road'" color=grey d.vect roads where="label ~ 'unimproved'" color=orange d.vect roads where="label ~ 'secondary highway'" color=100:100:100 width=2 d.vect roads where="label ~ 'primary highway'" color=50:50:50 width=2 d.vect railroads col=red width=2 d.vect roads where="label = 'interstate'" color=black width=3 d.vect archsites icon=basic/star size=25 fcolor=yellow d.font Andale_Mono echo "Spearfish, SD" | d.text color=black at=28,53 -b d.out.file -c sf_cairo2 format=png NOTES
The driver is still in development. Enable it by specifying --with-cairo when configuring GRASS. This requires a reasonably recent version of the Cairo libraries and a working pkg-config. Antialiasing is enabled by default for bitmap formats. There is currently no way of disabling this. Cairo supports true vector format output whenever possible. However, if the selected format doesn't support a necessary feature, Cairo may fall back on rendering a bitmap representation of the image wrapped in the selected vector format. Cairo driver output via d.out.file is supported via the -c flag. SEE ALSO
HTMLMAP driver, PNG driver, PostScript driver, XDRIVER d.frame, d.mon, d.rast, d.vect d.out.file AUTHOR
Lars Ahlzen and the GRASS Development Team. Full index (C) 2003-2011 GRASS Development Team GRASS 6.4.2 cairodriver(1grass)
All times are GMT -4. The time now is 02:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy