Re: [sigrok-devel] Controlling channel groups from python

2015-04-19 Thread mrnuke
On Friday, April 17, 2015 10:57:36 PM Alex Gagniuc wrote: > My apologies about that. Accidentally hit send. I was going to ask > about how to interface with a SCPI power source from within python. > For example, how to set the output voltage. I see there is a > config_set() for Device, but not so f

Re: [sigrok-devel] Controlling channel groups from python

2015-04-17 Thread Alex Gagniuc
My apologies about that. Accidentally hit send. I was going to ask about how to interface with a SCPI power source from within python. For example, how to set the output voltage. I see there is a config_set() for Device, but not so for channel groups. Any hints? Alex > import sigrok.core as sr >

[sigrok-devel] Controlling channel groups from python

2015-04-17 Thread Alex Gagniuc
import sigrok.core as sr context = sr.Context_create() context.log_level = sr.LogLevel.get(5) driver = context.drivers['scpi-pps'] devs = driver.scan(conn='/dev/ttyS0', serialcomm='19200/8n1') dev = devs[0] dev.open(); for channel in dev.channels: print("Here's a channel %s" %(channel.name)); fo