Help Writing Python Script for Artisan

Supporting 2.7 and 3.2+
Post Reply
jacobbradshaw4031
Fresh meat
Posts: 1
Joined: Mon Jun 24, 2019 11:56 am
Contact:

Help Writing Python Script for Artisan

Post by jacobbradshaw4031 »

Hello,

I am trying to write a Python script to run a program from Artisan-Scope roasting software.

I am using a Phidgets 1045_1B.

My goal with the program is to be able to organize the samples and average only the lowest 10 samples of the approximately 30 samples per second. I have scoured the internet and do not know code well enough to write it myself. Any support or a start in the right direction is greatly appreciated.

Here is what I have so far for writing the program. Right now Artisan gives me an error in just trying to read the temperature.





ch0 = TemperatureSensor()
ch0.setDeviceSerialNumber(424909)
ch0.setChannel(0)
ch0.openWaitForAttachment(5000)
ch0.setTemperatureChangeTrigger(0)



ch0.getTemperature()

Print
void onTemperatureChange(
TemperatureSensor self,
float temperature
)

ch0.close()
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 20 guests