-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulse generator instrument control using test.py #385
Comments
OK, so I set up an environment to run with python 3.5 and it is good again! (Except that I don't get the graphics as it can't find pygtk and I have to set the backend for matplotlib as 'Agg' which doesn't seem to do anything). |
Using matplotlib.use('TKAgg') does allow the graphics to show though - hooray! |
I was just trying to get Matplotlib running with Python3. You solved my problem ! Also there is some missing parenthesis in the print. Anyway, I'm glad it works ! |
If found similar issues in the decimator test. This should be fix by #386. Thanks for pointing the problem and the solution ! |
Hi Thomas,
Just back from Serre Chevalier.
The upgrade spiral is a nightmare – more like ‘snakes and ladders’!
Hope you didn’t mind me prompting Steve Leibson to mention you in his Xilinx post.
Keep up the good work.
Graham
From: Thomas Vanderbruggen [mailto:[email protected]]
Sent: 10 February 2017 17:00
To: Koheron/koheron-sdk
Cc: Naylor, Graham; State change
Subject: Re: [Koheron/koheron-sdk] Pulse generator instrument control using test.py (#385)
If found similar issues in the decimator test. This should be fix by #386<#386>. Thanks for pointing the problem and the solution !
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#385 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AK3SeWEvm8HcX3-M_N72y18LFaRvblCbks5rbJecgaJpZM4L9hc8>.
|
In the provided test.py program for the pulse generator instrument, I get the following error:
~/koheron-sdk$ python instruments/pulse_generator/test.py
Traceback (most recent call last):
File "instruments/pulse_generator/test.py", line 32, in
driver.set_dac()
File "/home/graham/koheron-sdk/instruments/pulse_generator/pulse.py", line 38, in set_dac
set_dac_data(self, dac_data_1 + 65536 * dac_data_2)
File "/home/graham/anaconda3/lib/python3.6/site-packages/koheron/koheron.py", line 98, in wrapper
self.client.send_command(device_id, cmd_id, cmd_args, *args)
File "/home/graham/anaconda3/lib/python3.6/site-packages/koheron/koheron.py", line 367, in send_command
cmd = make_command(device_id, cmd_id, cmd_args, *args)
File "/home/graham/anaconda3/lib/python3.6/site-packages/koheron/koheron.py", line 116, in make_command
buff += build_payload(args[2], args[3:])
File "/home/graham/anaconda3/lib/python3.6/site-packages/koheron/koheron.py", line 185, in build_payload
append_array(payload, args[i], get_std_array_params(arg['type']))
File "/home/graham/anaconda3/lib/python3.6/site-packages/koheron/koheron.py", line 147, in append_array
buff += bytearray(array)
TypeError: only integer arrays with one element can be converted to an index
I am running Python 3.6.0 :: Anaconda 4.3.0 (64-bit) (Ubuntu 16.04 VM).
Graham
The text was updated successfully, but these errors were encountered: