Search Results

by kiffer
Thu Oct 05, 2017 7:59 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12396

Re: Can't make Python scripts work

UPDATE: I used the example code from Phidgets and modified it to record the data I was interested in. The example code worked fine, but I still can't figure out why my very basic little program wouldn't work. Strange.
by kiffer
Fri Aug 18, 2017 4:23 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12396

Re: Can't make Python scripts work

Hmm... I tried that but it now errors out on that line: ch.setThermocoupleType(2) The documentation for the setThermocoupleType method states that K-type (which is what I have) is number 2. The error I get is identical to the initial error I posted except of course it occurs in a different function ...
by kiffer
Fri Aug 18, 2017 1:04 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12396

Re: Can't make Python scripts work

Added an attach handler and it is printing that the 1051 is successfully attaching. But the code still errors on the ch.getTemperature() method. Hmmmm...
by kiffer
Fri Aug 18, 2017 12:55 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12396

Re: Can't make Python scripts work

Thanks for the info! Makes sense, but I tried it and it didn't work. Same error as above...

Any chance my libraries could be located in the wrong place? But then why would it work from the command line? I'm a noob to Linux too.
by kiffer
Thu Aug 17, 2017 4:57 pm
Forum: Python
Topic: Can't make Python scripts work
Replies: 7
Views: 12396

Can't make Python scripts work

Extreme noob here. Trying to write a very simple program (called ProblemCode.py) to read temperature data with my 1051 and K-type thermocouple. Code is VERY basic as follows: from Phidget22.PhidgetException import * from Phidget22.Phidget import * from Phidget22.Devices.TemperatureSensor import * ch...