[ARTIQ] tutorial error in dataset tutorial and proposed fix

2016-06-21 Thread Ken Brown
I currently have Artiq installed on a Pipistrello and have run various
ttl tests using artiq_run to my satisfaction.

I am now continuing through the tutorial. When I tried the following.

def run(self):
parabola = self.set_dataset("parabola", [], broadcast=True)
for i in range(int(self.count)):
parabola.append(i*i)
time.sleep(0.5)

I received the error
root:Terminating with exception (AttributeError: 'NoneType' object has
no attribute 'append')

I worked around this by using the following code

def run(self):
parabola=[]
for i in range(int(self.count)):
parabola.append(i*i)
time.sleep(0.5)
self.set_dataset("parabola", parabola, broadcast=True)
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


[ARTIQ] Question about AD9XXX

2016-06-21 Thread Ken Brown
As a test, I would like to build gateware to support one channel of an AD9959.

I am using the pippistrello board and I see where to change the
connections from an AD9858 to an AD9959. I see also where to change
the number of pads, define the connection, etc.

What I have not found is where the address control is. For example, if
I send a phase word versus a frequency word, I need to put these in
different addresses.
I am currently overlooking the command that sets this address.

Any pointers in the right direction would be appreciated.

Thanks,
Ken
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] Setting up Pipistrello with ARTIQ

2016-05-24 Thread Ken Brown
Thanks for the fast reply. I understand.

I am having a problem with the socket connection.  After I run pppd, I
receive a modem hangup message and the connection is terminated.
It seems to connect fine based on the rcvd and sent commands logged in
verbose.
Is there a common pppd error with the pipistrello?

I know that this is not a thread about pppd, so feel free to ignore this
query.

On Tue, May 24, 2016 at 9:15 AM, Sébastien Bourdeauducq <s...@m-labs.hk>
wrote:

> Hi,
>
> On Tuesday, May 24, 2016 04:09 AM, Ken Brown wrote:
>
>> At this point, it seems that I need a device_db.pyon for the pipistrello.
>>
>> Is this database available or am I headed in the wrong direction?
>>
>
> Take the device_db.pyon from the examples and edit it to match the IP
> address and the RTIO TTL/DDS channels (see "FPGA board ports" in the
> documentation for the list of RTIO channels).
>
> Sébastien
>
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


[ARTIQ] Setting up Pipistrello with ARTIQ

2016-05-24 Thread Ken Brown
I am trying to set up a pipistrello board to run led.py .

I installed ARTIQ via conda and successfully flashed the board using the
command below

$ artiq_flash -t pipistrello -m qc1

I then setup the IP address by

pppd /dev/ttyUSB1 115200 noauth nodetach local nocrtscts novj 10.0.0.1:10.0.0.2

At this point, it seems that I need a device_db.pyon for the pipistrello.

Is this database available or am I headed in the wrong direction?

Thanks,
Ken
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq