29 Nov '16, 6pm

Controlling Your Instruments From A Computer: Doing Something Useful

Controlling Your Instruments From A Computer: Doing Something Useful

#!/usr/bin/env python import time import math import subprocess import visa import matplotlib.pyplot as plt #Start, end, and step frequencies in Hertz startfreq = 25000000 endfreq = 32000000 freqstep = 100000 #The resource name for your 'scope, you'll need to change this line resourcename = 'USB0::6833::1230::DS1ZA123456789::0::INSTR' #Location of the freq_pi executable freqgen = "/home/pi/freq_pi/freq_pi" #Open the resource manager rm = visa.ResourceManager('@py') #Open the 'scope by name oscilloscope = rm.open_resource(resourcename) #Return its ID string to tell us it's there print(oscilloscope.query('*IDN?')) #Set up arrays, then loop graphfreqs,graphdbs = [],[] for freq in xrange(startfreq,endfreq,freqstep): print freq subprocess.call([freqgen, "-f", str(freq)]) #Call the RF generator #Read the input values from the 'scope and extract a float. #Input time.sleep(0.1) #L...

Full article: http://hackaday.com/2016/11/29/controlling-your-instrumen...

Tweets

How to Control Your Instruments From A Computer: It’s Easier Than You Think https://t.co/AjA5dXD9ew

How to Control Your Instruments From A Computer...

hackaday.com 16 Nov '16, 6pm

There was a time when instruments sporting a GPIB connector (General Purpose Interface Bus) for computer control on their ...

Controlling a Game Room with Amazon Echo

hackaday.com 27 Nov '16, 12pm

If there are two things we love here at Hackaday, it’s games and automating mundane tasks by adding a lot of electronics a...

Controlling This Smartwatch is All in the Wrist

Controlling This Smartwatch is All in the Wrist

hackaday.com 26 Nov '16, 6pm

Smartwatches are pretty great. In theory, you’ll never miss a notification or a phone call. Plus, they can do all kinds of...

Do Prince Harry and #Rihanna have something to ...

seriouslyomg.com 02 Dec '16, 12am

The Full House creator buys the Full House house! Do Prince Harry and Rihanna have something to tell us? Kristin Chenoweth...

Awarding the 2016 Hackaday Prize

hackaday.com 29 Nov '16, 7pm

Saturday evening at the Hackaday SuperConference is reserved for the Hackaday Prize Party. Our engineering initiative each...