I'm using the 1048 board which has 4 thermocouple inputs. I'm trying to modify the temperatureLogger code in python so that EITHER:
1) for a change in temperature on ANY of the thermocouples, log the temperature of ALL thermocouples along with the current time.
2) at given instants in time (say every millisecond), simultaneously log the temperature of ALL thermocouples along with the current time.
I'm having trouble working out how to read all 4 temperatures in one go. I've tried:
Code: Select all
# Set the thermocouple type and trigger (0 = record all data)
TCindex = 0; # value for indexing thermocouples. TCindex = 0..3
while TCindex <= 3:
except PhidgetException as e: LocalErrorCatcher(e)
# Look for changes in temperature in all of the thermocouples.
TCindex += 1
but this only switches between each thermocouple at every temperature change. Can anyone help me out please?