DAQ1300 Reading State Problem
Posted: Sat Feb 02, 2019 3:53 pm
Hello, I'm using the latest Python libraries with a Python2 build on Arch Linux. So far everything seems to be going good except when I'm trying to read a DAQ1300 channel.
I was trying to use it to determine if a wall thermostat was indicating it needed heat. Unfortunately I just couldn't get it to work. I believe it has something to do with the way the circuit is normally closed when not calling for heat.
So I switched it to reading the output on the Zone valve which is normally open and only passes voltage back when the end switch is closed. This seems to work except when reading the state of the channel it seems to rapidly switch between 0 and 1. I confirmed this by using one of the example programs provided.
If the switch is open it reads 0 with no state changes. If the switch closes the state rapidly starts changing from 0 to 1. A volt meter doesn't show any fluctuation of the voltage.
I further investigated by hooking a simple on off switch in the thermostat circuit and reading the state. Same behaviour, when open the state is 0. When closed it rapidly flips between 0 and 1.
Is this normal behaviour for the DAQ1300? How can I work around this? I just need to know when the circuit changes state from open to close.
All voltages are 24 VAC.There is no amperage to speak of.
I was trying to use it to determine if a wall thermostat was indicating it needed heat. Unfortunately I just couldn't get it to work. I believe it has something to do with the way the circuit is normally closed when not calling for heat.
So I switched it to reading the output on the Zone valve which is normally open and only passes voltage back when the end switch is closed. This seems to work except when reading the state of the channel it seems to rapidly switch between 0 and 1. I confirmed this by using one of the example programs provided.
If the switch is open it reads 0 with no state changes. If the switch closes the state rapidly starts changing from 0 to 1. A volt meter doesn't show any fluctuation of the voltage.
I further investigated by hooking a simple on off switch in the thermostat circuit and reading the state. Same behaviour, when open the state is 0. When closed it rapidly flips between 0 and 1.
Is this normal behaviour for the DAQ1300? How can I work around this? I just need to know when the circuit changes state from open to close.
All voltages are 24 VAC.There is no amperage to speak of.