Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

MDO4104B-3 Problem with string to float

Post Reply
m.defregger
Posts: 1
Joined: June 27th, 2016, 2:40 am
Country: Austria

MDO4104B-3 Problem with string to float

Post by m.defregger » June 27th, 2016, 2:56 am

I`m using the example code in the Video 'http://de.tek.com/support/faqs/programi ... ope-python' and at first it worked perfectly fine but now i always get the error 'ymult = float(scope.ask('WFMPRE:YMULT?'))
ValueError: could not convert string to float: :WFMPRE:YMULT 20.0000E-3' the osci is set on Default Setup. I don't now what to change. Maybe the Settings are wrong ?
Would apperciate a quick answer.

David N
Tektronix Applications
Tektronix Applications
Posts: 525
Joined: July 31st, 2008, 8:26 am

Re: MDO4104B-3 Problem with string to float

Post by David N » June 27th, 2016, 4:00 pm

I suspect it relates to your code. I googled "could not convert string to float" and found several sites with information. Most helpful was http://stackoverflow.com/questions/8420 ... o-float-id.

Post Reply

Return to “Programming Support”

Who is online

Users browsing this forum: No registered users and 2 guests