Need help writing callback for Python streaming example

Post general discussions on using our drivers to write your own software here
Post Reply
Paul Breneman
Newbie
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Need help writing callback for Python streaming example

Post by Paul Breneman »

For more information please see this thread in this forum section: http://www.picotech.com/support/topic14069.html

A single channel (at a slow rate) would be enough for a simple example (no advanced features needed).

Another thread is also related: http://www.picotech.com/support/topic14123.html

Thanks! :)

Note to forum moderators: My previous message disappeared when I edited it! This forum sure is slow due to moderation of every message.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Need help writing callback for Python streaming example

Post by Martyn »

Apologies for the deletion, I thought it was a duplicate.

New members posts are moderated for a period of time / post count after which they will appear without moderation.
Martyn
Technical Support Manager

Paul Breneman
Newbie
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Re: Need help writing callback for Python streaming example

Post by Paul Breneman »

Thanks Martyn! My post count stays at zero so I guess I'll always be moderated? Not the biggest problem I'm dealing with... :)

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Need help writing callback for Python streaming example

Post by Martyn »

Posts should start counting up soon. I will check your status tomorrow and upgrade if necessary
Martyn
Technical Support Manager

Paul Breneman
Newbie
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Re: Need help writing callback for Python streaming example

Post by Paul Breneman »

Thanks again Martyn! I'm making progress. I found out why I got an exception in Delphi and Python after calling RunStreaming (which returned OK). It was because I had the third from the last parameter (downSampleRatio) set to zero instead of one. I've also made a little progress on the callback (but things still don't work). Here is my latest code: http://ctrlpascal.com/ps5000acon4.zip

Paul Breneman
Newbie
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Re: Need help writing callback for Python streaming example

Post by Paul Breneman »

My messages now show up right away.

I did get streaming working with Delphi. I'll spend a bit more time trying to get it working in Python, but if you (or anyone) has any suggestions I'd appreciate them. I hope I can post an improved Python example in the next day or two.

Post Reply