Test and Measurement Forum

Need help writing callback for Python streaming example

Post general discussions on using our drivers to write your own software here

Need help writing callback for Python streaming example

Postby Paul Breneman » Tue Jul 22, 2014 2:46 pm

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.
Paul Breneman
Newbie
 
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Re: Need help writing callback for Python streaming example

Postby Martyn » Tue Jul 22, 2014 3:56 pm

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Need help writing callback for Python streaming example

Postby Paul Breneman » Tue Jul 22, 2014 4:36 pm

Thanks Martyn! My post count stays at zero so I guess I'll always be moderated? Not the biggest problem I'm dealing with... :)
Paul Breneman
Newbie
 
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm

Re: Need help writing callback for Python streaming example

Postby Martyn » Tue Jul 22, 2014 7:32 pm

Posts should start counting up soon. I will check your status tomorrow and upgrade if necessary
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Need help writing callback for Python streaming example

Postby Paul Breneman » Tue Jul 22, 2014 10:44 pm

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

Postby Paul Breneman » Wed Jul 23, 2014 2:18 am

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.
Paul Breneman
Newbie
 
Posts: 0
Joined: Thu Jun 19, 2014 4:15 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 1 guest