Help Writing Python Script for Artisan
Posted: Mon Jun 24, 2019 12:04 pm
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()
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()
void onTemperatureChange(
TemperatureSensor self,
float temperature
)
ch0.close()